MLK-20277-3: ASoC: imx-pcm-rpmsg: change the state of substream in resume
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 8 Nov 2018 07:15:42 +0000 (15:15 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1151575f53b4988d91bc037ee393fb1881b68ecb
tree49f2fdaf6f21b93dab754c44df08d8b10f70a9b6
parentcf82db625185f294f82c13a70611e513f4f69303
MLK-20277-3: ASoC: imx-pcm-rpmsg: change the state of substream in resume

In LPA mode, the system will be resumed by audio notification, when the
period size is small, there will be occasion that when notification
the underrun is happen, but the substream runtime state is not running
so the aplay won't trigger stop first, then start. just only trigger
the start, which don't comply with the convention.
So in this patch, we change the substream runtime state to running, when
the notification happened at resume.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
sound/soc/fsl/imx-pcm-rpmsg.c