]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: tas2552: Configure the WCLK frequency based on the stream
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 4 Jun 2015 13:04:30 +0000 (16:04 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jun 2015 17:53:36 +0000 (18:53 +0100)
commita571cb17acb6156e6ea8d5fe2ff824e713416bae
treee9d897170ae7df34cba502f70c9ca4f4e0c53b4f
parentd20b098dd98ec9e0a205ad59e32d93a636a783b3
ASoC: tas2552: Configure the WCLK frequency based on the stream

Instead of hard wiring the WCLK frequency at probe time do it runtime.
The hard wired 88_96KHz was not even setting the correct bits since it was
defined as (1 << 6) which will  change the I2S_OUT_SEL bit and will leave
the amplifier configured for 8KHz.
At the same time clean up and fix the CFG3 register bits.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2552.c
sound/soc/codecs/tas2552.h