From 125e5188e5e67498e95b3613a761563df1cde8bb Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Mon, 9 Oct 2017 14:56:26 +0800 Subject: [PATCH] use two channel transfer 4 channels, rate should be double --- ac108.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ac108.c b/ac108.c index fe1dfe1..279b132 100644 --- a/ac108.c +++ b/ac108.c @@ -777,7 +777,7 @@ static int ac108_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_h dev_dbg(dai->dev,"rate:%d \n", params_rate(params)); for (i = 0; i < ARRAY_SIZE(ac108_sample_rate); i++) { - if (ac108_sample_rate[i].real_val == params_rate(params)) { + if (ac108_sample_rate[i].real_val ==( params_rate(params)/2)) { rate = i; break; }