]> git.baikalelectronics.ru Git - kernel.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)
commit47e301fba924b5ffb21979791dfe090b7525bf31
treee9d897170ae7df34cba502f70c9ca4f4e0c53b4f
parentefdc394c4e03d3cf52f4bc7eb17c319a89db074b
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