diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-22 09:12:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 10:14:46 -0400 |
commit | 340af748bc4004982a1a11ea2d81a4bffe6eb975 (patch) | |
tree | 986405e6bd757b6445cda50ef2c425b301453c22 /sound/soc/omap | |
parent | 023934b4052b1a955ac8d68c8d4b216d1c55c611 (diff) |
ASoC: omap-pcm: No need to wrap snd_dmaengine_pcm_close()
If a PCM driver using the dmaengine PCM helper functions doesn't need to do
anything special in its pcm_close callback, snd_dmaengine_pcm_close can be used
directly for as the pcm_close callback and there is no need to wrap it in a
custom function.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 1626fb7d2cd2..6c842c7ef9e6 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -154,12 +154,6 @@ static int omap_pcm_open(struct snd_pcm_substream *substream) | |||
154 | &dma_data->dma_req); | 154 | &dma_data->dma_req); |
155 | } | 155 | } |
156 | 156 | ||
157 | static int omap_pcm_close(struct snd_pcm_substream *substream) | ||
158 | { | ||
159 | snd_dmaengine_pcm_close(substream); | ||
160 | return 0; | ||
161 | } | ||
162 | |||
163 | static int omap_pcm_mmap(struct snd_pcm_substream *substream, | 157 | static int omap_pcm_mmap(struct snd_pcm_substream *substream, |
164 | struct vm_area_struct *vma) | 158 | struct vm_area_struct *vma) |
165 | { | 159 | { |
@@ -173,7 +167,7 @@ static int omap_pcm_mmap(struct snd_pcm_substream *substream, | |||
173 | 167 | ||
174 | static struct snd_pcm_ops omap_pcm_ops = { | 168 | static struct snd_pcm_ops omap_pcm_ops = { |
175 | .open = omap_pcm_open, | 169 | .open = omap_pcm_open, |
176 | .close = omap_pcm_close, | 170 | .close = snd_dmaengine_pcm_close, |
177 | .ioctl = snd_pcm_lib_ioctl, | 171 | .ioctl = snd_pcm_lib_ioctl, |
178 | .hw_params = omap_pcm_hw_params, | 172 | .hw_params = omap_pcm_hw_params, |
179 | .hw_free = omap_pcm_hw_free, | 173 | .hw_free = omap_pcm_hw_free, |