diff options
author | Vitaly Wool <vital@embeddedalley.com> | 2009-03-04 06:27:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:07 -0400 |
commit | 2bd1d9eb1c27034a77c8e1887156da72d6160ae1 (patch) | |
tree | c80d2b235024e621e2633c6504511df1fbca20d4 /drivers/media/video/em28xx/em28xx-core.c | |
parent | 3341cc6e86da7b956084d5b6c9ca2e4f1c27f9bf (diff) |
V4L/DVB (10833): em28xx: enable Compro VideoMate ForYou sound
Compro VideoMate uses an external audio DSP chip, controlled via tvaudio
module (tda9874a). This patch improves em28xx infrastructure to support
an external audio processor and fixes the Compro VideoMate entry to work
with it.
Signed-off-by: Vitaly Wool <vital@embeddedalley.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-core.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index eee8d015b249..c896d24032f5 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -378,6 +378,11 @@ static int em28xx_set_audio_source(struct em28xx *dev) | |||
378 | } | 378 | } |
379 | } | 379 | } |
380 | 380 | ||
381 | if (dev->board.mute_gpio && dev->mute) | ||
382 | em28xx_gpio_set(dev, dev->board.mute_gpio); | ||
383 | else | ||
384 | em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio); | ||
385 | |||
381 | ret = em28xx_write_reg_bits(dev, EM28XX_R0E_AUDIOSRC, input, 0xc0); | 386 | ret = em28xx_write_reg_bits(dev, EM28XX_R0E_AUDIOSRC, input, 0xc0); |
382 | if (ret < 0) | 387 | if (ret < 0) |
383 | return ret; | 388 | return ret; |