ASoC: STA32x: Add mixer controls for biquad coefficients
authorJohannes Stezenbach <js@sig21.net>
Mon, 11 Jul 2011 15:01:23 +0000 (17:01 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Jul 2011 15:24:31 +0000 (00:24 +0900)
commit796884391504426e9da15bdf76f73c5f4eda3714
tree2e7505ffa5823c93fea5b5403c24c0e3f8c2b5a3
parent5b7396709e0b2d43527024316e0bc4630759bcf3
ASoC: STA32x: Add mixer controls for biquad coefficients

The STA32x has a number of preset EQ settings, but also
allows full user control of the biquad filter coeffcients
(when "Automode EQ" is set to "User").
Each biquad has five signed, 24bit, fixed-point coefficients
representing the range -1...1.  The five biquad coefficients
can be uploaded in one atomic operation into on-chip
coefficient RAM.
There are also a few prescale, postscale and mixing
coefficients, in the same numeric format and range
(a negative coefficient inverts phase).

These coefficients are made available as SNDRV_CTL_ELEM_TYPE_BYTES
mixer controls.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sta32x.c