summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-tvaudio.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <devnull@localhost>2005-10-04 15:03:48 +0000
committerNickolay V. Shmyrev <devnull@localhost>2005-10-04 15:03:48 +0000
commitbbdc3f2170c5c7658bd4e7290c59668d2c8f603b (patch)
tree5e9e4b6d8fef8e4434f931435dec1dc2f569a78e /linux/drivers/media/video/saa7134/saa7134-tvaudio.c
parent36ee392abfd65982ac9e82467da9cdbe50e245c0 (diff)
downloadmediapointer-dvb-s2-bbdc3f2170c5c7658bd4e7290c59668d2c8f603b.tar.gz
mediapointer-dvb-s2-bbdc3f2170c5c7658bd4e7290c59668d2c8f603b.tar.bz2
* saa7134-tvaudio.c: (mute_input_7134):
- Full mute of saa7134 on mute command. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-tvaudio.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-tvaudio.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-tvaudio.c b/linux/drivers/media/video/saa7134/saa7134-tvaudio.c
index 0ce93ad34..03530d3c9 100644
--- a/linux/drivers/media/video/saa7134/saa7134-tvaudio.c
+++ b/linux/drivers/media/video/saa7134/saa7134-tvaudio.c
@@ -1,5 +1,5 @@
/*
- * $Id: saa7134-tvaudio.c,v 1.32 2005/09/13 20:11:39 mkrufky Exp $
+ * $Id: saa7134-tvaudio.c,v 1.33 2005/10/04 15:03:48 nsh Exp $
*
* device driver for philips saa7134 based TV cards
* tv audio decoder (fm stereo, nicam, ...)
@@ -209,6 +209,10 @@ static void tvaudio_setcarrier(struct saa7134_dev *dev,
saa_writel(SAA7134_CARRIER2_FREQ0 >> 2, tvaudio_carr2reg(secondary));
}
+#define SAA7134_MUTE_MASK 0xbb
+#define SAA7134_MUTE_ANALOG 0x04
+#define SAA7134_MUTE_I2S 0x40
+
static void mute_input_7134(struct saa7134_dev *dev)
{
unsigned int mute;
@@ -243,7 +247,11 @@ static void mute_input_7134(struct saa7134_dev *dev)
if (PCI_DEVICE_ID_PHILIPS_SAA7134 == dev->pci->device)
/* 7134 mute */
- saa_writeb(SAA7134_AUDIO_MUTE_CTRL, mute ? 0xbf : 0xbb);
+ saa_writeb(SAA7134_AUDIO_MUTE_CTRL, mute ?
+ SAA7134_MUTE_MASK |
+ SAA7134_MUTE_ANALOG |
+ SAA7134_MUTE_I2S :
+ SAA7134_MUTE_MASK);
/* switch internal audio mux */
switch (in->amux) {