* ALSA Driver for ARM
@ 2005-03-28 13:44 K.Fetscher
2005-03-29 21:31 ` T-Online
2005-03-29 21:41 ` Nicolas Pitre
0 siblings, 2 replies; 6+ messages in thread
From: K.Fetscher @ 2005-03-28 13:44 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 447 bytes --]
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
[-- Attachment #2: Driver.rar --]
[-- Type: application/octet-stream, Size: 9364 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ALSA Driver for ARM
2005-03-28 13:44 ALSA Driver for ARM K.Fetscher
@ 2005-03-29 21:31 ` T-Online
2005-03-30 14:52 ` Takashi Iwai
2005-03-29 21:41 ` Nicolas Pitre
1 sibling, 1 reply; 6+ messages in thread
From: T-Online @ 2005-03-29 21:31 UTC (permalink / raw)
To: alsa-devel
Hi,
I have a new hint, but the problem is not solved.
> 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 ?
> - 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ALSA Driver for ARM
2005-03-28 13:44 ALSA Driver for ARM K.Fetscher
2005-03-29 21:31 ` T-Online
@ 2005-03-29 21:41 ` Nicolas Pitre
2005-03-30 5:51 ` K.Fetscher
1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Pitre @ 2005-03-29 21:41 UTC (permalink / raw)
To: K.Fetscher; +Cc: alsa-devel
On Mon, 28 Mar 2005 K.Fetscher@t-online.de 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ALSA Driver for ARM
2005-03-29 21:41 ` Nicolas Pitre
@ 2005-03-30 5:51 ` K.Fetscher
2005-03-30 16:50 ` Nicolas Pitre
0 siblings, 1 reply; 6+ messages in thread
From: K.Fetscher @ 2005-03-30 5:51 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: alsa-devel
Nicolas Pitre schrieb:
>>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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ALSA Driver for ARM
2005-03-29 21:31 ` T-Online
@ 2005-03-30 14:52 ` Takashi Iwai
0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2005-03-30 14:52 UTC (permalink / raw)
To: T-Online; +Cc: alsa-devel
At Tue, 29 Mar 2005 23:31:08 +0200,
T-Online wrote:
>
> Hi,
>
> I have a new hint, but the problem is not solved.
>
> > 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 ?
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
> > - 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ALSA Driver for ARM
2005-03-30 5:51 ` K.Fetscher
@ 2005-03-30 16:50 ` Nicolas Pitre
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Pitre @ 2005-03-30 16:50 UTC (permalink / raw)
To: K.Fetscher; +Cc: alsa-devel
On Wed, 30 Mar 2005 K.Fetscher@t-online.de wrote:
> Nicolas Pitre schrieb:
>
> > > 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-30 16:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-28 13:44 ALSA Driver for ARM K.Fetscher
2005-03-29 21:31 ` T-Online
2005-03-30 14:52 ` Takashi Iwai
2005-03-29 21:41 ` Nicolas Pitre
2005-03-30 5:51 ` K.Fetscher
2005-03-30 16:50 ` Nicolas Pitre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.