diff options
Diffstat (limited to 'linux/include')
-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 */ |