O2 IP32: patch for ALSA sound for 2.6.12rc2 (2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



more comments about previous patch:
following problems have been reported when compiling static driver:
- "mace" musn't be defined in the driver => just comment line 112 in sgio2audio.c
- AD1843 init may be done twice (or more) to get it working... but driver can't be launch again when static...


Kumba, can you replace alsa_card_sgio2audio_init in sgio2audio.c with following code ?
(not really nice, but should do the trick when AD1843 won't go ahead)
====================================================
/* initialization of the module */
#include <linux/delay.h>
static int __init alsa_card_sgio2audio_init(void)
{
int err,tries;
tries=0;
while(tries<5){
if ((err = snd_sgio2audio_probe()) < 0) {
printk("sgio2audio: probe SGI O2 Audio #%d\n",tries);
tries++;
msleep(1000);
}
else{
printk("sgio2audio: SGI O2 Audio probed - OK\n");
return 0;
}
}
printk("sgio2audio: sorry, SGI O2 Audio can't be initialized\n");
return err;
}
====================================================


Fred


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux