Bug 17227 - HAL gives no information about whether an OSS PCM device can do playback or capture
Summary: HAL gives no information about whether an OSS PCM device can do playback or c...
Status: NEW
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 09:44 UTC by Matthias Kretz
Modified: 2008-08-20 09:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matthias Kretz 2008-08-20 09:44:05 UTC
Currently HAL only reports oss.type as mixer, pcm, midi, sequencer or unknown. For ALSA OTOH one gets capture or playback instead of pcm for type.

It would be very useful to know if a given OSS device supports capture and/or playback (e.g. a S/PDIF output device doesn't allow capture).

I suggest to leave oss.type as it is and add another key, e.g. oss.pcmtype which could store an int:
Playback = 1,
Capture = 2
so that most devices would show oss.pcmtype = 3.

I'm not 100% sure how this could be implemented, but for the ALSA-OSS layer at least you could reuse the information about the ALSA device for the OSS device. I have no idea about actual OSS drivers, though...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.