mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "ASoC: msm: Loopback Driver send asm cal data in prepare stage"
This commit is contained in:
commit
31f4eab8ba
1 changed files with 6 additions and 0 deletions
6
asoc/msm-pcm-loopback-v2.c
Normal file → Executable file
6
asoc/msm-pcm-loopback-v2.c
Normal file → Executable file
|
|
@ -347,6 +347,7 @@ static int msm_pcm_open(struct snd_pcm_substream *substream)
|
|||
pcm->audio_client->fedai_id = rtd->dai_link->id;
|
||||
pcm->session_id = pcm->audio_client->session;
|
||||
pcm->audio_client->perf_mode = pdata->perf_mode;
|
||||
pcm->audio_client->stream_type = substream->stream;
|
||||
ret = q6asm_open_loopback_v2(pcm->audio_client,
|
||||
bits_per_sample);
|
||||
if (ret < 0) {
|
||||
|
|
@ -523,6 +524,11 @@ static int msm_pcm_prepare(struct snd_pcm_substream *substream)
|
|||
pr_err("%s: audio client freed\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = q6asm_send_cal(pcm->audio_client);
|
||||
if (ret < 0)
|
||||
pr_err("%s : Send audio cal failed : %d", __func__, ret);
|
||||
|
||||
msm_pcm_routing_reg_phy_stream(soc_pcm_tx->dai_link->id,
|
||||
pcm->audio_client->perf_mode,
|
||||
pcm->session_id, pcm->capture_substream->stream);
|
||||
|
|
|
|||
Loading…
Reference in a new issue