lkml.org 
[lkml]   [2006]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sysfs & ALSA card
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-07 08:29    [W:1.972 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site