Skip to contentSkip to conversation

Consider unknown availability in module-switch-on-port-available

PATCH Raymond Yau 2 participants 2 messages Aug 22, 2012 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

2012-8-22 下午5:13 於 "David Henningsson" <[email protected]> 寫道:

Quoted 12 lines · Mikel Astiz

Review

Quoted 10 lines

From: Mikel Astiz <[email protected]>

A port with the availability state flag set to unknown should not be considered an active port.

---
  src/modules/module-switch-on-port-available.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/src/modules/module-switch-on-port-available.c

Quoted 4 lines

src/modules/module-switch-on-port-available.c static pa_bool_t try_to_switch_profile(pa_card *card,

Quoted 4 lines

index 1da612d..8c16821 100644

src/modules/module-switch-on-port-available.c +0 -0
@@ -85,7 +85,7 @@ static pa_bool_t try_to_switch_profile(pa_card *card,

pa_device_port *port) {

Quoted 4 lines

src/modules/module-switch-on-port-available.c static pa_bool_t try_to_switch_profile(pa_card *card, · line 88

Quoted 4 lines
src/modules/module-switch-on-port-available.c +0 -1
              PA_IDXSET_FOREACH(sink, card->sinks, state2) {
                  if (!sink->active_port)
                      continue;
-                if (sink->active_port->available !=

PA_PORT_AVAILABLE_NO)

Quoted 1 line

src/modules/module-switch-on-port-available.c static pa_bool_t try_to_switch_profile(pa_card *card, · line 88

Quoted 1 line
src/modules/module-switch-on-port-available.c +1 -0
+                if (sink->active_port->available ==

PA_PORT_AVAILABLE_YES)

Quoted 8 lines

src/modules/module-switch-on-port-available.c static pa_bool_t try_to_switch_profile(pa_card *card, · line 91

Quoted 4 lines
src/modules/module-switch-on-port-available.c +0 -0
                      found_active_port = TRUE;
              }
 

I think this will break the following use case (on a normal laptop) :

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.

Quoted 2 lines

if you look at those bug reports of no sound for those on-board ac97 codecs with ubuntu 12.04

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1033996

how does pulseaudio determine which controls are effective in the headphone path and speaker path of those ac97 codecs ?

the analog-output-stereo profile for the line out jack is missing

( 0.056| 0.000) D: [pulseaudio] alsa-mixer.c: Removing path 'analog-output' as it is a subset of 'analog-output-headphone

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)?

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=91b25005978d343a989c9485e226dc9a18a2fb28

http://git.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=5c832a5b8a2bc2ce7447eab10acaeed30cd3ed78
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw
Quoted 11 lines · Raymond Yau

2012-8-22 下午5:13 於 "David Henningsson"
<[email protected]
<mailto:[email protected]>> 寫道:

Quoted 1 line

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.

Quoted 2 lines
Quoted 7 lines

if you look at those bug reports of no sound for those on-board ac97 codecs with ubuntu 12.04

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1033996

how does pulseaudio determine which controls are effective in the headphone path and speaker path of those ac97 codecs ?

Please do not hijack threads to discuss something different. If you have an unrelated question such as this, start a new thread instead.

Thanks.

Signature · 6 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel