[alsa-devel] [PATCH] hda-emu: Add snd_power_get_state

David Henningsson david.henningsson at canonical.com
Thu Dec 3 15:31:23 CET 2015


Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 include/sound/core.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/sound/core.h b/include/sound/core.h
index e556765..1196319 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -113,6 +113,8 @@ int snd_card_register(struct snd_card *card)
 	return 0;
 }
 
+#define snd_power_get_state(card)       ({ (void)(card); SNDRV_CTL_POWER_D0; })
+
 #include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/pci.h>
-- 
1.9.1



More information about the Alsa-devel mailing list