diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:57:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:57:04 -0400 |
commit | 38e8c895d33b0642dc341f83cce0adde4cffbc82 (patch) | |
tree | 3657c043986d5c944f971c9685ae4a68f5a5b035 /sound/soc/spear | |
parent | d66e065c5b8b64b03a9d9b8a7c5d674c7dfa2e3d (diff) | |
parent | 69b6f19622ce0aef41df884b75e3f789c64b89c0 (diff) |
Merge remote-tracking branch 'asoc/topic/dma' into asoc-next
Diffstat (limited to 'sound/soc/spear')
-rw-r--r-- | sound/soc/spear/spear_pcm.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sound/soc/spear/spear_pcm.c b/sound/soc/spear/spear_pcm.c index 5e7aebe1e664..23fb09addd21 100644 --- a/sound/soc/spear/spear_pcm.c +++ b/sound/soc/spear/spear_pcm.c | |||
@@ -64,21 +64,7 @@ static int spear_pcm_open(struct snd_pcm_substream *substream) | |||
64 | if (ret) | 64 | if (ret) |
65 | return ret; | 65 | return ret; |
66 | 66 | ||
67 | ret = snd_dmaengine_pcm_open(substream, dma_data->filter, dma_data); | 67 | return snd_dmaengine_pcm_open(substream, dma_data->filter, dma_data) |
68 | if (ret) | ||
69 | return ret; | ||
70 | |||
71 | snd_dmaengine_pcm_set_data(substream, dma_data); | ||
72 | |||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | static int spear_pcm_close(struct snd_pcm_substream *substream) | ||
77 | { | ||
78 | |||
79 | snd_dmaengine_pcm_close(substream); | ||
80 | |||
81 | return 0; | ||
82 | } | 68 | } |
83 | 69 | ||
84 | static int spear_pcm_mmap(struct snd_pcm_substream *substream, | 70 | static int spear_pcm_mmap(struct snd_pcm_substream *substream, |
@@ -93,7 +79,7 @@ static int spear_pcm_mmap(struct snd_pcm_substream *substream, | |||
93 | 79 | ||
94 | static struct snd_pcm_ops spear_pcm_ops = { | 80 | static struct snd_pcm_ops spear_pcm_ops = { |
95 | .open = spear_pcm_open, | 81 | .open = spear_pcm_open, |
96 | .close = spear_pcm_close, | 82 | .close = snd_dmaengine_pcm_close, |
97 | .ioctl = snd_pcm_lib_ioctl, | 83 | .ioctl = snd_pcm_lib_ioctl, |
98 | .hw_params = spear_pcm_hw_params, | 84 | .hw_params = spear_pcm_hw_params, |
99 | .hw_free = spear_pcm_hw_free, | 85 | .hw_free = spear_pcm_hw_free, |