diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-09-11 13:50:51 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-09-11 13:50:51 -0400 |
commit | f61eebe86ec6ec2b91143727b0884d7c1f5bb59f (patch) | |
tree | 11589ae0a0f0a6af4c6e74c77fed9cb84a99775f /linux/include/sound | |
parent | 4b07c7ec71410a0f8c68befcfdfbdc0978edb140 (diff) | |
download | mediapointer-dvb-s2-f61eebe86ec6ec2b91143727b0884d7c1f5bb59f.tar.gz mediapointer-dvb-s2-f61eebe86ec6ec2b91143727b0884d7c1f5bb59f.tar.bz2 |
fix kernel backwards-compat for tea575x-tuner.[ch]
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/include/sound')
-rw-r--r-- | linux/include/sound/tea575x-tuner.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linux/include/sound/tea575x-tuner.h b/linux/include/sound/tea575x-tuner.h index aca07adb5..978fd322a 100644 --- a/linux/include/sound/tea575x-tuner.h +++ b/linux/include/sound/tea575x-tuner.h @@ -26,15 +26,28 @@ #include <linux/videodev.h> #include <media/v4l2-dev.h> +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) +typedef struct snd_tea575x tea575x_t; +#else struct snd_tea575x; +#endif struct snd_tea575x_ops { +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) + void (*write)(tea575x_t *tea, unsigned int val); + unsigned int (*read)(tea575x_t *tea); +#else void (*write)(struct snd_tea575x *tea, unsigned int val); unsigned int (*read)(struct snd_tea575x *tea); +#endif }; struct snd_tea575x { +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) + snd_card_t *card; +#else struct snd_card *card; +#endif struct video_device vd; /* video device */ struct file_operations fops; int dev_nr; /* requested device number + 1 */ @@ -47,7 +60,12 @@ struct snd_tea575x { void *private_data; }; +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,17) +void snd_tea575x_init(tea575x_t *tea); +void snd_tea575x_exit(tea575x_t *tea); +#else void snd_tea575x_init(struct snd_tea575x *tea); void snd_tea575x_exit(struct snd_tea575x *tea); +#endif #endif /* __SOUND_TEA575X_TUNER_H */ |