Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
boss authored and boss committed Sep 11, 2013
1 parent f1f6757 commit f57f6d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sound/soc/msm/apq8064.c
Expand Up @@ -180,7 +180,7 @@ static int msm8960_mi2s_hw_params(struct snd_pcm_substream *substream,
int bit_clk_set = 0;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
bit_clk_set = 12288000/(rate * 2 * 16);
bit_clk_set = 18432000/(rate * 2 * 24);
clk_set_rate(mi2s_rx_bit_clk, bit_clk_set);
}
return 1;
Expand Down Expand Up @@ -254,7 +254,7 @@ static int msm8960_mi2s_startup(struct snd_pcm_substream *substream)
configure_mi2s_rx_gpio();
mi2s_rx_osr_clk = clk_get(cpu_dai->dev, "osr_clk");
if (mi2s_rx_osr_clk) {
clk_set_rate(mi2s_rx_osr_clk, 12288000);
clk_set_rate(mi2s_rx_osr_clk, 18432000);
clk_prepare_enable(mi2s_rx_osr_clk);
}
mi2s_rx_bit_clk = clk_get(cpu_dai->dev, "bit_clk");
Expand Down Expand Up @@ -1550,7 +1550,11 @@ static int msm_auxpcm_be_params_fixup(struct snd_soc_pcm_runtime *rtd,
SNDRV_PCM_HW_PARAM_CHANNELS);


rate->min = rate->max = 8000;
#ifdef CONFIG_BT_WBS_BRCM
rate->min = rate->max = 16000;
#else
rate->min = rate->max = 8000;
#endif
channels->min = channels->max = 1;

return 0;
Expand Down

0 comments on commit f57f6d1

Please sign in to comment.