Re: Question on PCM formats

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

 



Assaf Hoffman wrote:
> I was looking in http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html
> and I have some questions regarding the PCM format paragraph:
> 
> Q1: I think the sentence:
> "...but the sample is stored in low three bits."
> Should be
> "...but the sample is stored in low three bytes."

Yes, thanks.

> Q2: What is the meaning of "full range" in the sentence:
> "Some hardware does not support processing of full range"?

In that case, "full range" is the size of the samples as specified
by the sample format (in the example, 32 bits).

> Q3: I'm working with kernel 2.6.12.6 and I could not find the
> snd_pcm_hw_params_get_sbits() function there. In which kernel version
> can I find it?

This function is part of ALSA's user space API.  It just returns the
value of the kernel's msbits field.

> Q4: Working with 2.6.12.6 kernel, how can I solve the problem of the
> ICE1712? How do I tell the stack where is the sound sample bit start
> inside the 32-bit frame? 

When the number of valid bits (_get_sbits()) is not as large as the
number of bits of the sample format, the valid bits are always the most
significant bits.  This means that applications can just ignore the
_get_sbits() function and pretend that the ICE1712 uses 32-bit samples.

There are special sample formats for hardware that aligns its data in
the least significant bits of a word, e.g., S24_xE is for 24-bit samples
in the lower three bytes of a 32-bit word. 


HTH
Clemens

-------------------------------------------------------------------------
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