[alsa-devel] Sample format coversion bug?

Takashi Iwai tiwai at suse.de
Mon Oct 29 10:05:16 CET 2007


At Mon, 29 Oct 2007 16:01:12 +0500,
Alexander E. Patrakov wrote:
> 
> Takashi Iwai wrote:
> > Well, apparently something wrong with mmap, then.
> 
> Do you mean "something is wrong with the kernel driver" or "plug really 
> expects mmap access to the card to be available"?

The latter case.  Does your driver support mmap?

> >   Does the device really support 24bit format?
> 
> No, it doesn't - that's the whole point of the test. I expected "plug" 
> to guess that the device supports a 16-bit format, record 16-bit samples 
> from the hardware, multiply all recorded samples by 256, and return the 
> result as 32-bit words (so that the result is a set of valid S24_LE 
> samples, even though the least significant byte is always zero).

Then yes, it should work like that.


Takashi


More information about the Alsa-devel mailing list