diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-01-08 11:54:19 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-01-08 11:55:00 +0100 |
commit | 5b0d4151f2a6b8ee0cb79e8ca4b4b12928fc393f (patch) | |
tree | b37ea9e179c6a11abe12c852a01541395b2a5b91 | |
parent | c6c811457dfcf62a9bf140f60eb3360751035a2f (diff) | |
download | hda-emu-5b0d4151f2a6b8ee0cb79e8ca4b4b12928fc393f.tar.gz |
Workaround for the recent addition of control sync
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/sound/core.h | 9 | ||||
-rw-r--r-- | include/wrapper.h | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index e7b7813..0993aa4 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -4,7 +4,9 @@ #include "wrapper.h" #include <linux/slab.h> #include <linux/list.h> +#include <linux/mutex.h> #include <linux/device.h> +#include <linux/pci.h> enum { SND_PR_ALWAYS, @@ -56,6 +58,8 @@ struct snd_card { struct device *dev; struct device card_dev; + struct rw_semaphore controls_rwsem; + bool registered; }; @@ -115,10 +119,7 @@ int snd_card_register(struct snd_card *card) } #define snd_power_get_state(card) ({ (void)(card); SNDRV_CTL_POWER_D0; }) - -#include <linux/list.h> -#include <linux/mutex.h> -#include <linux/pci.h> +#define snd_power_sync_ref(card) do {} while (0) /* PCI quirk list helper */ #ifdef NEW_QUIRK_LIST diff --git a/include/wrapper.h b/include/wrapper.h index c453937..8da4114 100644 --- a/include/wrapper.h +++ b/include/wrapper.h @@ -376,6 +376,7 @@ typedef int wait_queue_entry_t; #define init_wait_entry(x,y) do {} while (0) #define prepare_to_wait(x,y,z) do {} while (0) #define finish_wait(x,y) do {} while (0) +#define wait_event(x,y) do {} while (0) #define snd_dma_alloc_pages(type, dev, size, dp) 0 #define snd_dma_free_pages(dp) |