hal: Add change to configure headphone to 48Khz sample rate.
Lag in playback is observed when both the speaker and headphone
are configured using the native clock.
Add change to configure headphone to 48Khz sample rate before enabling
the use case on speaker.
Change-Id: Ib972ca09e5a29c7fb312ba3e382c3a7bb7c30bea
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 6da2652..d3bc137 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -957,6 +957,8 @@
disable_audio_route(adev, usecase);
disable_snd_device(adev, usecase->out_snd_device);
usecase->stream.out->sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE;
+ platform_check_and_set_codec_backend_cfg(adev, usecase,
+ usecase->out_snd_device);
enable_audio_route(adev, usecase);
enable_snd_device(adev, usecase->out_snd_device);
}