summaryrefslogtreecommitdiff
path: root/linux/sound
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-17 16:30:11 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-17 16:30:11 +0200
commit3d482117ca1f1846a019f59f91466eb5f3306671 (patch)
treeb1cb7a2b2af2cde6fac52e36559bd87b495cd901 /linux/sound
parentb5125f57f3d64672a4bc21dfc38d9b589448238d (diff)
downloadmediapointer-dvb-s2-3d482117ca1f1846a019f59f91466eb5f3306671.tar.gz
mediapointer-dvb-s2-3d482117ca1f1846a019f59f91466eb5f3306671.tar.bz2
gspca/tea575x-tuner: fix compilation for kernels <= 2.6.17
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/sound')
-rw-r--r--linux/sound/i2c/other/tea575x-tuner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/sound/i2c/other/tea575x-tuner.c b/linux/sound/i2c/other/tea575x-tuner.c
index a7fbe18d0..4ac049ad0 100644
--- a/linux/sound/i2c/other/tea575x-tuner.c
+++ b/linux/sound/i2c/other/tea575x-tuner.c
@@ -167,10 +167,12 @@ 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 LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
if (tea->ops->mute)
tea->ops->mute(tea,
(v.flags &
VIDEO_AUDIO_MUTE) ? 1 : 0);
+#endif
if(v.audio)
return -EINVAL;
return 0;
@@ -223,9 +225,11 @@ void snd_tea575x_init(struct snd_tea575x *tea)
snd_tea575x_set_freq(tea);
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
/* mute on init */
if (tea->ops->mute)
tea->ops->mute(tea, 1);
+#endif
}
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17)