summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-rpmsg.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-12-27 14:48:06 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:53:14 +0800
commita6f50f7227354768f43bb21bd3ca3b66017e4590 (patch)
tree3314515913036eb8f32a9b234f0038de3c1585b7 /sound/soc/fsl/imx-pcm-rpmsg.c
parent270158aeddf911af9bd7db1f9f9b94f8e0b16e7c (diff)
MLK-20661: ASoC: imx-pcm-rpmsg: remove the nonblock constraint
we can call the snd_pcm_period_elapsed in timer's callback to achieve pseudo period wake up, so the nonblock constraint can be removed Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-pcm-rpmsg.c')
-rw-r--r--sound/soc/fsl/imx-pcm-rpmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c
index 440f0777e95e..e46b80a51411 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -152,6 +152,8 @@ static void imx_rpmsg_timer_callback(unsigned long data)
mod_timer(&i2s_info->stream_timer[substream->stream],
jiffies + msecs_to_jiffies(time_msec));
}
+
+ snd_pcm_period_elapsed(substream);
}
static int imx_rpmsg_pcm_open(struct snd_pcm_substream *substream)
@@ -257,7 +259,6 @@ static int imx_rpmsg_pcm_prepare(struct snd_pcm_substream *substream)
*/
if ((runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED ||
runtime->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) &&
- (substream->f_flags & O_NONBLOCK) &&
rpmsg_i2s->version == 2 &&
rpmsg_i2s->enable_lpa)
rpmsg_i2s->force_lpa = 1;