* ALSA snd_xferi_t buffer arrangment
@ 2006-10-11 13:07 Assaf Hoffman
2006-10-11 13:53 ` James Courtier-Dutton
0 siblings, 1 reply; 11+ messages in thread
From: Assaf Hoffman @ 2006-10-11 13:07 UTC (permalink / raw)
To: alsa-devel; +Cc: Rita Shtern
[-- Attachment #1.1: Type: text/plain, Size: 1482 bytes --]
Hi,
I'm mew to sound and ALSA.
My project deals with PCM in standard (I2S) mode and IEC958 (SPDIF)
mode.
Can anyone tell me how the ALSA stack expects to "see" the data received
form the sound device? I mean, what is the format of the data DMA'ed
from the sound device to DRAM that the ALSA stack expects?
Is this raw sound data? SPDIF frame includes non sound data as well.
Does the sound card HW strip the sound payload from the IEC958 frame to
deliver the raw sound data to the ALSA buffer?
Please shed some light...
Many thanks.
<http://www.marvell.com>
<http://www.marvell.com>
MOVING FORWARD FASTER <http://www.il.marvell.com/>
Assaf Hoffman - Senior SW engineer
Marvell Semiconductor Israel Ltd
6 Hamada Street
Mordot HaCarmel Industrial Park
Yokneam 20692, ISRAEL
Email - hoffman@marvell.com
Tel - + 972 4 9091203
Fax - + 972 4 9091565
WWW Page: http://www.marvell.com
This message may contain confidential, proprietary or legally privileged
information. The information is intended only for the use of the
individual or entity named above. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this communication in error, please notify us
immediately by telephone or by e-mail and delete the message from your
computer.
[-- Attachment #1.2: Type: text/html, Size: 8825 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 13:07 Assaf Hoffman
@ 2006-10-11 13:53 ` James Courtier-Dutton
0 siblings, 0 replies; 11+ messages in thread
From: James Courtier-Dutton @ 2006-10-11 13:53 UTC (permalink / raw)
To: Assaf Hoffman; +Cc: Rita Shtern, alsa-devel
Assaf Hoffman wrote:
> Hi,
>
> I'm mew to sound and ALSA.
>
> My project deals with PCM in standard (I2S) mode and IEC958 (SPDIF)
> mode.
>
> Can anyone tell me how the ALSA stack expects to "see" the data received
> form the sound device? I mean, what is the format of the data DMA'ed
> from the sound device to DRAM that the ALSA stack expects?
>
> Is this raw sound data? SPDIF frame includes non sound data as well.
> Does the sound card HW strip the sound payload from the IEC958 frame to
> deliver the raw sound data to the ALSA buffer?
>
> Please shed some light...
>
> Many thanks.
>
>
ALSA can deal with all the different formats that the sound device might
deliver. The low level sound driver simply tells the upper layers what
formats are available. ALSA then handles those formats and all format
conversion required to reach the user space application.
It depends what your device does as to which format ALSA will see.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
@ 2006-10-11 14:08 Assaf Hoffman
2006-10-11 14:22 ` James Courtier-Dutton
0 siblings, 1 reply; 11+ messages in thread
From: Assaf Hoffman @ 2006-10-11 14:08 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: Rita Shtern, alsa-devel
Thank you for your reply.
Please let me clarify. What you say is that my device can deliver a raw
ICE958 data from the capture channel to the DMA buffer and the ALSA
stack will know how to deal with it? No need for the device to strip
down the payload and only then transfer it to the DMA buffer?
In case the sound card can strip down the IEC958 frames into raw sound
data + ch status + user data, how would the ALSA stack expect the data?
Is there an API for that?
Thanks again.
-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.co.uk]
Sent: Wednesday, October 11, 2006 3:54 PM
To: Assaf Hoffman
Cc: alsa-devel@lists.sourceforge.net; Rita Shtern
Subject: Re: [Alsa-devel] ALSA snd_xferi_t buffer arrangment
Assaf Hoffman wrote:
> Hi,
>
> I'm mew to sound and ALSA.
>
> My project deals with PCM in standard (I2S) mode and IEC958 (SPDIF)
> mode.
>
> Can anyone tell me how the ALSA stack expects to "see" the data
received
> form the sound device? I mean, what is the format of the data DMA'ed
> from the sound device to DRAM that the ALSA stack expects?
>
> Is this raw sound data? SPDIF frame includes non sound data as well.
> Does the sound card HW strip the sound payload from the IEC958 frame
to
> deliver the raw sound data to the ALSA buffer?
>
> Please shed some light...
>
> Many thanks.
>
>
ALSA can deal with all the different formats that the sound device might
deliver. The low level sound driver simply tells the upper layers what
formats are available. ALSA then handles those formats and all format
conversion required to reach the user space application.
It depends what your device does as to which format ALSA will see.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 14:08 Assaf Hoffman
@ 2006-10-11 14:22 ` James Courtier-Dutton
0 siblings, 0 replies; 11+ messages in thread
From: James Courtier-Dutton @ 2006-10-11 14:22 UTC (permalink / raw)
To: Assaf Hoffman; +Cc: Rita Shtern, alsa-devel
Assaf Hoffman wrote:
> Thank you for your reply.
> Please let me clarify. What you say is that my device can deliver a raw
> ICE958 data from the capture channel to the DMA buffer and the ALSA
> stack will know how to deal with it? No need for the device to strip
> down the payload and only then transfer it to the DMA buffer?
> In case the sound card can strip down the IEC958 frames into raw sound
> data + ch status + user data, how would the ALSA stack expect the data?
> Is there an API for that?
> Thanks again.
>
If you don't strip the IEC958 frames, tell ALSA the format is:
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_BE
If you do strip the IEC958 frames, tell ALSA the format is:
SNDRV_PCM_FMTBIT_S24_LE or
SNDRV_PCM_FMTBIT_S16_LE
Or whatever format your hardware decides to send.
The API for this is contained in the following structure in the sound
driver:
This example is from the snd-emu10k1 driver.
static struct snd_pcm_hardware snd_emu10k1_capture =
{
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_RESUME |
SNDRV_PCM_INFO_MMAP_VALID),
.formats = SNDRV_PCM_FMTBIT_S16_LE,
.rates = SNDRV_PCM_RATE_8000_48000,
.rate_min = 8000,
.rate_max = 48000,
.channels_min = 1,
.channels_max = 2,
.buffer_bytes_max = (64*1024),
.period_bytes_min = 384,
.period_bytes_max = (64*1024),
.periods_min = 2,
.periods_max = 2,
.fifo_size = 0,
};
As you can see, it tells use that this device can do only
SNDRV_PCM_FMTBIT_S16_LE format.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
@ 2006-10-11 14:52 Assaf Hoffman
2006-10-11 15:00 ` James Courtier-Dutton
0 siblings, 1 reply; 11+ messages in thread
From: Assaf Hoffman @ 2006-10-11 14:52 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: Rita Shtern, alsa-devel
Hi,
Thanks again for clear answers.
In case the HW strip the IEC958 frames, where the ALSA stack expect to
find the various frame data fields such as perr, valid bit, audio
sample, user data and channel status? Is there a data structure the HW
should follow when DMAing the striped data to the DRAM buffer?
What do you think of such acceleration? Does this saves a significant
CPU time processing the ICE958 frames?
Many thanks.
P.S.
I was looking into the ASLA stack and I could find
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
initialization. I could not see where it is used to tell the ALSA to
process the data as IEC958 frames.
-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.co.uk]
Sent: Wednesday, October 11, 2006 4:23 PM
To: Assaf Hoffman
Cc: alsa-devel@lists.sourceforge.net; Rita Shtern
Subject: Re: [Alsa-devel] ALSA snd_xferi_t buffer arrangment
Assaf Hoffman wrote:
> Thank you for your reply.
> Please let me clarify. What you say is that my device can deliver a
raw
> ICE958 data from the capture channel to the DMA buffer and the ALSA
> stack will know how to deal with it? No need for the device to strip
> down the payload and only then transfer it to the DMA buffer?
> In case the sound card can strip down the IEC958 frames into raw sound
> data + ch status + user data, how would the ALSA stack expect the
data?
> Is there an API for that?
> Thanks again.
>
If you don't strip the IEC958 frames, tell ALSA the format is:
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_BE
If you do strip the IEC958 frames, tell ALSA the format is:
SNDRV_PCM_FMTBIT_S24_LE or
SNDRV_PCM_FMTBIT_S16_LE
Or whatever format your hardware decides to send.
The API for this is contained in the following structure in the sound
driver:
This example is from the snd-emu10k1 driver.
static struct snd_pcm_hardware snd_emu10k1_capture =
{
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_RESUME |
SNDRV_PCM_INFO_MMAP_VALID),
.formats = SNDRV_PCM_FMTBIT_S16_LE,
.rates = SNDRV_PCM_RATE_8000_48000,
.rate_min = 8000,
.rate_max = 48000,
.channels_min = 1,
.channels_max = 2,
.buffer_bytes_max = (64*1024),
.period_bytes_min = 384,
.period_bytes_max = (64*1024),
.periods_min = 2,
.periods_max = 2,
.fifo_size = 0,
};
As you can see, it tells use that this device can do only
SNDRV_PCM_FMTBIT_S16_LE format.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 14:52 ALSA snd_xferi_t buffer arrangment Assaf Hoffman
@ 2006-10-11 15:00 ` James Courtier-Dutton
2006-10-11 15:17 ` Takashi Iwai
0 siblings, 1 reply; 11+ messages in thread
From: James Courtier-Dutton @ 2006-10-11 15:00 UTC (permalink / raw)
To: Assaf Hoffman; +Cc: Rita Shtern, alsa-devel
Assaf Hoffman wrote:
> Hi,
> Thanks again for clear answers.
> In case the HW strip the IEC958 frames, where the ALSA stack expect to
> find the various frame data fields such as perr, valid bit, audio
> sample, user data and channel status? Is there a data structure the HW
> should follow when DMAing the striped data to the DRAM buffer?
> What do you think of such acceleration? Does this saves a significant
> CPU time processing the ICE958 frames?
> Many thanks.
> P.S.
> I was looking into the ASLA stack and I could find
> SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
> initialization. I could not see where it is used to tell the ALSA to
> process the data as IEC958 frames.
>
A majority of sound cards strip the frame, and only put the audio
samples in the DMA buffer. The sound card then stores the valid bits,
non-audio bit, user data etc. in a separate register on the sound card.
The processing of the IEC958 frames is done in alsa-lib.
ALSA has two parts, and kernel part, and a user space lib.
The kernel part does as little as possible, with the user space part
doing all the format conversion etc.
I have not looked closely, but I don't know if the alsa-lib decodes the
IEC958 frames or not yet.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 15:00 ` James Courtier-Dutton
@ 2006-10-11 15:17 ` Takashi Iwai
2006-10-11 15:19 ` James Courtier-Dutton
0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2006-10-11 15:17 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: Rita Shtern, alsa-devel
At Wed, 11 Oct 2006 16:00:54 +0100,
James Courtier-Dutton wrote:
>
> Assaf Hoffman wrote:
> > Hi,
> > Thanks again for clear answers.
> > In case the HW strip the IEC958 frames, where the ALSA stack expect to
> > find the various frame data fields such as perr, valid bit, audio
> > sample, user data and channel status? Is there a data structure the HW
> > should follow when DMAing the striped data to the DRAM buffer?
> > What do you think of such acceleration? Does this saves a significant
> > CPU time processing the ICE958 frames?
> > Many thanks.
> > P.S.
> > I was looking into the ASLA stack and I could find
> > SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
> > initialization. I could not see where it is used to tell the ALSA to
> > process the data as IEC958 frames.
> >
>
> A majority of sound cards strip the frame, and only put the audio
> samples in the DMA buffer. The sound card then stores the valid bits,
> non-audio bit, user data etc. in a separate register on the sound card.
>
> The processing of the IEC958 frames is done in alsa-lib.
> ALSA has two parts, and kernel part, and a user space lib.
> The kernel part does as little as possible, with the user space part
> doing all the format conversion etc.
>
> I have not looked closely, but I don't know if the alsa-lib decodes the
> IEC958 frames or not yet.
It can. iec958 plugin does encode/decode IEC958 frames.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 15:17 ` Takashi Iwai
@ 2006-10-11 15:19 ` James Courtier-Dutton
2006-10-11 15:22 ` Takashi Iwai
0 siblings, 1 reply; 11+ messages in thread
From: James Courtier-Dutton @ 2006-10-11 15:19 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Rita Shtern, alsa-devel
Takashi Iwai wrote:
> At Wed, 11 Oct 2006 16:00:54 +0100,
> James Courtier-Dutton wrote:
>> Assaf Hoffman wrote:
>>> Hi,
>>> Thanks again for clear answers.
>>> In case the HW strip the IEC958 frames, where the ALSA stack expect to
>>> find the various frame data fields such as perr, valid bit, audio
>>> sample, user data and channel status? Is there a data structure the HW
>>> should follow when DMAing the striped data to the DRAM buffer?
>>> What do you think of such acceleration? Does this saves a significant
>>> CPU time processing the ICE958 frames?
>>> Many thanks.
>>> P.S.
>>> I was looking into the ASLA stack and I could find
>>> SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
>>> initialization. I could not see where it is used to tell the ALSA to
>>> process the data as IEC958 frames.
>>>
>> A majority of sound cards strip the frame, and only put the audio
>> samples in the DMA buffer. The sound card then stores the valid bits,
>> non-audio bit, user data etc. in a separate register on the sound card.
>>
>> The processing of the IEC958 frames is done in alsa-lib.
>> ALSA has two parts, and kernel part, and a user space lib.
>> The kernel part does as little as possible, with the user space part
>> doing all the format conversion etc.
>>
>> I have not looked closely, but I don't know if the alsa-lib decodes the
>> IEC958 frames or not yet.
>
> It can. iec958 plugin does encode/decode IEC958 frames.
>
>
> Takashi
Does it let the user app set the valid, non-audio etc. bits?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
2006-10-11 15:19 ` James Courtier-Dutton
@ 2006-10-11 15:22 ` Takashi Iwai
0 siblings, 0 replies; 11+ messages in thread
From: Takashi Iwai @ 2006-10-11 15:22 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: alsa-devel, Rita Shtern
At Wed, 11 Oct 2006 16:19:44 +0100,
James Courtier-Dutton wrote:
>
> Takashi Iwai wrote:
> > At Wed, 11 Oct 2006 16:00:54 +0100,
> > James Courtier-Dutton wrote:
> >> Assaf Hoffman wrote:
> >>> Hi,
> >>> Thanks again for clear answers.
> >>> In case the HW strip the IEC958 frames, where the ALSA stack expect to
> >>> find the various frame data fields such as perr, valid bit, audio
> >>> sample, user data and channel status? Is there a data structure the HW
> >>> should follow when DMAing the striped data to the DRAM buffer?
> >>> What do you think of such acceleration? Does this saves a significant
> >>> CPU time processing the ICE958 frames?
> >>> Many thanks.
> >>> P.S.
> >>> I was looking into the ASLA stack and I could find
> >>> SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
> >>> initialization. I could not see where it is used to tell the ALSA to
> >>> process the data as IEC958 frames.
> >>>
> >> A majority of sound cards strip the frame, and only put the audio
> >> samples in the DMA buffer. The sound card then stores the valid bits,
> >> non-audio bit, user data etc. in a separate register on the sound card.
> >>
> >> The processing of the IEC958 frames is done in alsa-lib.
> >> ALSA has two parts, and kernel part, and a user space lib.
> >> The kernel part does as little as possible, with the user space part
> >> doing all the format conversion etc.
> >>
> >> I have not looked closely, but I don't know if the alsa-lib decodes the
> >> IEC958 frames or not yet.
> >
> > It can. iec958 plugin does encode/decode IEC958 frames.
> >
> >
> > Takashi
>
> Does it let the user app set the valid, non-audio etc. bits?
Yes, it takes arguments.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
@ 2006-10-11 15:40 Assaf Hoffman
0 siblings, 0 replies; 11+ messages in thread
From: Assaf Hoffman @ 2006-10-11 15:40 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: Rita Shtern, alsa-devel
Hi,
Thank you for your reply.
I would be happy if you kindly reply to the following questions:
1) According to your experience, is it correct to assume that once a PCM
instance for playback/capture is prepared and triggered, the user
data
and channel status are constants during data transmit/receive?
2) In the case HW saves the user data and channel status in its internal
registers, how would the ALSA stack know of any of them changed?
3) Is there a bridge application in the ALSA stack (kerne)? I mean, in
case
I would like to capture ICE958 frames and route them to ICE958
playback
channel.
Thanks.
-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.co.uk]
Sent: Wednesday, October 11, 2006 5:01 PM
To: Assaf Hoffman
Cc: alsa-devel@lists.sourceforge.net; Rita Shtern
Subject: Re: [Alsa-devel] ALSA snd_xferi_t buffer arrangment
Assaf Hoffman wrote:
> Hi,
> Thanks again for clear answers.
> In case the HW strip the IEC958 frames, where the ALSA stack expect to
> find the various frame data fields such as perr, valid bit, audio
> sample, user data and channel status? Is there a data structure the HW
> should follow when DMAing the striped data to the DRAM buffer?
> What do you think of such acceleration? Does this saves a significant
> CPU time processing the ICE958 frames?
> Many thanks.
> P.S.
> I was looking into the ASLA stack and I could find
> SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_XX only in snd_pcm_hardware structure
> initialization. I could not see where it is used to tell the ALSA to
> process the data as IEC958 frames.
>
A majority of sound cards strip the frame, and only put the audio
samples in the DMA buffer. The sound card then stores the valid bits,
non-audio bit, user data etc. in a separate register on the sound card.
The processing of the IEC958 frames is done in alsa-lib.
ALSA has two parts, and kernel part, and a user space lib.
The kernel part does as little as possible, with the user space part
doing all the format conversion etc.
I have not looked closely, but I don't know if the alsa-lib decodes the
IEC958 frames or not yet.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ALSA snd_xferi_t buffer arrangment
@ 2006-10-18 6:31 Assaf Hoffman
0 siblings, 0 replies; 11+ messages in thread
From: Assaf Hoffman @ 2006-10-18 6:31 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: Rita Shtern, alsa-devel
Hi,
The ALSA PCM supported formats are located in pcm.h file.
Where can I find the specification (bit fields) of those PCM formats?
Many thanks.
-----Original Message-----
From: James Courtier-Dutton [mailto:James@superbug.co.uk]
Sent: Wednesday, October 11, 2006 3:54 PM
To: Assaf Hoffman
Cc: alsa-devel@lists.sourceforge.net; Rita Shtern
Subject: Re: [Alsa-devel] ALSA snd_xferi_t buffer arrangment
Assaf Hoffman wrote:
> Hi,
>
> I'm mew to sound and ALSA.
>
> My project deals with PCM in standard (I2S) mode and IEC958 (SPDIF)
> mode.
>
> Can anyone tell me how the ALSA stack expects to "see" the data
received
> form the sound device? I mean, what is the format of the data DMA'ed
> from the sound device to DRAM that the ALSA stack expects?
>
> Is this raw sound data? SPDIF frame includes non sound data as well.
> Does the sound card HW strip the sound payload from the IEC958 frame
to
> deliver the raw sound data to the ALSA buffer?
>
> Please shed some light...
>
> Many thanks.
>
>
ALSA can deal with all the different formats that the sound device might
deliver. The low level sound driver simply tells the upper layers what
formats are available. ALSA then handles those formats and all format
conversion required to reach the user space application.
It depends what your device does as to which format ALSA will see.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-10-18 6:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 14:52 ALSA snd_xferi_t buffer arrangment Assaf Hoffman
2006-10-11 15:00 ` James Courtier-Dutton
2006-10-11 15:17 ` Takashi Iwai
2006-10-11 15:19 ` James Courtier-Dutton
2006-10-11 15:22 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2006-10-18 6:31 Assaf Hoffman
2006-10-11 15:40 Assaf Hoffman
2006-10-11 14:08 Assaf Hoffman
2006-10-11 14:22 ` James Courtier-Dutton
2006-10-11 13:07 Assaf Hoffman
2006-10-11 13:53 ` James Courtier-Dutton
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.