]> git.baikalelectronics.ru Git - kernel.git/commit
[media] radio: set vfl_dir correctly to fix modulator regression
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 5 Jan 2013 11:52:12 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Jan 2013 20:54:14 +0000 (18:54 -0200)
commitd9287f0cac660cea90afc0e17b595f33772a9004
tree7f25c33cc3ec3b76886f021dfefe9a5ddabe1624
parentb7ba95ace472a0cf8180b9e1e14d9b6480f91e01
[media] radio: set vfl_dir correctly to fix modulator regression

The vfl_dir field should be set to indicate whether a device can receive
data, output data or can do both. This is used to let the v4l core know
which ioctls should be accepted and which can be refused.
Unfortunately, when this field was added the radio modulator drivers were
not updated: radio modulators transmit and so vfl_dir should be set to
VFL_DIR_TX (or VFL_DIR_M2M in the special case of wl128x).
Because of this omission it is not possible to call g/s_modulator for these
drivers, which effectively renders them useless.
This patch sets the correct vfl_dir value for these drivers, correcting
this bug.
Thanks to Paul Grinberg for bringing this to my attention.

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