]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/ml403-ac97cr.c
x86: ia32 syscall restart fix
[linux-2.6-omap-h63xx.git] / sound / drivers / ml403-ac97cr.c
index 22223152a347ef14bed6d958e15d8b98e507f032..05a871aa7b818fd45eed66d40ef396a5075eccc7 100644 (file)
  * accesses to a minimum, because after a variable amount of accesses, the AC97
  * controller doesn't raise the register access finished bit anymore ...
  *
- * - Capture support works - basically, but after ~30s (with rates > ~20kHz)
- * ALSA stops reading captured samples from the intermediate buffer and
- * therefore a overrun happens - ATM I don't know what's wrong.
- *
  * - Playback support seems to be pretty stable - no issues here.
+ * - Capture support "works" now, too. Overruns don't happen any longer so often.
+ *   But there might still be some ...
  */
 
-#include <sound/driver.h>
 #include <linux/init.h>
 #include <linux/moduleparam.h>
 
@@ -1314,6 +1311,8 @@ static int __devinit snd_ml403_ac97cr_probe(struct platform_device *pfdev)
                (unsigned long)ml403_ac97cr->port, ml403_ac97cr->irq,
                ml403_ac97cr->capture_irq, dev + 1);
 
+       snd_card_set_dev(card, &pfdev->dev);
+
        err = snd_card_register(card);
        if (err < 0) {
                snd_card_free(card);