summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLionel Xu <Lionel.Xu@freescale.com>2010-07-28 13:34:02 +0800
committerFrank Li <Frank.Li@freescale.com>2010-09-08 12:58:09 +0800
commit2ef468274d93cc9069a5020578a6d9cb349dbc99 (patch)
tree0316180537eab6a61a308022e8cf97b27ba590c4 /sound
parentff8a2edcf050fed9c0f019644900d5fb9561ac31 (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.c2
-rw-r--r--sound/soc/mxs/mxs-dai.c1
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;
}