[media] radio-isa: fix querycap capabilities code
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 25 Feb 2013 10:58:41 +0000 (07:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 18:19:54 +0000 (15:19 -0300)
The device_caps and capabilities fields were swapped.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-isa.c

index 84b7b9f4385e7b9d9af85c810793ed5e4ef4a416..fe0a4f85c422d4d4818dcc56d152722d3e4002d2 100644 (file)
@@ -51,8 +51,8 @@ static int radio_isa_querycap(struct file *file, void  *priv,
        strlcpy(v->card, isa->drv->card, sizeof(v->card));
        snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name);
 
-       v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
-       v->device_caps = v->capabilities | V4L2_CAP_DEVICE_CAPS;
+       v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+       v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS;
        return 0;
 }