audio: fixed regression of TV-8378 [1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Thu, 22 Aug 2019 02:54:46 +0000 (10:54 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 22 Aug 2019 08:30:50 +0000 (01:30 -0700)
PD#SWPL-13063

Problem:
dd/ddp/dts isn't decoded when window swithing

Solution:
fixed regression of TV-8378

Verify:
X301 T972

Change-Id: Id85dde4b06af9ae9609a5ed269d884fa8500044b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
sound/soc/amlogic/auge/resample.c

index 5a2762b06379dd475e8b9eeddfa6e0a5c74165cc..c4cd6c1df962bb7b54218e447dde8091fb70cd04 100644 (file)
@@ -245,7 +245,7 @@ int resample_set(enum resample_idx id, enum samplerate_index index, bool force)
        set_resample_rate_index(id, index);
 
        resample_rate = resample_idx2rate(index);
-       ret = audio_resample_set(p_resample, true, resample_rate);
+       ret = audio_resample_set(p_resample, index, resample_rate);
        if (ret)
                return ret;