<p></p>
<p>>>>>><br>
>>>>> +        if (hasNo && !hasYes && !hasOther)<br>
>>>>> +            desc += " (unplugged)";<br>
>>>>> +        else if (hasYes && !hasNo && !hasOther)<br>
>>>>> +            desc += " (plugged in)";<br>
>>>><br>
>>>><br>
>>>> I think profiles should be "plugged in" if any port is available.<br>
>>><br>
>>><br>
>>> The reason I did it for profiles in the first place, were just to make<br>
>>> the user get a hint about which one of the four HDMIs to select on the<br>
>>> configuration tab, and there is just one port per profile in that scenario.<br>
>>><br>
>>> I also think that if one port is available and another is not, we<br>
>>> shouldn't say that the entire profile is "plugged in". It really only<br>
>>> makes sense to write something when all of the ports have the same<br>
>>> value. I e, the current code is correct IMO.<br>
>><br>
>><br>
>> What about laptop speakers that are always available (let's ignore the<br>
>> fact that it looks like the analog-output-speaker port never reports<br>
>> itself as "available", only "unknown" or "unavailable")? If headphones<br>
>> are not plugged in, I think the output:analog-stereo profile is still<br>
>> very much available ("plugged in" is not the best phrase in this case).<br>
>><br>
>> I think the distinction between "all ports available" and "some ports<br>
>> available" is confusing to the user,<br>
><br>
><br>
> I don't think that is confusing, and...<br>
><br>
><br>
>> and it would be better to drop that<br>
>> distinction altogether. I would actually prefer not using any status<br>
>> specifier for profiles, except if all ports are unavailable, in which<br>
>> case I think "unplugged" is fine to signal to the user that this profile<br>
>> is pretty useless.<br>
><br>
><br>
> ...I think that this last proposal would be more confusing as it treats the states of "plugged in" and "unplugged" differently.<br>
><br></p>
<p>the name of the module-switch-on-available-port is already confusing when the logic is switch away from unavailable port</p>
<p>after the implementaton of spdif phantom port, the active port is automatically switched to iec958 from the rear analog jack of desktop<br></p>