summaryrefslogtreecommitdiff
path: root/linux/sound/i2c/other/tea575x-tuner.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-10 18:32:24 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-10 18:32:24 -0300
commit02b5c443f53867b693751a9aff1753ffea8891d4 (patch)
treeb7ffea17fc72c01c0da8a9efed4678fc2c696a93 /linux/sound/i2c/other/tea575x-tuner.c
parent680ea3ab76d048fde04738d4c022bdbf7c42f370 (diff)
parent1c1afdf2276238132ec99de72499b60b1944b887 (diff)
downloadmediapointer-dvb-s2-02b5c443f53867b693751a9aff1753ffea8891d4.tar.gz
mediapointer-dvb-s2-02b5c443f53867b693751a9aff1753ffea8891d4.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/sound/i2c/other/tea575x-tuner.c')
-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;