On Fri, Nov 09, 2012 at 11:03:14AM +0800, Raymond Yau wrote: > > > > If we know if a certain port is available/unavailable, we can print > > that out, as a help to the user (and as debugging for ourselves). > > but the port has three state: yes, no and unknown Yes thats true, if we don't know the state of the port we don't print out anything. > > > A profile is also available/unavailable if all ports which have that > > profile is available/unavailable. > > for surround 5.1, does it meant that pulseaudio have to check the > availability of the green, black and orange > > many professional sound card does not support jack detection since it > produce noise during the detection > > spdif jack does not has any jack detection > We check all the ports that belong to a certain profile. So yes if we have a surround profile we check all the surround ports for their state.