summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/em28xx/em28xx-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-04 14:27:52 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-04 14:27:52 +0300
commit49e8c2b4c9396a7d75bde724d497fdddd09f0ab2 (patch)
tree926126e38f3f1997215d9e2a5dbb5b67000db623 /linux/drivers/media/video/em28xx/em28xx-core.c
parent9471f09f98982fcbf6ad0e3411af405c1d5d4588 (diff)
downloadmediapointer-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.c5
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;