Re: sysfs & ALSA card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux