Skip to content

Commit

Permalink
ASoC: tlv320aic23: Clear TLV320AIC23_MS_MASTER bit for slave mode
Browse files Browse the repository at this point in the history
According to the datasheet:

Digital Audio Interface Format (07h) register:
BIT6:	Master/slave mode
	0: Slave
	1: Master

Current code sets TLV320AIC23_MS_MASTER bit for master mode,
but does not clear it for slave mode.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 27, 2011
1 parent b272cc7 commit b01a3d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/tlv320aic23.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai,
iface_reg |= TLV320AIC23_MS_MASTER;
break;
case SND_SOC_DAIFMT_CBS_CFS:
iface_reg &= ~TLV320AIC23_MS_MASTER;
break;
default:
return -EINVAL;
Expand Down

0 comments on commit b01a3d6

Please sign in to comment.