[PATCH] add soundcard device and fix device_file handling
Kay Sievers
kay.sievers at vrfy.org
Tue Mar 20 03:23:37 PDT 2007
On 3/20/07, Danny Kukawka <danny.kukawka at web.de> wrote:
> On Dienstag, 20. März 2007, David Zeuthen wrote:
> > On Mon, 2007-03-19 at 15:41 +0100, Danny Kukawka wrote:
> > > * Add the sound card device to HAL (e.g. /sys/devices/pci*/*/card0) to
> > > represent the correct sysfs structure. All alsa and oss devices are
> > > now childs of the releated sound card device.
> >
> > Not on my box... does this require a new kernel / ALSA version or some
> > special configuration? What's the point here btw and what's with the new
> > sound.* properties? Perhaps explaining a bit more what you want to
> > change, how it's going to look (lshal snippts) and why would be a good
> > starting point... Thanks.
>
> Is there no /sys/devices/pci*/*/card0 device on your machine? What print
> 'ls -lha /sys/class/sound/' on your machine? IMO this should be part of the
> kernel with the new sysfs structure. IIRC it was not part of 2.6.18 but in
> 2.6.20 on my machines. At least it break nothing on older kernel versions.
>
> The (finally, if we depend on 2.6.20) goal is to add all card related information
> to the soundcard itself and not again and again to each single sound device
> (as e.g. alsa/oss.card and alsa/oss.card_id). Btw this would also reflect the
> real sysfs structure in the future.
That new layout shows up only with a kernel compiled with
!CONFIG_SYSFS_DEPRECATED. There will be no card-device, and no
card-information at all in sysfs, if you use the old sysfs layout, as
it does not allow to insert such devices into the tree.
Kay
More information about the hal
mailing list