audio: hal: Configure HW Info for SBC8096
Add configuration of HW info for SBC8096 Platform. CRs-Fixed: 1049211 Change-Id: I8f58b78aa055e63b079aac98965091c4845699e2
This commit is contained in:
parent
cee2c712d2
commit
b19ec455fb
|
@ -135,6 +135,10 @@ static const snd_device_t tasha_DB_variant_devices[] = {
|
|||
SND_DEVICE_OUT_SPEAKER
|
||||
};
|
||||
|
||||
static const snd_device_t tasha_sbc_variant_devices[] = {
|
||||
SND_DEVICE_IN_HANDSET_MIC
|
||||
};
|
||||
|
||||
static const snd_device_t taiko_apq8084_sbc_variant_devices[] = {
|
||||
SND_DEVICE_IN_HANDSET_MIC,
|
||||
SND_DEVICE_IN_SPEAKER_MIC,
|
||||
|
@ -301,6 +305,12 @@ static void update_hardware_info_8996(struct hardware_info *hw_info, const char
|
|||
hw_info->snd_devices = (snd_device_t *)tasha_DB_variant_devices;
|
||||
hw_info->num_snd_devices = ARRAY_SIZE(tasha_DB_variant_devices);
|
||||
strlcpy(hw_info->dev_extn, "-db", sizeof(hw_info->dev_extn));
|
||||
} else if (!strcmp(snd_card_name, "msm8996-tasha-sbc-snd-card")) {
|
||||
strlcpy(hw_info->type, " sbc", sizeof(hw_info->type));
|
||||
strlcpy(hw_info->name, "msm8996", sizeof(hw_info->name));
|
||||
hw_info->snd_devices = (snd_device_t *)tasha_sbc_variant_devices;
|
||||
hw_info->num_snd_devices = ARRAY_SIZE(tasha_sbc_variant_devices);
|
||||
strlcpy(hw_info->dev_extn, "-sbc", sizeof(hw_info->dev_extn));
|
||||
} else {
|
||||
ALOGW("%s: Not a 8996 device", __func__);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue