<p><br>
2012-8-22 下午5:13 於 "David Henningsson" <<a href="mailto:david.henningsson@canonical.com">david.henningsson@canonical.com</a>> 寫道:<br>
><br>
> On 08/22/2012 10:08 AM, Mikel Astiz wrote:<br>
>><br>
>> From: Mikel Astiz <<a href="mailto:mikel.astiz@bmw-carit.de">mikel.astiz@bmw-carit.de</a>><br>
>><br>
>> A port with the availability state flag set to unknown should not be<br>
>> considered an active port.<br>
>> ---<br>
>>   src/modules/module-switch-on-port-available.c |    2 +-<br>
>>   1 files changed, 1 insertions(+), 1 deletions(-)<br>
>><br>
>> diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c<br>
>> index 1da612d..8c16821 100644<br>
>> --- a/src/modules/module-switch-on-port-available.c<br>
>> +++ b/src/modules/module-switch-on-port-available.c<br>
>> @@ -85,7 +85,7 @@ static pa_bool_t try_to_switch_profile(pa_card *card, pa_device_port *port) {<br>
>>               PA_IDXSET_FOREACH(sink, card->sinks, state2) {<br>
>>                   if (!sink->active_port)<br>
>>                       continue;<br>
>> -                if (sink->active_port->available != PA_PORT_AVAILABLE_NO)<br>
>> +                if (sink->active_port->available == PA_PORT_AVAILABLE_YES)<br>
>>                       found_active_port = TRUE;<br>
>>               }<br>
>><br>
>><br>
><br>
> I think this will break the following use case (on a normal laptop) :<br>
><br>
> Assume we plug in HDMI. With this patch we will get inconsistent behaviour: if headphones are plugged in (available = yes), we won't switch to HDMI, but if not (speakers are available = unknown), we will switch to HDMI.<br>

><br>
></p>
<p>if you look at those bug reports of no sound for those on-board ac97 codecs with ubuntu 12.04 </p>
<p><a href="https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1033996">https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1033996</a></p>
<p>how does pulseaudio determine which controls are effective in the headphone path and speaker path of those ac97  codecs ?</p>
<p> the analog-output-stereo profile for the line out jack is missing</p>
<p>( 0.056| 0.000) D: [pulseaudio] alsa-mixer.c: Removing path 'analog-output' as it is a subset of 'analog-output-headphone</p>
<p>is there any solution for those snd-intel8x0 and those onboard ac97 codecs with headphone playback volume control ( no ctljack control and no phantom port)?</p>
<p><a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=91b25005978d343a989c9485e226dc9a18a2fb28">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=91b25005978d343a989c9485e226dc9a18a2fb28</a></p>

<p><a href="http://git.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=5c832a5b8a2bc2ce7447eab10acaeed30cd3ed78">http://git.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=5c832a5b8a2bc2ce7447eab10acaeed30cd3ed78</a><br>
</p>