diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-22 14:12:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 14:16:22 +0000 |
commit | 593b66fbbcac78b73ec17270c874f6db8eabd97c (patch) | |
tree | 9aa77a9876fbcae49ccb82990c0ba3f29ce26491 /sound/soc/spear/spear_pcm.c | |
parent | ebd59b07ecd9d35d5bc88c91a4878fbb4549ed42 (diff) | |
download | blackbird-op-linux-593b66fbbcac78b73ec17270c874f6db8eabd97c.tar.gz blackbird-op-linux-593b66fbbcac78b73ec17270c874f6db8eabd97c.zip |
ASoC: speaer_pcm: No need to use snd_dmaengine_pcm_set_data()
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>
Diffstat (limited to 'sound/soc/spear/spear_pcm.c')
-rw-r--r-- | sound/soc/spear/spear_pcm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/spear/spear_pcm.c b/sound/soc/spear/spear_pcm.c index 32431d619174..db75d72c4805 100644 --- a/sound/soc/spear/spear_pcm.c +++ b/sound/soc/spear/spear_pcm.c @@ -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, |