Ticket #252 (closed enhancement: fixed)
[patch] Support for custom hal properties in module-hal-detect and description argument in module-alsa-{sink,source}
| Reported by: | shogun_panda | Owned by: | lennart |
|---|---|---|---|
| Milestone: | 0.9.16 | Component: | module-hal-detect |
| Keywords: | name | Cc: |
Description
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
