ASoC: imx-pcm-rpmsg: Remove the prtd
prtd is not needed by this driver. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
6eb375e54d
commit
50b229c2d5
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue