summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-29 16:41:27 +0100
committerTakashi Iwai <tiwai@suse.de>2015-02-02 14:42:41 +0100
commit0fcd9f4b3c60382205e5819c456aa9ea17b6f20f (patch)
tree02c793b240b7fc8a1d8c0b7d7f6b8bb5048a83ae /include/sound
parent4b440be667c6187717c99e4d427119fa415ced29 (diff)
downloadop-kernel-dev-0fcd9f4b3c60382205e5819c456aa9ea17b6f20f.zip
op-kernel-dev-0fcd9f4b3c60382205e5819c456aa9ea17b6f20f.tar.gz
ALSA: control: Embed struct device
This patch embeds a struct device for the control device into the card object and avoid the device creation at registration time. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-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 de7a878..4b7e04e 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -109,6 +109,7 @@ struct snd_card {
private data */
struct list_head devices; /* devices */
+ struct device ctl_dev; /* control device */
unsigned int last_numid; /* last used numeric ID */
struct rw_semaphore controls_rwsem; /* controls list lock */
rwlock_t ctl_files_rwlock; /* ctl_files list lock */
OpenPOWER on IntegriCloud