diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-04 14:27:52 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-04 14:27:52 +0300 |
commit | 49e8c2b4c9396a7d75bde724d497fdddd09f0ab2 (patch) | |
tree | 926126e38f3f1997215d9e2a5dbb5b67000db623 /linux/drivers/media/video/em28xx/em28xx-core.c | |
parent | 9471f09f98982fcbf6ad0e3411af405c1d5d4588 (diff) | |
download | mediapointer-dvb-s2-49e8c2b4c9396a7d75bde724d497fdddd09f0ab2.tar.gz mediapointer-dvb-s2-49e8c2b4c9396a7d75bde724d497fdddd09f0ab2.tar.bz2 |
em28xx: enable Compro VideoMate ForYou sound
From: Vitaly Wool <vital@embeddedalley.com>
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 'linux/drivers/media/video/em28xx/em28xx-core.c')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c index f10abc5b4..0d4c9fcc2 100644 --- a/linux/drivers/media/video/em28xx/em28xx-core.c +++ b/linux/drivers/media/video/em28xx/em28xx-core.c @@ -378,6 +378,11 @@ static int em28xx_set_audio_source(struct em28xx *dev) } } + if (dev->board.mute_gpio && dev->mute) + em28xx_gpio_set(dev, dev->board.mute_gpio); + else + em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio); + ret = em28xx_write_reg_bits(dev, EM28XX_R0E_AUDIOSRC, input, 0xc0); if (ret < 0) return ret; |