Bug 17227

Summary: HAL gives no information about whether an OSS PCM device can do playback or capture
Product: hal Reporter: Matthias Kretz <kretz>
Component: haldAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.