]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Add a helper to add a new attribute group to card
authorTakashi Iwai <tiwai@suse.de>
Fri, 30 Jan 2015 11:27:43 +0000 (12:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Feb 2015 08:56:33 +0000 (09:56 +0100)
commit907f154e20cb7d8b717a083273e1490800652e7a
tree570560b9981f146249c09fbcd8bde9cca8f3fc64
parent7a7dfed569aa31b7de24230d80427f261e160f23
ALSA: Add a helper to add a new attribute group to card

For assigning sysfs entries for a card device from the driver,
introduce a new helper function, snd_card_add_dev_attr().  In this
way, we can avoid the possible race between the device registration
and the sysfs addition / removal.

The driver can pass a new attribute group to add freely.  This has to
be called before snd_card_register().

Currently, up to two extra groups can be added.  More than that, it'll
return an error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/init.c