diff options
| author | Jaroslav Kysela <perex@suse.cz> | 2003-02-09 21:47:59 +0100 |
|---|---|---|
| committer | Jaroslav Kysela <perex@suse.cz> | 2003-02-09 21:47:59 +0100 |
| commit | 2125e9716b1361bccbbd45580be989030295d613 (patch) | |
| tree | e7f531925bfc07dc32321e5adc561aa90b092fb8 | |
| parent | 28a59cb02a6b97cb27e914687c0346c608abd110 (diff) | |
ALSA update
- 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
| -rw-r--r-- | include/sound/asound.h | 1 | ||||
| -rw-r--r-- | include/sound/timer.h | 1 | ||||
| -rw-r--r-- | include/sound/version.h | 2 | ||||
| -rw-r--r-- | sound/ppc/pmac.c | 4 | ||||
| -rw-r--r-- | sound/ppc/powermac.c | 2 | ||||
| -rw-r--r-- | sound/ppc/tumbler.c | 1 | ||||
| -rw-r--r-- | sound/usb/usbaudio.c | 4 |
7 files changed, 11 insertions, 4 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h index 04fefdffb0ce..9e351ebaf847 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h @@ -32,7 +32,6 @@ #include <linux/types.h> #include <linux/time.h> #include <asm/byteorder.h> -#include <linux/interrupt.h> #if __LITTLE_ENDIAN == 1234 #define SNDRV_LITTLE_ENDIAN diff --git a/include/sound/timer.h b/include/sound/timer.h index 079c33f27c74..ecd1c0f5785c 100644 --- a/include/sound/timer.h +++ b/include/sound/timer.h @@ -23,6 +23,7 @@ */ #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; diff --git a/include/sound/version.h b/include/sound/version.h index 23460ba88901..6d8e7448464b 100644 --- a/include/sound/version.h +++ b/include/sound/version.h @@ -1,3 +1,3 @@ /* 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)" diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 3d443de8f3a5..d2f613332a80 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -26,6 +26,7 @@ #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> @@ -695,6 +696,7 @@ int __init snd_pmac_pcm_new(pmac_t *chip) } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) /* * beep stuff @@ -931,6 +933,8 @@ int __init snd_pmac_attach_beep(pmac_t *chip) 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); diff --git a/sound/ppc/powermac.c b/sound/ppc/powermac.c index 510d9b422226..e657cfc63c83 100644 --- a/sound/ppc/powermac.c +++ b/sound/ppc/powermac.c @@ -129,8 +129,10 @@ static int __init snd_pmac_probe(void) 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; diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 43d8da2ec672..775d4e02b342 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c @@ -26,6 +26,7 @@ #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> diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index ce35d0e3dc45..f6662e19e7af 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c @@ -2216,12 +2216,12 @@ static int create_composite_quirk(snd_usb_audio_t *chip, 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 && |
