projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed77cc1
)
ASoC: sst_platform: add hw_free callback to fix resource leak
author
xingchao
<xingchao.wang@intel.com>
Wed, 27 Apr 2011 20:58:54 +0000
(16:58 -0400)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 3 May 2011 22:29:54 +0000
(23:29 +0100)
Signed-off-by: xingchao <xingchao.wang@intel.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mid-x86/sst_platform.c
patch
|
blob
|
history
diff --git
a/sound/soc/mid-x86/sst_platform.c
b/sound/soc/mid-x86/sst_platform.c
index
d567c32
..
6b1f9d3
100644
(file)
--- a/
sound/soc/mid-x86/sst_platform.c
+++ b/
sound/soc/mid-x86/sst_platform.c
@@
-376,6
+376,11
@@
static int sst_platform_pcm_hw_params(struct snd_pcm_substream *substream,
return 0;
}
+static int sst_platform_pcm_hw_free(struct snd_pcm_substream *substream)
+{
+ return snd_pcm_lib_free_pages(substream);
+}
+
static struct snd_pcm_ops sst_platform_ops = {
.open = sst_platform_open,
.close = sst_platform_close,
@@
-384,6
+389,7
@@
static struct snd_pcm_ops sst_platform_ops = {
.trigger = sst_platform_pcm_trigger,
.pointer = sst_platform_pcm_pointer,
.hw_params = sst_platform_pcm_hw_params,
+ .hw_free = sst_platform_pcm_hw_free,
};
static void sst_pcm_free(struct snd_pcm *pcm)