From: Takashi Iwai Date: Fri, 30 Jan 2015 11:27:43 +0000 (+0100) Subject: ALSA: Add a helper to add a new attribute group to card X-Git-Tag: fixes-v4.0-rc1~146^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bbc7fed849597ec35ffdcaf677910dd11d71d08;p=pandora-kernel.git 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 --- Reading git-diff-tree failed