diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-20 11:39:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:37 -0500 |
commit | e879b8ebb000298f8124fc8fae570afc9eb37cbb (patch) | |
tree | bab36de8b6415335809fe01350423e97c541b48e /drivers/media/video/em28xx/em28xx-video.c | |
parent | 209acc02249d831e7f2e3d8083b6b562dde5fc6f (diff) |
V4L/DVB (9672): Allow opening more than one output at the same time
Some devices use more than one AC97 outputs. This patch allows such
devices to properly work.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index bea74fd9a520..b262091415bb 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -568,6 +568,9 @@ static void video_mux(struct em28xx *dev, int index) | |||
568 | dev->ctl_ainput = INPUT(index)->amux; | 568 | dev->ctl_ainput = INPUT(index)->amux; |
569 | dev->ctl_aoutput = INPUT(index)->aout; | 569 | dev->ctl_aoutput = INPUT(index)->aout; |
570 | 570 | ||
571 | if (!dev->ctl_aoutput) | ||
572 | dev->ctl_aoutput = EM28XX_AOUT_MASTER; | ||
573 | |||
571 | em28xx_i2c_call_clients(dev, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 574 | em28xx_i2c_call_clients(dev, VIDIOC_INT_S_VIDEO_ROUTING, &route); |
572 | 575 | ||
573 | if (dev->has_msp34xx) { | 576 | if (dev->has_msp34xx) { |
@@ -972,6 +975,9 @@ static int vidioc_s_audio(struct file *file, void *priv, struct v4l2_audio *a) | |||
972 | 975 | ||
973 | dev->ctl_ainput = INPUT(a->index)->amux; | 976 | dev->ctl_ainput = INPUT(a->index)->amux; |
974 | dev->ctl_aoutput = INPUT(a->index)->aout; | 977 | dev->ctl_aoutput = INPUT(a->index)->aout; |
978 | |||
979 | if (!dev->ctl_aoutput) | ||
980 | dev->ctl_aoutput = EM28XX_AOUT_MASTER; | ||
975 | return 0; | 981 | return 0; |
976 | } | 982 | } |
977 | 983 | ||