alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Jarkko Nikula <jhnikula@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Liam Girdwood <lrg@slimlogic.co.uk>
Subject: [PATCH 2/3] ASoC: Move codec debugfs directories under parent card directory
Date: Fri,  5 Nov 2010 20:35:20 +0200	[thread overview]
Message-ID: <1288982121-22201-3-git-send-email-jhnikula@gmail.com> (raw)
In-Reply-To: <1288982121-22201-1-git-send-email-jhnikula@gmail.com>

Make use of sound card debugfs directory and move codec directories under
the parent card debugfs directory.

debugfs/asoc/{codec dir} -> debugfs/asoc/{card->name}/{codec dir}.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
---
 sound/soc/soc-core.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 3819659..a358ce9 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -238,8 +238,10 @@ static const struct file_operations codec_reg_fops = {
 
 static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
 {
-	codec->debugfs_codec_root = debugfs_create_dir(codec->name ,
-						       debugfs_root);
+	struct dentry *debugfs_card_root = codec->card->debugfs_card_root;
+
+	codec->debugfs_codec_root = debugfs_create_dir(codec->name,
+						       debugfs_card_root);
 	if (!codec->debugfs_codec_root) {
 		printk(KERN_WARNING
 		       "ASoC: Failed to create codec debugfs directory\n");
-- 
1.7.2.3

  parent reply	other threads:[~2010-11-05 18:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 18:35 [PATCH 0/3] sound card dir under debugfs Jarkko Nikula
2010-11-05 18:35 ` [PATCH 1/3] ASoC: Add sound card directory under debugfs/asoc/ Jarkko Nikula
2010-11-05 18:35 ` Jarkko Nikula [this message]
2010-11-05 18:35 ` [PATCH 3/3] ASoC: Move pop time from DAPM context to sound card Jarkko Nikula
2010-11-05 18:36 ` [PATCH 0/3] sound card dir under debugfs Mark Brown
2010-11-05 18:39   ` Jarkko Nikula
2010-11-05 18:39     ` Mark Brown
2010-11-05 18:41       ` Jarkko Nikula
2010-11-05 18:46         ` Mark Brown
2010-11-05 18:48           ` Jarkko Nikula
2010-11-05 18:50             ` Mark Brown
2010-11-06 10:52               ` Liam Girdwood

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=1288982121-22201-3-git-send-email-jhnikula@gmail.com \
    --to=jhnikula@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@slimlogic.co.uk \
    /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;
as well as URLs for NNTP newsgroup(s).