From f61eebe86ec6ec2b91143727b0884d7c1f5bb59f Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Mon, 11 Sep 2006 13:50:51 -0400 Subject: fix kernel backwards-compat for tea575x-tuner.[ch] From: Michael Krufky Signed-off-by: Michael Krufky --- linux/include/sound/tea575x-tuner.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'linux/include/sound/tea575x-tuner.h') 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 #include +#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 */ -- cgit v1.2.3