diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-10-24 08:15:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-24 08:15:49 +0200 |
commit | 1a0190157521704c11f8650756388b62f3887eb3 (patch) | |
tree | 25bb473c628872f05a1a1a97161d2dae9ce1c1d4 /include/sound | |
parent | b676da70c495acb2515de76300596e9147806ead (diff) | |
parent | 6ca73de7ebc5dac358551633e0c69ab6b5007baa (diff) |
Merge branch 'topic/card-disconnect' into for-next
Pull snd_card_disconnect_sync() extension for ASoC hot-unplug support.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 4104a9d1001f..5f181b875c2f 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -133,6 +133,7 @@ struct snd_card { struct device card_dev; /* cardX object for sysfs */ const struct attribute_group *dev_groups[4]; /* assigned sysfs attr */ bool registered; /* card_dev is registered? */ + wait_queue_head_t remove_sleep; #ifdef CONFIG_PM unsigned int power_state; /* power state */ @@ -240,6 +241,7 @@ int snd_card_new(struct device *parent, int idx, const char *xid, struct snd_card **card_ret); int snd_card_disconnect(struct snd_card *card); +void snd_card_disconnect_sync(struct snd_card *card); int snd_card_free(struct snd_card *card); int snd_card_free_when_closed(struct snd_card *card); void snd_card_set_id(struct snd_card *card, const char *id); |