From 0aae7a6ea694987286d3c77e5db66ee60f5851cc Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Tue, 26 Sep 2017 15:11:21 +0000 Subject: [PATCH] miss 4 channels, set clock fixed --- ac108.c | 3 ++- ac108_asound.state | 2 +- ac108_plugin/pcm_ac108.o | Bin 28216 -> 0 bytes 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 ac108_plugin/pcm_ac108.o diff --git a/ac108.c b/ac108.c index 03589e4..cafc10e 100644 --- a/ac108.c +++ b/ac108.c @@ -848,7 +848,8 @@ static int ac108_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_h static int ac108_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { struct ac108_priv *ac108 = snd_soc_dai_get_drvdata(dai); - + freq = 24000000; + clk_id = SYSCLK_SRC_PLL; pr_info("%s :%d\n", __FUNCTION__, freq); switch (clk_id) { case SYSCLK_SRC_MCLK: diff --git a/ac108_asound.state b/ac108_asound.state index d99f487..33fb369 100644 --- a/ac108_asound.state +++ b/ac108_asound.state @@ -277,7 +277,7 @@ state.seeed4micvoicec { control.15 { iface MIXER name 'Tx1 Channels' - value '1 channels ' + value '4 channels ' comment { access 'read write' type ENUMERATED diff --git a/ac108_plugin/pcm_ac108.o b/ac108_plugin/pcm_ac108.o deleted file mode 100644 index 26d718d6a5b8813b95f5d19316d784601a66e77c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28216 zcmb__4}6?emG*sSCdo{arqebsX&Yo((l$VoOxm;*DAKe^+t8#9`6C63(`jas8JNt3 znMrB2LNRqk0U>~jQf-y0RjYPgR;$3uLPgY~T|ZWEMYjd}!MeDDz$*Ts`#kqOcjnC` z#qam~_AQy`p8MyVbI(2Z-21-wo#E#8&b5|hDRWt>UKJ>%y06nEB`q52)ofLx{OcS3 z!+ZFS=Ua|wPGcWBwap1<#uD|qLL^Zff?c+RyCa_&6Qa=Pi{=Zy^I zkP+Pf0_7CzMH%-x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