Skip to contentSkip to conversation

ALSA Driver for ARM

DISCUSSION [email protected] 3 participants 6 messages Mar 28, 2005 – Mar 30, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx also from Cirrus.

I think, there are several errors:

- when I start aplay, I receive a buffer. A dump to this memory region show only zeros.

- after the complete buffer is transmitted (but not the complete file), I receive an underrun from ALSA

- I never detect a mmap function call.

I have attached the source code and also the Debug output.

Thanks

Klaus

author
#1 lore raw

Hi,

I have a new hint, but the problem is not solved.

Quoted 7 lines

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx also from Cirrus.

I think, there are several errors:

- when I start aplay, I receive a buffer. A dump to this memory region show only zeros.

I have written some characters into the DMA Memory Area (with a Hardware Debugger) when the driver is started, but aplay is not started. After I start aplay, all my characters are overwritten with Zero.

Which function in ALSA is responsible for filling the DMA Buffer ?

Quoted 6 lines

- after the complete buffer is transmitted (but not the complete file), I receive an underrun from ALSA

- I never detect a mmap function call.

Thanks,

Klaus

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw

At Tue, 29 Mar 2005 23:31:08 +0200,

Quoted 10 lines · T-Online

Hi,

I have a new hint, but the problem is not solved.

Quoted 5 lines

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx also from Cirrus.

I think, there are several errors:

Quoted 8 lines
Quoted 3 lines

- when I start aplay, I receive a buffer. A dump to this memory region show only zeros.

I have written some characters into the DMA Memory Area (with a Hardware Debugger) when the driver is started, but aplay is not started. After I start aplay, all my characters are overwritten with Zero.

Which function in ALSA is responsible for filling the DMA Buffer ?

If it's not mmap mode, it must be through SNDRV_PCM_IOCTL_WRITEI_FRAMES ioctl (note that alsa-lib doesn't use write syscall).

i.e. snd_pcm_lib_write() -> snd_pcm_lib_writei() ->
snd_pcm_lib_write_transfer() -> copy_from_user()

Takashi

Quoted 12 lines
Quoted 6 lines

- after the complete buffer is transmitted (but not the complete file), I receive an underrun from ALSA

- I never detect a mmap function call.

Thanks,

Klaus

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#3 lore raw
In reply to [email protected]
Quoted 4 lines · On Mon, 28 Mar 2005 [email protected] wrote:

Hi,

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx also from Cirrus.

What kernel version are you using?

Nicolas

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#4 lore raw
Quoted 9 lines · Nicolas Pitre
Quoted 4 lines

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx also from Cirrus.

What kernel version are you using?

I am using kernel 2.6.11.3-ep93xx

http://linux-cirrus.bkbits.net

Klaus

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#5 lore raw
Quoted 11 lines · On Wed, 30 Mar 2005 [email protected] wrote:
Quoted 8 lines · Nicolas Pitre
Quoted 4 lines

I want to programm an driver for the Cirrus CS42516 and the ARM9 CPU EP93xx
also from Cirrus.

What kernel version are you using?

I am using kernel 2.6.11.3-ep93xx

If it's 2.6.11 or above then the problem is most likely to be in your own code. Prior kernel versions had problems with the mapping of DMA memory.

Nicolas

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click