asoc: set card state to online after snd card registration
AGM might get initialized before sound card is populated with all pcm nodes. This will lead to AGM parsing fewer nodes and forms incomplete list of backends. To avoid this, kernel module sets card status to ONLINE, and AGM waits till the card status is ONLINE before parsing for the pcm nodes. Change-Id: I4b7f7085645706ba4351efe23ba048d3a177312c Signed-off-by: Srinivas Marka <smarka@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
642659b2a3
commit
c315833fa3
@@ -150,13 +150,19 @@ done:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int snd_card_notify_user(int card_status)
|
||||
int snd_card_notify_user(snd_card_status_t card_status)
|
||||
{
|
||||
snd_card_pdata->card_status = card_status;
|
||||
sysfs_notify(&snd_card_pdata->snd_card_kobj, NULL, "card_state");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int snd_card_set_card_status(snd_card_status_t card_status)
|
||||
{
|
||||
snd_card_pdata->card_status = card_status;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ssize_t snd_card_sysfs_show(struct kobject *kobj,
|
||||
struct attribute *attr, char *buf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user