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/msm8916/platform.c b/hal/msm8916/platform.c
index fc461ce..43869a2 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -239,7 +239,7 @@
char *channels_mixer_ctl;
} codec_backend_cfg_t;
-static native_audio_prop na_props = {0, 0, 0};
+static native_audio_prop na_props = {0, 0, NATIVE_AUDIO_MODE_INVALID};
static bool supports_true_32_bit = false;
struct meta_key_list {
@@ -2460,17 +2460,15 @@
__func__);
platform_set_native_support(NATIVE_AUDIO_MODE_SRC);
}
- } else {
- platform_set_native_support(NATIVE_AUDIO_MODE_INVALID);
+ }
+ if (strstr(snd_card_name, "tavil")) {
+ ALOGD("%s:DSD playback is supported", __func__);
+ my_data->is_dsd_supported = true;
+ my_data->is_asrc_supported = true;
+ platform_set_native_support(NATIVE_AUDIO_MODE_MULTIPLE_44_1);
}
}
- if(strstr(snd_card_name, "tavil")) {
- ALOGD("%s:DSD playback is supported", __func__);
- my_data->is_dsd_supported = true;
- my_data->is_asrc_supported = true;
- platform_set_native_support(NATIVE_AUDIO_MODE_MULTIPLE_44_1);
- }
my_data->edid_info = NULL;
return my_data;
}