use two channel transfer 4 channels, rate should be double

This commit is contained in:
Baozhu Zuo 2017-10-09 14:56:26 +08:00
parent 3c4fc91f89
commit 125e5188e5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}