mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
asoc: msm-lsm-client: Initialize started flag in open
Initialize started flag in open instead of prepare since reset happens in close. This will also help stop already active LSM sessions even if prepare was called in between. Change-Id: Iad47f9459ceddefd582840313901d95d338e1147 Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
This commit is contained in:
parent
280b241b40
commit
9b0637b6bc
1 changed files with 1 additions and 1 deletions
|
|
@ -2483,6 +2483,7 @@ static int msm_lsm_open(struct snd_pcm_substream *substream)
|
|||
return -ENOMEM;
|
||||
}
|
||||
prtd->lsm_client->opened = false;
|
||||
prtd->lsm_client->started = false;
|
||||
prtd->lsm_client->session_state = IDLE;
|
||||
prtd->lsm_client->poll_enable = true;
|
||||
prtd->lsm_client->perf_mode = 0;
|
||||
|
|
@ -2610,7 +2611,6 @@ static int msm_lsm_prepare(struct snd_pcm_substream *substream)
|
|||
}
|
||||
|
||||
prtd->lsm_client->session_state = RUNNING;
|
||||
prtd->lsm_client->started = false;
|
||||
runtime->private_data = prtd;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue