summaryrefslogtreecommitdiff
path: root/lib/average.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-10-17 16:14:56 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-11 21:36:01 +0400
commit311afee68d5f06f9f0910231b17e9d5b25ec4491 (patch)
tree6c5f12cb189f36278e3e9237e2824ce8e46fda2d /lib/average.c
parentdae187ec04a6f7752b140d789269730791a7388f (diff)
downloadlinux-311afee68d5f06f9f0910231b17e9d5b25ec4491.tar.xz
ASoC: wm8741: Fix setting interface format for DSP modes
commit 3a340104fad6ecbea5ad6792a2ea855f0507a6e0 upstream. According to the datasheet: Format Control (05h) BITS[3:2] FMT[1:0] Audio data format selection 00 = right justified mode 01 = left justified mode 10 = I2S mode 11 = DSP mode BIT[4] LRP Polarity selec for LRCLK/DSP mode select 0 = normal LRCLK poalrity/DSP mode A 1 = inverted LRCLK poarity/DSP mode B For SND_SOC_DAIFMT_DSP_A, we should set 0x000C instead of 0x0003. For SND_SOC_DAIFMT_DSP_B, we should set 0x001C instead of 0x0013. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/average.c')
0 files changed, 0 insertions, 0 deletions