aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-29 15:32:47 -0500
committerTakashi Iwai <tiwai@suse.de>2015-02-02 08:42:33 -0500
commit4b440be667c6187717c99e4d427119fa415ced29 (patch)
tree20e9fe801416caf247eb883bec998598d32e2ce2 /include/sound
parent23c18d4bfd73ee24070849faf98b3ab01263a3c4 (diff)
ALSA: Add a helper to initialize device
Introduce a new helper function snd_device_initialize() to initialize the device object for sound devices. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index 39d14234961d..de7a878217d7 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -207,6 +207,8 @@ extern struct class *sound_class;
207 207
208void snd_request_card(int card); 208void snd_request_card(int card);
209 209
210void snd_device_initialize(struct device *dev, struct snd_card *card);
211
210int snd_register_device_for_dev(int type, struct snd_card *card, int dev, 212int snd_register_device_for_dev(int type, struct snd_card *card, int dev,
211 const struct file_operations *f_ops, 213 const struct file_operations *f_ops,
212 void *private_data, struct device *device, 214 void *private_data, struct device *device,