summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-rpmsg.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-11-05 15:18:13 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:53:25 +0800
commit50b229c2d5a4ce5adcaa204442734d64575f9316 (patch)
tree613edffd56e2dcf117f47e067ce324daeae61964 /sound/soc/fsl/imx-pcm-rpmsg.c
parent6eb375e54d95c5a9fc4ef041de0d4fa14a45babb (diff)
ASoC: imx-pcm-rpmsg: Remove the prtd
prtd is not needed by this driver. 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.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c
index 005c5442e9e9..8da1345ccd06 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -162,7 +162,6 @@ static int imx_rpmsg_pcm_open(struct snd_pcm_substream *substream)
struct fsl_rpmsg_i2s *rpmsg_i2s = dev_get_drvdata(cpu_dai->dev);
struct i2s_info *i2s_info = &rpmsg_i2s->i2s_info;
struct i2s_rpmsg *rpmsg;
- struct dmaengine_pcm_runtime_data *prtd;
int cmd;
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
@@ -196,12 +195,6 @@ static int imx_rpmsg_pcm_open(struct snd_pcm_substream *substream)
i2s_info->send_message(rpmsg, i2s_info);
- prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
- if (!prtd)
- return -ENOMEM;
-
- substream->runtime->private_data = prtd;
-
ret = snd_pcm_hw_constraint_integer(substream->runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (ret < 0)
@@ -226,8 +219,6 @@ static int imx_rpmsg_pcm_close(struct snd_pcm_substream *substream)
struct fsl_rpmsg_i2s *rpmsg_i2s = dev_get_drvdata(cpu_dai->dev);
struct i2s_info *i2s_info = &rpmsg_i2s->i2s_info;
struct i2s_rpmsg *rpmsg;
- struct dmaengine_pcm_runtime_data *prtd =
- substream->runtime->private_data;
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
rpmsg = &i2s_info->rpmsg[I2S_TX_CLOSE];
@@ -243,8 +234,6 @@ static int imx_rpmsg_pcm_close(struct snd_pcm_substream *substream)
del_timer(&i2s_info->stream_timer[substream->stream].timer);
- kfree(prtd);
-
rtd->dai_link->ignore_suspend = 0;
if (i2s_info->msg_drop_count[substream->stream])