From c1e12d920074b82dfca2b1c1c50176bc94629593 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Thu, 16 Aug 2007 14:38:46 -0700 Subject: compat: ALSA compat code From: Trent Piepho Removed some ALSA compat code from bt87x and put it into compat.h, then use this code in cx88-alsa and saa7134-alsa to avoid lots and lots of #ifs. All the kernel version checks in cx88-alsa and saa7134 were off by one too, which is now fixed. Signed-off-by: Trent Piepho --- linux/sound/pci/bt87x.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'linux/sound/pci') diff --git a/linux/sound/pci/bt87x.c b/linux/sound/pci/bt87x.c index cbbd22b4a..a6e7971e3 100644 --- a/linux/sound/pci/bt87x.c +++ b/linux/sound/pci/bt87x.c @@ -35,23 +35,6 @@ #include #include #include "compat.h" -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) -/* structs that used to be typedefs */ -#define snd_card _snd_card -#define snd_pcm _snd_pcm -#define snd_pcm_substream _snd_pcm_substream -#define snd_pcm_hardware _snd_pcm_hardware -#define snd_pcm_runtime _snd_pcm_runtime -#define snd_pcm_hw_params sndrv_pcm_hw_params -#define snd_pcm_ops _snd_pcm_ops -#define snd_ctl_elem_info sndrv_ctl_elem_info -#define snd_ctl_elem_value sndrv_ctl_elem_value -#undef snd_kcontrol -#define snd_kcontrol _snd_kcontrol -#define snd_kcontrol_new _snd_kcontrol_new -#undef snd_device -#define snd_device _snd_device -#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) /* From linux/pch_ids.h, appeared in 2.6.14 */ #define PCI_DEVICE_ID_BROOKTREE_879 0x0879 -- cgit v1.2.3