diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-05 16:36:12 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-05 16:36:12 -0500 |
| commit | 1589a3e7777631ff56dd58cd7dcdf275185e62b5 (patch) | |
| tree | 67632b4a04057114f6081db08fe6c170f60cecd7 | |
| parent | 0f632118a183f0de95df020e214dc1372137e5d9 (diff) | |
| parent | ce4a3d52888a95473914bd54bcf6c566014fc03e (diff) | |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fixes from Mauro Carvalho Chehab:
"For a regression fix on a few radio drivers that were preventing radio
TX to work on those devices"
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
[media] radio: set vfl_dir correctly to fix modulator regression
| -rw-r--r-- | drivers/media/radio/radio-keene.c | 1 | ||||
| -rw-r--r-- | drivers/media/radio/radio-si4713.c | 1 | ||||
| -rw-r--r-- | drivers/media/radio/radio-wl1273.c | 1 | ||||
| -rw-r--r-- | drivers/media/radio/wl128x/fmdrv_v4l2.c | 10 |
4 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-keene.c b/drivers/media/radio/radio-keene.c index e10e525f33e5..296941a9ae25 100644 --- a/drivers/media/radio/radio-keene.c +++ b/drivers/media/radio/radio-keene.c | |||
| @@ -374,6 +374,7 @@ static int usb_keene_probe(struct usb_interface *intf, | |||
| 374 | radio->vdev.ioctl_ops = &usb_keene_ioctl_ops; | 374 | radio->vdev.ioctl_ops = &usb_keene_ioctl_ops; |
| 375 | radio->vdev.lock = &radio->lock; | 375 | radio->vdev.lock = &radio->lock; |
| 376 | radio->vdev.release = video_device_release_empty; | 376 | radio->vdev.release = video_device_release_empty; |
| 377 | radio->vdev.vfl_dir = VFL_DIR_TX; | ||
| 377 | 378 | ||
| 378 | radio->usbdev = interface_to_usbdev(intf); | 379 | radio->usbdev = interface_to_usbdev(intf); |
| 379 | radio->intf = intf; | 380 | radio->intf = intf; |
diff --git a/drivers/media/radio/radio-si4713.c b/drivers/media/radio/radio-si4713.c index a082e400ed0f..1507c9d508d7 100644 --- a/drivers/media/radio/radio-si4713.c +++ b/drivers/media/radio/radio-si4713.c | |||
| @@ -250,6 +250,7 @@ static struct video_device radio_si4713_vdev_template = { | |||
| 250 | .name = "radio-si4713", | 250 | .name = "radio-si4713", |
| 251 | .release = video_device_release, | 251 | .release = video_device_release, |
| 252 | .ioctl_ops = &radio_si4713_ioctl_ops, | 252 | .ioctl_ops = &radio_si4713_ioctl_ops, |
| 253 | .vfl_dir = VFL_DIR_TX, | ||
| 253 | }; | 254 | }; |
| 254 | 255 | ||
| 255 | /* Platform driver interface */ | 256 | /* Platform driver interface */ |
diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c index c48be195bbad..cabbe3adf435 100644 --- a/drivers/media/radio/radio-wl1273.c +++ b/drivers/media/radio/radio-wl1273.c | |||
| @@ -1971,6 +1971,7 @@ static struct video_device wl1273_viddev_template = { | |||
| 1971 | .ioctl_ops = &wl1273_ioctl_ops, | 1971 | .ioctl_ops = &wl1273_ioctl_ops, |
| 1972 | .name = WL1273_FM_DRIVER_NAME, | 1972 | .name = WL1273_FM_DRIVER_NAME, |
| 1973 | .release = wl1273_vdev_release, | 1973 | .release = wl1273_vdev_release, |
| 1974 | .vfl_dir = VFL_DIR_TX, | ||
| 1974 | }; | 1975 | }; |
| 1975 | 1976 | ||
| 1976 | static int wl1273_fm_radio_remove(struct platform_device *pdev) | 1977 | static int wl1273_fm_radio_remove(struct platform_device *pdev) |
diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c index 048de4536036..0a8ee8fab924 100644 --- a/drivers/media/radio/wl128x/fmdrv_v4l2.c +++ b/drivers/media/radio/wl128x/fmdrv_v4l2.c | |||
| @@ -518,6 +518,16 @@ static struct video_device fm_viddev_template = { | |||
| 518 | .ioctl_ops = &fm_drv_ioctl_ops, | 518 | .ioctl_ops = &fm_drv_ioctl_ops, |
| 519 | .name = FM_DRV_NAME, | 519 | .name = FM_DRV_NAME, |
| 520 | .release = video_device_release, | 520 | .release = video_device_release, |
| 521 | /* | ||
| 522 | * To ensure both the tuner and modulator ioctls are accessible we | ||
| 523 | * set the vfl_dir to M2M to indicate this. | ||
| 524 | * | ||
| 525 | * It is not really a mem2mem device of course, but it can both receive | ||
| 526 | * and transmit using the same radio device. It's the only radio driver | ||
| 527 | * that does this and it should really be split in two radio devices, | ||
| 528 | * but that would affect applications using this driver. | ||
| 529 | */ | ||
| 530 | .vfl_dir = VFL_DIR_M2M, | ||
| 521 | }; | 531 | }; |
| 522 | 532 | ||
| 523 | int fm_v4l2_init_video_device(struct fmdev *fmdev, int radio_nr) | 533 | int fm_v4l2_init_video_device(struct fmdev *fmdev, int radio_nr) |
