[alsa-devel] Access to bytes from the raw audio stream? (AC'97)

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Feb 3 17:59:24 CET 2010


On Wed, Feb 03, 2010 at 04:27:05PM +0000, John Graham wrote:

> Basically, we've got a problem where we think our processor is
> bit-shifting the sample for some reason, and I was going to see if I
> could either (i) un-bit-shift it (it looks like we're not actually
> losing any data, the sound's just being multiplied by 2^4), or (ii)
> reproduce the problem we see by bit-shifting the samples on a
> known-good platform.

Presumably you can just bit shift the audio data in userspace?

> Would I be able to access samples quite early on in the generic AC'97
> code (I don't know where that is, either, but it would be interesting
> to see, at least :p)

As I said most AC97 controllers handle all the multiplexing and framing
in hardware so the generic AC97 layer doesn't deal with AC97 wire format
at all.  You will need to look at your AC97 controller driver.


More information about the Alsa-devel mailing list