mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
[media] media/radio: fix querycap
Querycap should set the device_caps field. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
2eb3b1adcb
commit
7027c448d2
@ -1279,10 +1279,12 @@ static int wl1273_fm_vidioc_querycap(struct file *file, void *priv,
|
||||
strlcpy(capability->bus_info, radio->bus_type,
|
||||
sizeof(capability->bus_info));
|
||||
|
||||
capability->capabilities = V4L2_CAP_HW_FREQ_SEEK |
|
||||
capability->device_caps = V4L2_CAP_HW_FREQ_SEEK |
|
||||
V4L2_CAP_TUNER | V4L2_CAP_RADIO | V4L2_CAP_AUDIO |
|
||||
V4L2_CAP_RDS_CAPTURE | V4L2_CAP_MODULATOR |
|
||||
V4L2_CAP_RDS_OUTPUT;
|
||||
capability->capabilities = capability->device_caps |
|
||||
V4L2_CAP_DEVICE_CAPS;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -198,10 +198,12 @@ static int fm_v4l2_vidioc_querycap(struct file *file, void *priv,
|
||||
strlcpy(capability->card, FM_DRV_CARD_SHORT_NAME,
|
||||
sizeof(capability->card));
|
||||
sprintf(capability->bus_info, "UART");
|
||||
capability->capabilities = V4L2_CAP_HW_FREQ_SEEK | V4L2_CAP_TUNER |
|
||||
capability->device_caps = V4L2_CAP_HW_FREQ_SEEK | V4L2_CAP_TUNER |
|
||||
V4L2_CAP_RADIO | V4L2_CAP_MODULATOR |
|
||||
V4L2_CAP_AUDIO | V4L2_CAP_READWRITE |
|
||||
V4L2_CAP_RDS_CAPTURE;
|
||||
capability->capabilities = capability->device_caps |
|
||||
V4L2_CAP_DEVICE_CAPS;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user