Ticket #252 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

[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

Attachments

pa_custom_hal_names.patch (6.7 kB) - added by shogun_panda 4 years ago.
The patch of this ticket
10-pulse-names.fdi (1.5 kB) - added by shogun_panda 4 years ago.
Sample FDI file to accomplish custom HAL name

Change History

Changed 4 years ago by shogun_panda

The patch of this ticket

Changed 4 years ago by shogun_panda

Sample FDI file to accomplish custom HAL name

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.9.16

In current git of PA udev replaced HAL for device enumeration. The udev module is pretty flexible in reading properties from the udev tree to set properties on the sink devices. So I guess what is requested in this bug is more or less available now.

Note: See TracTickets for help on using tickets.