ALSA supported PCM formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI,
I'm new to ALSA and I'm trying to understand the PCM formats and the way
ALSA stack place/pick them from the DMA buffer.

My understanding concerns PCM formats that their physical representation
bit size is bigger than the actual sound sample bit size.
For example, defined in pcm_misc.c file under pcm_formats[]:
	[SNDRV_PCM_FORMAT_x24_xE]  = {.width = 24, .phys = 32, ...}
	[SNDRV_PCM_FORMAT_x20_3xE] = {.width = 20, .phys = 24, ...}
	[SNDRV_PCM_FORMAT_x18_3xE] = {.width = 18, .phys = 24, ...}
How the ALSA stack (kernel 2.6.12.6) knows the offset of the sound
sample bits inside the format physical size? For example, when the sound
sample size is 24 (.width = 24) and the format physical size is 32
(.phys = 32) the sound sample offset inside the physical frame can
anywhere beteen 0-7 bit. How the ALSA stack can know where to look for
the sound sample?
Thanks. 

-------------------------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux