diff options
Diffstat (limited to 'sound/i2c')
-rw-r--r-- | sound/i2c/other/tea575x-tuner.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c index 28a4af782f5e..87e3aefeddc3 100644 --- a/sound/i2c/other/tea575x-tuner.c +++ b/sound/i2c/other/tea575x-tuner.c | |||
@@ -158,6 +158,10 @@ static int snd_tea575x_ioctl(struct inode *inode, struct file *file, | |||
158 | struct video_audio v; | 158 | struct video_audio v; |
159 | if(copy_from_user(&v, arg, sizeof(v))) | 159 | if(copy_from_user(&v, arg, sizeof(v))) |
160 | return -EFAULT; | 160 | return -EFAULT; |
161 | if (tea->ops->mute) | ||
162 | tea->ops->mute(tea, | ||
163 | (v.flags & | ||
164 | VIDEO_AUDIO_MUTE) ? 1 : 0); | ||
161 | if(v.audio) | 165 | if(v.audio) |
162 | return -EINVAL; | 166 | return -EINVAL; |
163 | return 0; | 167 | return 0; |
@@ -205,6 +209,10 @@ void snd_tea575x_init(struct snd_tea575x *tea) | |||
205 | tea->freq = 90500 * 16; /* 90.5Mhz default */ | 209 | tea->freq = 90500 * 16; /* 90.5Mhz default */ |
206 | 210 | ||
207 | snd_tea575x_set_freq(tea); | 211 | snd_tea575x_set_freq(tea); |
212 | |||
213 | /* mute on init */ | ||
214 | if (tea->ops->mute) | ||
215 | tea->ops->mute(tea, 1); | ||
208 | } | 216 | } |
209 | 217 | ||
210 | void snd_tea575x_exit(struct snd_tea575x *tea) | 218 | void snd_tea575x_exit(struct snd_tea575x *tea) |