PD#SWPL-7039
Problem:
Kernel Panic when resample A is disabled
Solution:
When resample is disabled,don't init resample
Verify:
Verified on T962e2_ab311
Change-Id: Id9552ffc6be40f133b828dbded4ad3f15d177ab0
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai)
{
- resample_set_inner_rate(RESAMPLE_A);
+ if (get_audioresample(RESAMPLE_A))
+ resample_set_inner_rate(RESAMPLE_A);
+
return 0;
}
struct audioresample *s_resample_b;
-static struct audioresample *get_audioresample(enum resample_idx id)
+struct audioresample *get_audioresample(enum resample_idx id)
{
struct audioresample *p_resample;
int resample_set_inner_rate(enum resample_idx id);
+struct audioresample *get_audioresample(enum resample_idx id);
+
#endif