summaryrefslogtreecommitdiffstats
path: root/include/sound/core.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-23 18:06:42 +0100
committerTakashi Iwai <tiwai@suse.de>2020-03-23 18:09:19 +0100
commitc208a5335036a332c0248b0e16fca57332b3f1d1 (patch)
tree70ac581c06c71927be783ffbd3d465c1496c6b99 /include/sound/core.h
parent55f7326170d9e83e2d828591938e1101982a679c (diff)
downloadlinux-stable-c208a5335036a332c0248b0e16fca57332b3f1d1.tar.gz
linux-stable-c208a5335036a332c0248b0e16fca57332b3f1d1.tar.bz2
linux-stable-c208a5335036a332c0248b0e16fca57332b3f1d1.zip
ALSA: core: Add snd_device_get_state() helper
A new small helper to get the current state of the device registration for the given object. It'll be used for USB-audio driver to check the delayed device registrations. Link: https://lore.kernel.org/r/20200323170643.19181-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/core.h')
-rw-r--r--include/sound/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index ac8b692b69b4..381a010a1bd4 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -266,6 +266,7 @@ void snd_device_disconnect(struct snd_card *card, void *device_data);
void snd_device_disconnect_all(struct snd_card *card);
void snd_device_free(struct snd_card *card, void *device_data);
void snd_device_free_all(struct snd_card *card);
+int snd_device_get_state(struct snd_card *card, void *device_data);
/* isadma.c */