]> git.hungrycats.org Git - linux/commitdiff
ALSA update
authorJaroslav Kysela <perex@suse.cz>
Sun, 9 Feb 2003 20:47:59 +0000 (21:47 +0100)
committerJaroslav Kysela <perex@suse.cz>
Sun, 9 Feb 2003 20:47:59 +0000 (21:47 +0100)
  - 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/sound/asound.h
include/sound/timer.h
include/sound/version.h
sound/ppc/pmac.c
sound/ppc/powermac.c
sound/ppc/tumbler.c
sound/usb/usbaudio.c

index 04fefdffb0ce6500a3fb94cff9d62f67982cb938..9e351ebaf84714ef9977b395b2147026383211dc 100644 (file)
@@ -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
index 079c33f27c745e2018a8dbd2591ecd6f57a23588..ecd1c0f5785c9d69304b6c6df4f772bd970deff3 100644 (file)
@@ -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;
index 23460ba889016dc88fc6f13daf779becb3ad55d0..6d8e7448464b50cd153140b764668d9b38a32f11 100644 (file)
@@ -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)"
index 3d443de8f3a5690db5e132b8304c30f27cd090fb..d2f613332a80b73ab37e4f3541450bb7c03df4da 100644 (file)
@@ -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);
index 510d9b422226b92c582e87dd01fb6540a9e3f1fc..e657cfc63c8320433f52d6c69616f52a9d5e7450 100644 (file)
@@ -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;
index 43d8da2ec672424e7eb399bedefb1a22c5fa8abb..775d4e02b342a91666197c15fd11ed20dd98097c 100644 (file)
@@ -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>
index ce35d0e3dc4505c9c8a63fcf36b3ad182cecdcd8..f6662e19e7af2e48da9aee7eccbee5b3f9eafb62 100644 (file)
@@ -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 &&