Re: Trouble with sound/mips/au1x00.c AC97 driver

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

 



Hello Freddy,

Friday I've had some time to explore the problem. My current experience is with an Au1500 based custom board. I've compiled the ALSA modules for the integrated AC97 in kernel 2.6.17.14. I've still not noticed the problem with the missing controls, but my most frequent issue is with the "AC'97 0 access error (not audio or modem codec)" error message. Notice that when this message is issued the module is not loaded, so I have to reload it.

At the moment the only solution for this problem is to force a device reset during the board setup. Strange enough, it is exactly the same thing done in the module with the lines:

    /* Initialise Au1000's AC'97 Control Block */
    au1000->ac97_ioport->cntrl = AC97C_RS | AC97C_CE;
    udelay(10);
    au1000->ac97_ioport->cntrl = AC97C_CE;
    udelay(10);

Perhaps the delays are not correct, and doing them in the board setup (at kernel start) leaves enought time for the clocks to stabilize (just guessing).

Basically you have to play with bits 0 and 1 in the device control register (0xB000 0010).

I'll check the issue again next monday, but I am for sure not a kernel guru.



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

  Powered by Linux