Merge "ASoC: disable source tracking get functionality for sdm855"

This commit is contained in:
Linux Build Service Account 2018-02-15 17:52:29 -08:00 committed by Gerrit - the friendly Code Review server
commit b0ed99ddc6

View file

@ -11767,24 +11767,7 @@ static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
int ret = 0;
struct source_tracking_param sourceTrackingData;
memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
ret = voc_get_source_tracking(&sourceTrackingData);
if (ret) {
pr_err("%s: Error getting Source Tracking Params, err=%d\n",
__func__, ret);
ret = -EINVAL;
goto done;
}
memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
sizeof(struct source_tracking_param));
done:
return ret;
return -EINVAL;
}
static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,