[pulseaudio-discuss] How to modify (source) port priorities?

Ronan Jouchet ronan at jouchet.fr
Wed Nov 7 15:34:22 PST 2012


On 11/07/2012 01:49 AM, David Henningsson wrote:
> On 11/07/2012 04:51 AM, Ronan Jouchet wrote:
>> In the "Input" tab of my "Sound" GNOME system panel, the "Connector"
>> keeps being changed from "Microphone" to "Internal Microphone" at each
>> restart (I'd like the contrary: "Internal Microphone" is awfully noisy,
>> and "Microphone" works fine). I can see why in pacmd-list-sources:
>>      {analog-input-microphone-internal: *Internal Microphone* (*priority
>> 8900*, available: unknown)}
>>      ... versus ...
>>      {analog-input-microphone: *Microphone* (*priority 8700*, available:
>> no)}
>>
>> --> How can I modify the priorities so that "Microphone" gets
>> automatically a higher priority than "Input Microphone"?
>
> Modify the files in 
> /usr/share/pulseaudio/alsa-mixer/paths/analog-input-*.conf

Grrreat. I found the "priority" values in {analog-input-mic.conf, 
analog-input-internal-mic-always.conf, analog-input-internal-mic.conf}, 
and switched the "87" and "89" values. Now pacmd-list-sources shows 
priorities that suit me:
     analog-input-microphone-internal: *Internal Microphone* (priority 
*8700* , available: *unknown* )
     analog-input-microphone: *Microphone* (priority *8900* , available: 
*no* )

However, even though the priorities look fine, the behavior at startup 
is still the same: "Internal Microphone" is still preferred to "Microphone".
     --> Could it be due to the fact that "Microphone" is flagged 
"available: no"?
     --> If yes, how can I work around this? If no, any other idea? Any 
solution putting "Microphone" first will do, I don't care the least 
about "Internal Microphone".

Thanks for the help!

--
Ronan Jouchet


More information about the pulseaudio-discuss mailing list