Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-11 Thread Raymond Yau
The ports variable contains all ports of a card. Here I think you add all output ports of a card to all sinks of the card and all input ports to all sources. That's not right, a sink may have only a subset of the card's output ports assigned to it. The plugged in and unplugged

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-10 Thread David Henningsson
On 11/09/2012 08:26 PM, Tanu Kaskinen wrote: On Fri, 2012-11-09 at 19:29 +0100, David Henningsson wrote: On 11/09/2012 07:17 PM, Tanu Kaskinen wrote: On Thu, 2012-11-08 at 23:38 +0100, poljar (Damir Jelić) wrote: +if (hasNo !hasYes !hasOther) +desc += (unplugged); +

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-10 Thread Raymond Yau
+if (hasNo !hasYes !hasOther) +desc += (unplugged); +else if (hasYes !hasNo !hasOther) +desc += (plugged in); I think profiles should be plugged in if any port is available. The reason I did it for profiles in the first place, were just to

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-10 Thread Tanu Kaskinen
On Sat, 2012-11-10 at 22:54 +0100, David Henningsson wrote: On 11/09/2012 08:26 PM, Tanu Kaskinen wrote: On Fri, 2012-11-09 at 19:29 +0100, David Henningsson wrote: On 11/09/2012 07:17 PM, Tanu Kaskinen wrote: On Thu, 2012-11-08 at 23:38 +0100, poljar (Damir Jelić) wrote: +if

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-09 Thread Raymond Yau
2012-11-9 下午6:18 於 poljari...@gmail.com 寫道: 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:

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-09 Thread poljarinho
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, available: unknown) properties: is there any simple way to find out the cause of no sound problem of spdif of ad1989b on ubuntu 12.10 ? driver (No hda jack detect kcontrol) or pa 's spdif port priority

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-09 Thread Tanu Kaskinen
On Thu, 2012-11-08 at 23:38 +0100, poljar (Damir Jelić) wrote: From: poljar (Damir Jelić) poljari...@gmail.com 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). A profile is also available/unavailable if all

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-09 Thread Tanu Kaskinen
On Fri, 2012-11-09 at 19:29 +0100, David Henningsson wrote: On 11/09/2012 07:17 PM, Tanu Kaskinen wrote: On Thu, 2012-11-08 at 23:38 +0100, poljar (Damir Jelić) wrote: +if (hasNo !hasYes !hasOther) +desc += (unplugged); +else if (hasYes !hasNo !hasOther)

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-09 Thread Raymond Yau
+if (hasNo !hasYes !hasOther) +desc += (unplugged); +else if (hasYes !hasNo !hasOther) +desc += (plugged in); I think profiles should be plugged in if any port is available. The reason I did it for profiles in the first place,

[pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-08 Thread Damir Jelić
From: poljar (Damir Jelić) poljari...@gmail.com 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). A profile is also available/unavailable if all ports which have that profile is available/unavailable. Credit goes

Re: [pulseaudio-discuss] [PATCH pavucontrol] mainwindow: Show the availability of the ports and profiles.

2012-11-08 Thread Raymond Yau
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 A profile is also available/unavailable if all ports which have that profile is available/unavailable. for