From: Greg KH <greg@kroah.com>
To: Jaroslav Kysela <perex@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>, Takashi Iwai <tiwai@suse.de>
Subject: Re: sysfs & ALSA card
Date: Fri, 6 Oct 2006 23:24:58 -0700 [thread overview]
Message-ID: <20061007062458.GF23366@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0610061548340.8573@tm8103.perex-int.cz>
On Fri, Oct 06, 2006 at 04:00:27PM +0200, Jaroslav Kysela wrote:
> Hi,
>
> I would like to discuss where is the right root for soundcards in
> the sysfs tree. I would like to put card specific variables like id there
> (see /proc/asound/card0/id).
That would be nice to have in sysfs, I agree.
> Also, I plan to create link from
> /sys/class/sound tree to the appropriate card to show relationship.
> Something like:
>
> /sys/<somewhere>/soundcard/0
>
> /sys/class/sound/controlC0/soundcard -> ../../../<somewhere>/soundcard/0
>
> Any comments and suggestions?
Yeah, this isn't that hard right now. Just create a new struct device
for every card, point the parent of this new device to the device that
represents the card, and then point the other different sound specific
devices to the new card.
Hm, let me go hack at it and see what I come up with, code is so much
better for an example...
thanks,
greg k-h
next prev parent reply other threads:[~2006-10-07 6:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-06 14:00 sysfs & ALSA card Jaroslav Kysela
2006-10-07 6:24 ` Greg KH [this message]
2006-10-07 7:44 ` Greg KH
2006-10-07 12:55 ` Kay Sievers
2006-10-07 19:12 ` Kay Sievers
2006-10-07 20:08 ` Greg KH
2006-10-09 6:24 ` Jaroslav Kysela
2006-10-11 22:52 ` Greg KH
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=20061007062458.GF23366@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
--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