hal: msm8974: Select platform info xml for qcs405 WSA

- CSRA is replaced with WSA as CSRA can go with default
  config whereas WSA would need specific config.

Change-Id: I5e358846b01dca00a5523b253744556da9a39070
This commit is contained in:
Ramu Gottipati 2018-08-21 16:00:22 +05:30 committed by Gerrit - the friendly Code Review server
parent 188857507d
commit 54ed9482c4
1 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@
#define MIXER_XML_PATH_AUXPCM "/etc/mixer_paths_auxpcm.xml"
#define MIXER_XML_PATH_I2S "/etc/mixer_paths_i2s.xml"
#define PLATFORM_INFO_XML_PATH_I2S "/etc/audio_platform_info_extcodec.xml"
#define PLATFORM_INFO_XML_PATH_CSRA "/etc/audio_platform_info_csra.xml"
#define PLATFORM_INFO_XML_PATH_WSA "/etc/audio_platform_info_wsa.xml"
#else
#define MIXER_XML_BASE_STRING "/vendor/etc/mixer_paths"
#define MIXER_XML_DEFAULT_PATH "/vendor/etc/mixer_paths.xml"
@ -75,7 +75,7 @@
#define MIXER_XML_PATH_AUXPCM "/vendor/etc/mixer_paths_auxpcm.xml"
#define MIXER_XML_PATH_I2S "/vendor/etc/mixer_paths_i2s.xml"
#define PLATFORM_INFO_XML_PATH_I2S "/vendor/etc/audio_platform_info_i2s.xml"
#define PLATFORM_INFO_XML_PATH_CSRA "/vendor/etc/audio_platform_info_csra.xml"
#define PLATFORM_INFO_XML_PATH_WSA "/vendor/etc/audio_platform_info_wsa.xml"
#endif
#include <linux/msm_audio.h>
@ -2171,9 +2171,9 @@ void *platform_init(struct audio_device *adev)
else if (!strncmp(snd_card_name, "sdm670-skuw-snd-card",
sizeof("sdm670-skuw-snd-card")))
platform_info_init(PLATFORM_INFO_XML_PATH_SKUW, my_data, PLATFORM);
else if (!strncmp(snd_card_name, "qcs405-csra",
sizeof("qcs405-csra")))
platform_info_init(PLATFORM_INFO_XML_PATH_CSRA, my_data, PLATFORM);
else if (!strncmp(snd_card_name, "qcs405-wsa-snd-card",
sizeof("qcs405-wsa-snd-card")))
platform_info_init(PLATFORM_INFO_XML_PATH_WSA, my_data, PLATFORM);
else if (my_data->is_internal_codec)
platform_info_init(PLATFORM_INFO_XML_PATH_INTCODEC, my_data, PLATFORM);
else