Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Lee Revell <rlrevell@joe-job.com>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>,
	James Courtier-Dutton <James@superbug.co.uk>
Subject: Re: [PATCH] emu10k1: add per-voice PTR register	dump	to /proc entry
Date: Mon, 22 Nov 2004 11:40:33 +0100	[thread overview]
Message-ID: <s5hsm72dv4u.wl@alsa2.suse.de> (raw)
In-Reply-To: <1100909425.13712.50.camel@krustophenia.net>

At Fri, 19 Nov 2004 19:10:24 -0500,
Lee Revell wrote:
> 
> On Thu, 2004-11-18 at 14:22 +0100, Takashi Iwai wrote:
> > > 
> > > Sure, will do.  One file per voice for the PTR registers (and one file
> > > for FN0) might actually be most useful.  This way you can diff them.
> > 
> > Yes, that makes sense.
> > 
> 
> OK regarding the previous message, I figured out how to create a
> directory under the card root (just set S_IFDIR).  However there is no
> way to create files under that directory because snd_card_proc_new makes
> the following assumption (from alsa-kernel/core/info.c):
> 
>     852  *
>     853  * The parent is assumed as card->proc_root.
>     854  *
> 
> So, I think the API has to be modified to allow a parent to be
> specified.

snd_card_proc_new() is just a helper function.
When creating a subdirectory and files under it, you have to manage
the instaces by yourself (i.e. requires a proper destructor).

An example is found in pci/ac97/ac97_proc.c.


Takashi


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

  reply	other threads:[~2004-11-22 10:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-14  1:01 [PATCH] emu10k1: add per-voice PTR register dump to /proc entry Lee Revell
2004-11-17 12:11 ` Takashi Iwai
2004-11-17 16:31   ` Lee Revell
2004-11-18 13:22     ` Takashi Iwai
2004-11-19 22:38       ` Lee Revell
2004-11-20  0:10       ` Lee Revell
2004-11-22 10:40         ` Takashi Iwai [this message]
2004-11-17 17:51   ` Lee Revell
2004-11-18 13:21     ` 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=s5hsm72dv4u.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=James@superbug.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rlrevell@joe-job.com \
    /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