summaryrefslogtreecommitdiff
path: root/linux/sound
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-06 14:05:50 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-03-06 14:05:50 +0100
commit64d20e39637f98c31a3a93399e9e0628c82fc053 (patch)
treef042d86fbb61750c638471aa375c0f34be6bad91 /linux/sound
parent5504a83e1c3b04b1845eb63484a301738919372a (diff)
downloadmediapointer-dvb-s2-64d20e39637f98c31a3a93399e9e0628c82fc053.tar.gz
mediapointer-dvb-s2-64d20e39637f98c31a3a93399e9e0628c82fc053.tar.bz2
tea575x-tuner: compile fixes for older kernels.
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/sound')
-rw-r--r--linux/sound/i2c/other/tea575x-tuner.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/linux/sound/i2c/other/tea575x-tuner.c b/linux/sound/i2c/other/tea575x-tuner.c
index 8937198db..c5add7cb0 100644
--- a/linux/sound/i2c/other/tea575x-tuner.c
+++ b/linux/sound/i2c/other/tea575x-tuner.c
@@ -77,11 +77,7 @@ static struct v4l2_queryctrl radio_qctrl[] = {
* lowlevel part
*/
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17)
-static void snd_tea575x_set_freq(tea575x_t *tea)
-#else
static void snd_tea575x_set_freq(struct snd_tea575x *tea)
-#endif
{
unsigned long freq;
@@ -209,9 +205,9 @@ static int vidioc_queryctrl(struct file *file, void *priv,
static int vidioc_g_ctrl(struct file *file, void *priv,
struct v4l2_control *ctrl)
{
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
struct snd_tea575x *tea = video_drvdata(file);
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
switch (ctrl->id) {
case V4L2_CID_AUDIO_MUTE:
if (tea->ops->mute) {
@@ -226,9 +222,9 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
static int vidioc_s_ctrl(struct file *file, void *priv,
struct v4l2_control *ctrl)
{
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
struct snd_tea575x *tea = video_drvdata(file);
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17)
switch (ctrl->id) {
case V4L2_CID_AUDIO_MUTE:
if (tea->ops->mute) {
@@ -301,11 +297,7 @@ static struct video_device tea575x_radio = {
/*
* initialize all the tea575x chips
*/
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17)
-void snd_tea575x_init(tea575x_t *tea)
-#else
void snd_tea575x_init(struct snd_tea575x *tea)
-#endif
{
int retval;
unsigned int val;