]> git.hungrycats.org Git - linux/commit
ASoC: sta529: Fix update register bits in sta529_set_dai_fmt
authorAxel Lin <axel.lin@ingics.com>
Thu, 20 Dec 2012 08:17:25 +0000 (16:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:25 +0000 (08:46 -0800)
commit180f10d6ab1d22f1cac713b5e484d6dde218a0a8
tree9a4dda80298db7bcdb72f356405dd1a698b6ef71
parent764806c51a779c7f3cc12b127962869c0196527a
ASoC: sta529: Fix update register bits in sta529_set_dai_fmt

commit ad1937cdd59c412097ec2bb8f38c12a5640f1f9a upstream.

Both the mask and mode settings are wrong in current code.

According to the datasheet:

S2PCFG0 (0x0A)
BIT[3:1] DATA_FORMAT
        serial interface protocol format:
        000: left Justified
        001: I2S (default)
        010: right justified
        100: PCM no delay
        101: PCM delay
        111: DSP

Thus fixes the defines for LEFT_J_DATA_FORMAT, I2S_DATA_FORMAT, and
RIGHT_J_DATA_FORMAT.
Also adds define for DATA_FORMAT_MSK.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/sta529.c