From: "Mathieu Rondonneau" Subject: snd_..._copy Date: Sat, 7 Feb 2004 12:59:32 -0600 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <003401c3edac$885efc30$c4f9cb18@win2K> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0031_01C3ED7A.3AE27AE0" Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org This is a multi-part message in MIME format. ------=_NextPart_000_0031_01C3ED7A.3AE27AE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm writing an ALSA driver using no pci or isa preallocation memory (i'm = using snd_pcm_lib_preallocate_pages_for_all). I've some questions according to the alsa mecanism to transfert datas. I'm using ALSA 0.9.6 when i send a wav file to the /dev/audio0 file:=20 dd if=3Dring.wav of=3D/dev/audio0 =20 In my ops function, i've added: snd_....._playback_copy(snd_pcm_substream_t *substream, int channel, = snd_pcm_uframes_t pos, void* src, snd_pcm_uframes_t count) 1) Why the src pointer doesn't point to the data source (the ring.wav = data) when this function is called by ALSA. 2) why the count parameter is always 200? is it possible to change this = offset in order to copy more data? 3) it seams more complicated to manage memory than using pci or isa = preallocation. Could i use one of these structure ethen if i don't have ISA or PCI = bus/dma on my board? Thanks in advance. Mathieu Rondonneau ------=_NextPart_000_0031_01C3ED7A.3AE27AE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I'm writing an ALSA driver using no pci = or isa=20 preallocation memory (i'm using=20 snd_pcm_lib_preallocate_pages_for_all).
I've some questions according to the = alsa mecanism=20 to transfert datas.
I'm using ALSA 0.9.6
 
when i send a wav file to the = /dev/audio0=20 file:
dd if=3Dring.wav = of=3D/dev/audio0
 
In my ops function, i've = added:
snd_....._playback_copy(snd_pcm_substream_t=20 *substream, int channel, snd_pcm_uframes_t pos, void* src, = snd_pcm_uframes_t=20 count)
1) Why the src pointer doesn't point to = the data=20 source (the ring.wav data) when this function is called by = ALSA.
 
2) why the count parameter is always = 200? is=20 it possible to change this offset in order to copy more = data?
 
3) it seams more complicated to manage = memory than=20 using pci or isa preallocation.
Could i use one of these structure = ethen if i don't=20 have ISA or PCI bus/dma on my board?
 
Thanks in advance.
Mathieu Rondonneau
 
 
------=_NextPart_000_0031_01C3ED7A.3AE27AE0-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn