es18xx - 1869 not working, debugging ALSA drivers
Hi,
I've been trying to get ALSA running on my Compaq Armada 3500 for quite a while now. The soundchip is a es1869, which is supposed to be supported by the es18xx driver. It only works 1 out of 10 times though - and I figured out when it works and when it doesn't... But that didn't help me much until now, I tried to force it to always use the working mode, but that didn't work out...
The OSS driver is working properly, but I use the Soundblaster driver, which is only half-duplex, and in fact, it's a different mode of the soundchip.
I've been trying to debug the driver, but it's not really my thing... Maybe there are some handy tricks to debug ALSA drivers? Or is it just:
1) change the source
2) compile the source
3) see if it works (by loading the module.. and playing some audio)
4) if it doesn't work restart with 1)
Are there tools to control soundchips without using this laborious cycle? Some kind of framework to check out the stuff that is written in the chip's datasheet?
greetz,
Kasper
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
Quoted 9 lines
I've been trying to debug the driver, but it's not really my thing... Maybe there are some handy tricks to debug ALSA drivers? Or is it just:
1) change the source
2) compile the source
3) see if it works (by loading the module.. and playing some audio)
4) if it doesn't work restart with 1)
Yeah,.., I feel familiar with that method -:) I guess I'm not the only one
Probably you can add a point:
3.5) If the computer totally freezes (course change to the source was very wrong and bad) restart computer, and go to 1) + (I hate ext2 filesystems)
I don't known any better method, maybe just yet another point:
1.5) review changes yet one more time and go back to 1 or 1.5 a couple of times
to try prevent moment "3.5"
But, stuffs like the tool "ksymoops", the alsa functions/macros: snd_assert(...), snd_magic_cast(...), snd_printk(...), snd_printdd(...), etc. helps a lot!
/Benny
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
At Tue, 5 Nov 2002 20:33:16 +0100,
Quoted 10 lines · [email protected] wrote:
Hi,
I've been trying to get ALSA running on my Compaq Armada 3500 for quite a while now. The soundchip is a es1869, which is supposed to be supported by the es18xx driver. It only works 1 out of 10 times though - and I figured out when it works and when it doesn't... But that didn't help me much until now, I tried to force it to always use the working mode, but that didn't work out...
Quoted 2 lines
The OSS driver is working properly, but I use the Soundblaster driver, which is only half-duplex, and in fact, it's a different mode of the soundchip.
i've seen this on my colleague's laptop.
it seems that the second DAC (which is used for the playback) doesn't work although it looks as if initialized properly.
perhaps an easy solution is to make a module option to make the driver work as half-duplex.
Quoted 10 lines
I've been trying to debug the driver, but it's not really my thing... Maybe there are some handy tricks to debug ALSA drivers? Or is it just:
1) change the source
2) compile the source
3) see if it works (by loading the module.. and playing some audio)
4) if it doesn't work restart with 1)Are there tools to control soundchips without using this laborious cycle? Some kind of framework to check out the stuff that is written in the chip's datasheet?
i'd love to have such a tool :)
btw, if you need to access only i/o ports, then even a user program can do. it would be easier than recompiling the driver.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Hi,
At Thu, 28 Nov 2002 18:22:05 +0100,
Quoted 16 lines · I wrote:
At Tue, 5 Nov 2002 20:33:16 +0100,
Quoted 10 lines · [email protected] wrote:
Hi,
I've been trying to get ALSA running on my Compaq Armada 3500 for quite a while now. The soundchip is a es1869, which is supposed to be supported by the es18xx driver. It only works 1 out of 10 times though - and I figured out when it works and when it doesn't... But that didn't help me much until now, I tried to force it to always use the working mode, but that didn't work out...
Quoted 2 lines
The OSS driver is working properly, but I use the Soundblaster driver, which is only half-duplex, and in fact, it's a different mode of the soundchip.
Quoted 6 lines
i've seen this on my colleague's laptop.
it seems that the second DAC (which is used for the playback) doesn't work although it looks as if initialized properly.perhaps an easy solution is to make a module option to make the driver work as half-duplex.
with the attached patch, you can speficy the same value to both dma1 and dma2, and the driver works as half-duplex.
could you check whether it works for you?
thanks,
Takashi