Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: T-Online <k.fetscher@t-online.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: ALSA Driver for ARM
Date: Wed, 30 Mar 2005 16:52:42 +0200	[thread overview]
Message-ID: <s5hwtrpfao5.wl@alsa2.suse.de> (raw)
In-Reply-To: <4249C91C.9000000@t-online.de>

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

  reply	other threads:[~2005-03-30 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2005-03-29 21:41 ` Nicolas Pitre
2005-03-30  5:51   ` K.Fetscher
2005-03-30 16:50     ` Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hwtrpfao5.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=k.fetscher@t-online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox