[PATCH] added detection of ALSA OSS devices

Danny Kukawka danny.kukawka at web.de
Thu Jul 28 05:44:24 PDT 2005


On Wednesday 27 July 2005 21:09, Danny Kukawka wrote:
> On Wednesday 27 July 2005 19:40, David Zeuthen wrote:
> > OK, this introduces three new device objects on my system that needs
> > extra work
> >
> >  - ALSA Timer Device (/dev/snd/timer) - only got
> >    alsa.type = timer
> >
> >  - OSS Sequencer Device (/dev/sequencer)
> >    oss.type = sequencer
> >
> >  - OSS Sequencer Device (/dev/sequencer2)
> >    alsa.type = sequencer
> >
> > at the very least we need the alsa.device_file and oss.device_file
> > properties. Also, are the timers tied to a specific sound card? If yes,
> > we need the alsa.physical_device and oss.physical_device properties
> > along with correct info.parent and so on. If no (tied to a sound card),
> > we should probably omit them completely don't you think?
>
> O.K. no problem to add alsa.device_file and oss.device_file. I'll rework
> the patch.
>
> As far as I know these devices are not tied to a specific sound card, but
> I'll discuss this with Takashi Iwai. I think we should add this (essential)
> devices also if they not tied to a special sound card.

I discussed this with our alsa developer. He proposed to tied:
- /dev/snd/timer      -->  first sound card (alsa.card: 0)
- /dev/sequencer      -->  first sound card (oss.card: 0)
- /dev/sequencer2     -->  first sound card (oss.card: 0)

I reworked the patch for this and *.device_file/*.physical_device.

 doc/spec/hal-spec.xml.in |  133 ++++++++++++++++++++++++++++++
 hald/linux2/classdev.c   |  186 +++++++++++++++++++++++++++++++++++++-----
 hald/linux2/classdev.h   |   11 ++
 3 files changed, 312 insertions(+), 18 deletions(-)

Cheers,
Danny
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-ALSA_OSS_devices_v4.diff
Type: text/x-diff
Size: 15709 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050728/222b3d7f/hal-add-ALSA_OSS_devices_v4.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list