Skip to contentSkip to conversation

sst_platform: add hw_free callback

PATCH Applied xingchao 3 participants 3 messages Apr 27, 2011 – May 3, 2011

Subsystems (2)
lore
Share & tools
lore

xingchao

author
#0 lore raw

PATCH 1/1 sst_platform: add hw_free callback

---
 sound/soc/mid-x86/sst_platform.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/soc/mid-x86/sst_platform.c +6 -0
index 9765fb8..5a946b4 100644
@@ -380,6 +380,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,
@@ -388,6 +393,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)
Signature · 1 line
1.7.1