Searched hist:"6 bbc7fed849597ec35ffdcaf677910dd11d71d08" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/sound/ |
H A D | core.h | diff 6bbc7fed849597ec35ffdcaf677910dd11d71d08 Fri Jan 30 05:27:43 CST 2015 Takashi Iwai <tiwai@suse.de> 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>
|
/openbmc/linux/sound/core/ |
H A D | init.c | diff 6bbc7fed849597ec35ffdcaf677910dd11d71d08 Fri Jan 30 05:27:43 CST 2015 Takashi Iwai <tiwai@suse.de> 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>
|