[pulseaudio-tickets] [PulseAudio] #252: [patch] Support for custom hal properties in module-hal-detect and description argument in module-alsa-{sink, source}
PulseAudio
trac-noreply at tango.0pointer.de
Fri Mar 7 03:22:29 PST 2008
#252: [patch] Support for custom hal properties in module-hal-detect and
description argument in module-alsa-{sink,source}
-------------------------------+--------------------------------------------
Reporter: shogun_panda | Owner: lennart
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: module-hal-detect | Severity: normal
Keywords: name |
-------------------------------+--------------------------------------------
Hi guys.
On my laptop I use 2 or 3 USB devices autodetect by HAL.
Even they are always the same, I use autodetection to ensure I can hotplug
them but I don't like the names PA assigns them, so I wrote a patch to
"fix" this.
The purpose of the patch are the following:
1-Add a "description" parameter to module-alsa-sink and module-alsa-source
to set the description of the sink/source (with spaces allowed)
2-Override HAL sink/source name detection when properties
"pulse.sink_name" or "pulse.source_name" or "pulse.device_name" are
defined in the "grandfather" udi of playback/record udi (I choosed
grandfather at it is the most general udi of the device)
3-Autospecify sink/source description (thanks to part 1) when properties
"pulse.sink_description" or "pulse.source_description" are defined in the
"grandfather" udi of the playback/record udi.
Obviously, "pulse.*" properties must be defined with fdi file, but it
isn't so hard :)
Hope you like it.
Shogun
PS: This patch is for PA 0.9.9, I hope can be merged with current
GIT/SVN/CVS code
--
Ticket URL: <http://pulseaudio.org/ticket/252>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list