summaryrefslogtreecommitdiff
path: root/linux/sound/i2c/other/tea575x-tuner.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/sound/i2c/other/tea575x-tuner.c')
-rw-r--r--linux/sound/i2c/other/tea575x-tuner.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/sound/i2c/other/tea575x-tuner.c b/linux/sound/i2c/other/tea575x-tuner.c
index 52d190597..a7fbe18d0 100644
--- a/linux/sound/i2c/other/tea575x-tuner.c
+++ b/linux/sound/i2c/other/tea575x-tuner.c
@@ -20,11 +20,11 @@
*
*/
-#include <sound/driver.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
+#include "compat.h"
#include <sound/core.h>
#include <sound/tea575x-tuner.h>
@@ -167,6 +167,10 @@ static int snd_tea575x_ioctl(struct inode *inode, struct file *file,
struct video_audio v;
if(copy_from_user(&v, arg, sizeof(v)))
return -EFAULT;
+ if (tea->ops->mute)
+ tea->ops->mute(tea,
+ (v.flags &
+ VIDEO_AUDIO_MUTE) ? 1 : 0);
if(v.audio)
return -EINVAL;
return 0;
@@ -218,6 +222,10 @@ void snd_tea575x_init(struct snd_tea575x *tea)
tea->freq = 90500 * 16; /* 90.5Mhz default */
snd_tea575x_set_freq(tea);
+
+ /* mute on init */
+ if (tea->ops->mute)
+ tea->ops->mute(tea, 1);
}
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17)