<p><br>
> ><br>
> > The ports variable contains all ports of a card. Here I think you add<br>
> > all output ports of a card to all sinks of the card and all input ports<br>
> > to all sources. That's not right, a sink may have only a subset of the<br>
> > card's output ports assigned to it.<br>
> ><br>
> > The "plugged in" and "unplugged" strings should probably be<br>
> > translatable. (Same for the profile code.)<br>
> ><br>
><br>
> Good catch. I got myself thinking that I could generalize the solution a<br>
> little bit but it seems that we can't figure out which port belongs<br>
> where just from pa_card_port_info.<br>
><br>
> ><br>
> > I think profiles should be "plugged in" if any port is available.<br>
> ><br>
><br>
i have doubt about it </p>
<p>the profile is not available when the jack available state of the port is NO but all profiles have passed the open pcm test.</p>
<p>this mean that some port does not have jack detect capability (e.g. some nvidia hdmi , spdif, all pci sound cards and onboard ac97 sound card, )<br>
</p>