diff options
author | Jarkko Nikula <jarkko.nikula@nokia.com> | 2008-06-25 07:58:45 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-06-26 03:02:17 -0400 |
commit | 81971a14947b344ee7f6e3781f7ef36d8996f57a (patch) | |
tree | 8914ad0f3d26222fdccf250adac92c76204434f7 /sound/soc | |
parent | 0bd72a3d49fc9fcac0202e4a2f394c7ee82af914 (diff) |
ALSA: ASoC: TLV320AIC3X: Modify only interface related bits in aic3x_set_dai_fmt
Those two serial data interface control register bits have also other
functions and they can be set before aic3x_set_dai_fmt is called.
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index 0c7452f932e7..29dc0ec3dd23 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c | |||
@@ -809,8 +809,10 @@ static int aic3x_set_dai_fmt(struct snd_soc_codec_dai *codec_dai, | |||
809 | { | 809 | { |
810 | struct snd_soc_codec *codec = codec_dai->codec; | 810 | struct snd_soc_codec *codec = codec_dai->codec; |
811 | struct aic3x_priv *aic3x = codec->private_data; | 811 | struct aic3x_priv *aic3x = codec->private_data; |
812 | u8 iface_areg = 0; | 812 | u8 iface_areg, iface_breg; |
813 | u8 iface_breg = 0; | 813 | |
814 | iface_areg = aic3x_read_reg_cache(codec, AIC3X_ASD_INTF_CTRLA) & 0x3f; | ||
815 | iface_breg = aic3x_read_reg_cache(codec, AIC3X_ASD_INTF_CTRLB) & 0x3f; | ||
814 | 816 | ||
815 | /* set master/slave audio interface */ | 817 | /* set master/slave audio interface */ |
816 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { | 818 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |