diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2010-02-16 06:23:15 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-02-16 14:14:52 -0500 |
commit | e5e878c1c393de917391477bc7627d729f7568fb (patch) | |
tree | 7648f257e65acd0a3f3038f82752b2605da29d81 /sound/soc/codecs | |
parent | dbe21408b15f04da4f80fb89a27b7cb067d6103e (diff) |
ASoC: tlv320dac33: Clearing FIFOFLUSH flag before playback
In repeated playback the FIFOFLUSH bit remained set, and
never has been cleared.
Clear it during the setup phase.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/tlv320dac33.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index 1b35d0cf3364..dab7fd5be867 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c | |||
@@ -734,7 +734,10 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream) | |||
734 | 734 | ||
735 | aictrl_a = dac33_read_reg_cache(codec, DAC33_SER_AUDIOIF_CTRL_A); | 735 | aictrl_a = dac33_read_reg_cache(codec, DAC33_SER_AUDIOIF_CTRL_A); |
736 | aictrl_a &= ~(DAC33_NCYCL_MASK | DAC33_WLEN_MASK); | 736 | aictrl_a &= ~(DAC33_NCYCL_MASK | DAC33_WLEN_MASK); |
737 | /* Read FIFO control A, and clear FIFO flush bit */ | ||
737 | fifoctrl_a = dac33_read_reg_cache(codec, DAC33_FIFO_CTRL_A); | 738 | fifoctrl_a = dac33_read_reg_cache(codec, DAC33_FIFO_CTRL_A); |
739 | fifoctrl_a &= ~DAC33_FIFOFLUSH; | ||
740 | |||
738 | fifoctrl_a &= ~DAC33_WIDTH; | 741 | fifoctrl_a &= ~DAC33_WIDTH; |
739 | switch (substream->runtime->format) { | 742 | switch (substream->runtime->format) { |
740 | case SNDRV_PCM_FORMAT_S16_LE: | 743 | case SNDRV_PCM_FORMAT_S16_LE: |