From: han.lu@intel.com
To: tiwai@suse.de, alsa-devel@alsa-project.org, libin.yang@intel.com,
mengdong.lin@intel.com
Cc: "Lu, Han" <han.lu@intel.com>
Subject: [PATCH 1/1] ALSA: core: Fix regression for ELD/codec information files
Date: Wed, 13 May 2015 16:36:33 +0800 [thread overview]
Message-ID: <1431506193-28265-1-git-send-email-han.lu@intel.com> (raw)
From: "Lu, Han" <han.lu@intel.com>
The commit c560a6797e3b ("ALSA: core: Remove child proc file elements
recursively") introduced a regression that ELD/codec information files
can not be found on /proc/asound/cardX/. This patch corrects it.
Signed-off-by: Lu, Han <han.lu@intel.com>
diff --git a/include/sound/info.h b/include/sound/info.h
index 1626995..ae8d30a 100644
--- a/include/sound/info.h
+++ b/include/sound/info.h
@@ -149,6 +149,10 @@ static inline int snd_card_proc_new(struct snd_card *card, const char *name,
struct snd_info_entry **entryp)
{
*entryp = snd_info_create_card_entry(card, name, card->proc_root);
+ if (snd_info_register(*entryp) < 0) {
+ snd_info_free_entry(*entryp);
+ *entryp = NULL;
+ }
return *entryp ? 0 : -ENOMEM;
}
--
1.9.1
next reply other threads:[~2015-05-13 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 8:36 han.lu [this message]
2015-05-18 7:54 ` [PATCH 1/1] ALSA: core: Fix regression for ELD/codec information files Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431506193-28265-1-git-send-email-han.lu@intel.com \
--to=han.lu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=libin.yang@intel.com \
--cc=mengdong.lin@intel.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox