mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
phonepad: codec set slave when BT incall, and set pll.
This commit is contained in:
@@ -126,7 +126,7 @@ static int rt3261_voice_hw_params(struct snd_pcm_substream *substream,
|
||||
DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__);
|
||||
|
||||
ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_DSP_A |
|
||||
SND_SOC_DAIFMT_IB_NF | SND_SOC_DAIFMT_CBM_CFM );
|
||||
SND_SOC_DAIFMT_IB_NF | SND_SOC_DAIFMT_CBS_CFS );
|
||||
|
||||
switch(params_rate(params)) {
|
||||
case 8000:
|
||||
@@ -152,7 +152,7 @@ static int rt3261_voice_hw_params(struct snd_pcm_substream *substream,
|
||||
/*Set the system clk for codec*/
|
||||
snd_soc_dai_set_pll(codec_dai, 0, RT3261_PLL1_S_MCLK, pll_out, 256 * 8000);
|
||||
|
||||
ret = snd_soc_dai_set_sysclk(codec_dai, 0, 256 * 8000, SND_SOC_CLOCK_IN);
|
||||
ret = snd_soc_dai_set_sysclk(codec_dai, RT3261_SCLK_S_PLL1, 256 * 8000, SND_SOC_CLOCK_IN);
|
||||
|
||||
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user