New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 826792 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

volume slider pops up when connect/disconnect external display

Project Member Reported by warx@chromium.org, Mar 28 2018

Issue description

When I connect/disconnect pixelbook to HP Z24i monitor (which doesn't have built-in speaker), volume slider pops up.

When connecting, output device automatically switched to USB HDMI audio, thus could trigger OnOutputNodeVolumeChanged signal.

In above case, external monitor doesn't have built-in speaker, which doesn't make much sense for switching output to it. Besides volume slider popping up, user also has to manual select another feasible output device for playing audio.

Can we do better on this?

----------
localhost ~ # cras_test_client --dump_s
System Volume (0-100): 100 
Capture Gain (-17.25 - 30.00): 20.00dB 
User muted: Not muted
Output Devices:
        ID      Name
        13      USB to HDMI: USB Audio:1,0
        11      kbl_r5514_5663_max: :0,7
        10      kbl_r5514_5663_max: :0,6
        7       kbl_r5514_5663_max: :0,2
        6       kbl_r5514_5663_max: :0,0
Output Nodes:
        Stable Id        ID      Vol   Plugged  L/R swapped           Time Hotword      Type             Name
        (0ec7ae09)      13:0       87      yes              no  1522257568              USB             *(default)
        (55da2043)      11:0      100       no              no           0              HDMI             HDMI2
        (3c8f023a)      10:0      100       no              no           0              HDMI             HDMI1
        (e6c4486c)      7:0       100       no              no           0              HEADPHONE        Headphone
        (72a57953)      6:0         4      yes              no  1522257522              INTERNAL_SPEAKER Speaker
Input Devices:
        ID      Name
        12      kbl_r5514_5663_max: :0,5
        9       kbl_r5514_5663_max: :0,1
        8       kbl_r5514_5663_max: :0,4
        5       Post DSP Loopback
        4       Post Mix Pre DSP Loopback
Input Nodes:
        Stable Id        ID     Gain   Plugged  L/R swapped           Time Hotword      Type             Name
        (1bae3257)      12:0        0      yes              no  1522257522 en_us        HOTWORD          Wake on Voice
        (61aab6ba)      9:0         0       no              no           0              MIC              Mic
        (401573b5)      8:0         7      yes              no  1522257522              INTERNAL_MIC    *Internal Mic
        (8c74f766)      5:0         0      yes              no           0              POST_DSP_LOOPBACK Post DSP Loopback
        (8a04af91)      4:0         0      yes              no           0              POST_MIX_LOOPBACK Post Mix Pre DSP Loopback
Attached clients:
        ID      pid     uid
        0       3031    656365
        1       3031    656365
        5       5715    0
Num active streams: 0
Last audio active time: 33, 323513383

 
Owner: warx@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by jen...@chromium.org, Mar 28 2018

It is likely the volume bar popping out is due to the switch of the active output device to USB HDMI device and trying to adjust the volume to a different value than the previous active device. Is USB HDMI of type "USB", if yes, it takes the precedence with internal speaker. 

Comment 3 by warx@chromium.org, Mar 28 2018

Yes, as we can see in the `output nodes:`, it is USB type. I wonder whether we can detect if that device is play-able.

Comment 4 by jen...@chromium.org, Mar 28 2018

Currently we can tell the difference btw such non-playable USB output from the regular USB output device. dgreid@, is there any way cras can help with this use-case?

Comment 5 by dgreid@chromium.org, Mar 28 2018

We don't have a lot of information to help. Is the monitor connected witha USB cable?

Comment 6 by warx@chromium.org, Mar 28 2018

I connected to monitor by USB-HDMI converter (NS-PU37H-BK).

Comment 7 by dgreid@chromium.org, Mar 28 2018

Ah, OK. Then there isn't anything we can do about it. That adaptor _is_ a USB audio device, there isn't a way to avoid it unless we start a blacklist, and then it won't work when attached to a monitor with speakers...

If you select speakers, it should remember that selection next time and not auto-route it.

Or us a type-c to HDMI adaptor instead.

Comment 8 by warx@chromium.org, Mar 28 2018

Status: WontFix (was: Assigned)
OK, thanks, WontFix then

Sign in to add a comment