Skip to content

Commit

Permalink
ASoC: speaer_pcm: No need to use snd_dmaengine_pcm_set_data()
Browse files Browse the repository at this point in the history
The driver never uses snd_dmaengine_pcm_get_data(), so there is no need to use
snd_dmaengine_pcm_set_data().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Mar 26, 2013
1 parent ebd59b0 commit 593b66f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sound/soc/spear/spear_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ static int spear_pcm_open(struct snd_pcm_substream *substream)
if (ret)
return ret;

ret = snd_dmaengine_pcm_open(substream, dma_data->filter, dma_data);
if (ret)
return ret;

snd_dmaengine_pcm_set_data(substream, dma_data);

return 0;
return snd_dmaengine_pcm_open(substream, dma_data->filter, dma_data)
}

static int spear_pcm_mmap(struct snd_pcm_substream *substream,
Expand Down

0 comments on commit 593b66f

Please sign in to comment.