All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sst_platform: add hw_free callback
@ 2011-04-27 20:58 xingchao
  2011-05-03 22:03 ` Liam Girdwood
  2011-05-03 22:31 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: xingchao @ 2011-04-27 20:58 UTC (permalink / raw)
  To: alsa-devel
  Cc: feng.tang, tiwai, broonie, xingchao, vinod.koul, priya.harsha,
	michael.fu, fengguang.wu

Signed-off-by: xingchao <xingchao.wang@intel.com>
---
 sound/soc/mid-x86/sst_platform.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c
index 9765fb8..5a946b4 100644
--- a/sound/soc/mid-x86/sst_platform.c
+++ b/sound/soc/mid-x86/sst_platform.c
@@ -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)
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-03 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 20:58 [PATCH] sst_platform: add hw_free callback xingchao
2011-05-03 22:03 ` Liam Girdwood
2011-05-03 22:31 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.