- moved inclusion of <linux/interrupt.h> from <sound/asound.h> to <sound/timer.h>
- pmac driver - removed beep stuff for 2.5 kernels
- USB driver - fixed compilation
#include <linux/types.h>
#include <linux/time.h>
#include <asm/byteorder.h>
-#include <linux/interrupt.h>
#if __LITTLE_ENDIAN == 1234
#define SNDRV_LITTLE_ENDIAN
*/
#include <sound/asound.h>
+#include <linux/interrupt.h>
typedef enum sndrv_timer_class snd_timer_class_t;
typedef enum sndrv_timer_slave_class snd_timer_slave_class_t;
/* include/version.h. Generated by configure. */
#define CONFIG_SND_VERSION "0.9.0rc7"
-#define CONFIG_SND_DATE " (Sat Feb 08 17:33:25 2003 UTC)"
+#define CONFIG_SND_DATE " (Sun Feb 09 18:00:12 2003 UTC)"
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
+#include <linux/interrupt.h>
#include <sound/core.h>
#include "pmac.h"
#include <sound/pcm_params.h>
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
/*
* beep stuff
return 0;
}
+#endif /* beep stuff */
+
static void snd_pmac_dbdma_reset(pmac_t *chip)
{
out_le32(&chip->playback.dma->control, (RUN|PAUSE|FLUSH|WAKE|DEAD) << 16);
goto __error;
chip->initialized = 1;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
if (enable_beep)
snd_pmac_attach_beep(chip);
+#endif
if ((err = snd_card_register(card)) < 0)
goto __error;
#include <linux/i2c-dev.h>
#include <linux/kmod.h>
#include <linux/slab.h>
+#include <linux/interrupt.h>
#include <sound/core.h>
#include <asm/io.h>
#include <asm/irq.h>
struct usb_interface *iface,
const snd_usb_audio_quirk_t *quirk)
{
- struct usb_config_descriptor *config = chip->dev->actconfig;
+ struct usb_host_config *config = chip->dev->actconfig;
int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber;
int err;
for (quirk = quirk->data; quirk->ifnum >= 0; ++quirk) {
- if (quirk->ifnum >= config->bNumInterfaces)
+ if (quirk->ifnum >= get_cfg_desc(config)->bNumInterfaces)
continue;
iface = &config->interface[quirk->ifnum];
if (quirk->ifnum != probed_ifnum &&