* HPPA Harmony driver
@ 2002-11-05 9:39 Laurent Canet
2002-11-05 17:26 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Canet @ 2002-11-05 9:39 UTC (permalink / raw)
To: alsa-devel
Hi there,
I'm working on the ALSA port of a linux audio driver. This is for the harmony chipset, which is found in some HP PA/RISC workstations.
This chipset is relatively old (datasheets mentions 93), however it supports 16bit 48Khz stereo playback & recording.
The driver already exists in the 2.4 linux kernel, but to comply with plans for 2.6 kernel, we wish to switch it in an ALSA form.
I've converted most of the code (which still needs to be tested and debugged) to alsa 0.9, using dummy.c as a skeleton.
I have a question:
- What is exactly the pointer function, what does it returns (in normal operation) ?
Thank you in advance.
(I'm sorry, due to badly configured mua, I send many bad mails to ml moderators, shame on me! :) )
--
Laurent Canet
PA/Linux ESIEE Team
http://pateam.esiee.fr
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HPPA Harmony driver
2002-11-05 9:39 HPPA Harmony driver Laurent Canet
@ 2002-11-05 17:26 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2002-11-05 17:26 UTC (permalink / raw)
To: Laurent Canet; +Cc: alsa-devel
Hi,
At Tue, 5 Nov 2002 10:39:55 +0100,
Laurent Canet wrote:
>
>
> Hi there,
>
> I'm working on the ALSA port of a linux audio driver. This is for the harmony chipset, which is found in some HP PA/RISC workstations.
> This chipset is relatively old (datasheets mentions 93), however it supports 16bit 48Khz stereo playback & recording.
> The driver already exists in the 2.4 linux kernel, but to comply with plans for 2.6 kernel, we wish to switch it in an ALSA form.
>
> I've converted most of the code (which still needs to be tested and debugged) to alsa 0.9, using dummy.c as a skeleton.
> I have a question:
> - What is exactly the pointer function, what does it returns (in normal operation) ?
the pointer callback functions returns the current hardware pointer.
that is, in the case of playback, the position in the DMA buffer which
is currently played (or at least has been played very recently).
this callback is called usually from the ALSA's middle-level routine
which is called from interrupt handler, and updates the current
position, and commit/adjust the next transfer size.
please note the return value is _in frames_.
in general, ALSA handles the size in frames, not in bytes.
frames per bytes = # channels * sample-byte-size
e.g. for 2 channel stereo in 16bit format, 1 frame corresponds to 4
bytes.
there are helper functions to convert the units, found in pcm.h.
the return value of pointer callback is bounded between 0 and buffer
size - 1 (again in frames).
Takashi
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-05 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-05 9:39 HPPA Harmony driver Laurent Canet
2002-11-05 17:26 ` Takashi Iwai
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.