diff mbox

hda-emu: Add snd_power_get_state

Message ID 1449153083-5134-1-git-send-email-david.henningsson@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Henningsson Dec. 3, 2015, 2:31 p.m. UTC
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 include/sound/core.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Takashi Iwai Dec. 3, 2015, 2:37 p.m. UTC | #1
On Thu, 03 Dec 2015 15:31:23 +0100,
David Henningsson wrote:
> 
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>

Applied, thanks.


Takashi

> ---
>  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
>
diff mbox

Patch

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>