hal: Fix true mode native playback on internal codec
- Update check to ensure that native playback is supported
on non-tasha variants as well if the platform supports it.
-Configure ADM with correct sample rate for native
playback.
Change-Id: I7c95171b6afd3727f114be1223e09d40c674a428
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 595e72b..6f33acf 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1656,7 +1656,8 @@
platform_check_and_update_copp_sample_rate(adev->platform, out_snd_device,
usecase->stream.out->sample_rate,
&usecase->stream.out->app_type_cfg.sample_rate);
- } else if ((out_snd_device != SND_DEVICE_OUT_HEADPHONES_44_1 &&
+ } else if (((out_snd_device != SND_DEVICE_OUT_HEADPHONES_44_1 &&
+ !audio_is_true_native_stream_active(adev)) &&
usecase->stream.out->sample_rate == OUTPUT_SAMPLING_RATE_44100) ||
(usecase->stream.out->sample_rate < OUTPUT_SAMPLING_RATE_44100)) {
usecase->stream.out->app_type_cfg.sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE;