diff options
author | Lionel Xu <Lionel.Xu@freescale.com> | 2010-07-28 13:34:02 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2010-12-13 16:09:27 -0500 |
commit | c7ccc1696de445bb9b0caa7fcf6b01c0b8145795 (patch) | |
tree | 0316180537eab6a61a308022e8cf97b27ba590c4 /sound | |
parent | 832be404ad930fb33190d7314547ee7a1de5b247 (diff) |
ENGR00125326 MX28 ALSA: Can't play streams with sample rate 8k to 22k
Resolve the problem of playing wav streams with sample rate 8k,11k,16k
and 22k.
Signed-off-by: Lionel Xu <r63889@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 2 | ||||
-rw-r--r-- | sound/soc/mxs/mxs-dai.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index f05f76485054..178678d03d74 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -634,6 +634,8 @@ static int sgtl5000_pcm_hw_params(struct snd_pcm_substream *substream, } /* SGTL5000 rev1 has a IC bug to prevent switching to MCLK from PLL. */ if (!sgtl5000->master) { + sys_fs = sgtl5000->lrclk; + clk_ctl = SGTL5000_RATE_MODE_DIV_1 << SGTL5000_RATE_MODE_SHIFT; if (sys_fs * 256 == sgtl5000->sysclk) clk_ctl |= SGTL5000_MCLK_FREQ_256FS << \ SGTL5000_MCLK_FREQ_SHIFT; diff --git a/sound/soc/mxs/mxs-dai.c b/sound/soc/mxs/mxs-dai.c index 8df684d15164..04308d8d3127 100644 --- a/sound/soc/mxs/mxs-dai.c +++ b/sound/soc/mxs/mxs-dai.c @@ -288,6 +288,7 @@ static int mxs_saif_set_dai_clkdiv(struct snd_soc_dai *cpu_dai, default: return -EINVAL; } + break; default: return -EINVAL; } |