Skip to content

[BUG][CML][UCM2]Audio output can't be auto switched to HDMI in some scenarios #2110

Closed

Description

@Liviali155

Describe the bug
Audio output can't be auto switched to HDMI in some scenarios

To Reproduce
Scenario 1
1.sudo reboot’ to reboot system without HDMI connetion
2.plug HDMI

Scenario 2
1.sudo reboot’ to reboot system without HDMI connetion
2.plug HDMI
3.open soundsetting to set output Device as "HDMI1/DP1 Output-sof-hda-dsp“
4.keep sound setting open
5.paplay -vv wav/48California_Dreaming.wav
6.unplug HDMI then plug again
7.Check output Device in sound settings

Reproduction Rate
5/5

Expected behavior
Output Device can be changed to HDMI auto when plug HDMI again

Actual result
Scenario 1 &Scenario 2 : Output Device can not be changed to HDMI auto when plug HDMI again

More info:
in scenario 1:if select HDMI as output one time, then unplug and plug again,error not seen
in scenario2:error not seen if closed sound setting in step4 or without step5

Platform: Dell CML laptop with onboard codec ALC3204 in HDA mode
Firmware: 83cecc9 https://github.com/thesofproject/sof/commits/master
Kernel: a43e72a https://github.com/thesofproject/linux/commits/topic/sof-dev
Topology: file: tools/topology/sof-hda-generic-2ch.tplg same as firmware
UCM2: https://github.com/thesofproject/alsa-ucm-conf/tree/master/ucm2/(12743d2) or
https://github.com/alsa-project/alsa-ucm-conf/UCM2 + alsa-project/alsa-ucm-conf#21 can reproduce this issue

amixercontents_failed.txt
amixercontents_pass.txt
dmesg0514.log
sof-logger0514.log

Activity

  1. changed the title [-][BUG][CML][UCM2]Output Device can not be changed to HDMI auto after unplug/plug HDMI when keep sound settings open[/-] [+][BUG][CML][UCM2]Output Device can not be changed to HDMI auto after plug HDMI again when keep sound settings open[/+] on May 14, 2020
  2. changed the title [-][BUG][CML][UCM2]Output Device can not be changed to HDMI auto after plug HDMI again when keep sound settings open[/-] [+][BUG][CML][UCM2]Audio output can't be auto switched to HDMI in some scenarios[/+] on May 14, 2020
  3. added
    bugSomething isn't working
    HDAApplies to HD-Audio bus for codec connection
    on May 14, 2020
  4. ClarexZhou commented on May 15, 2020

    @ClarexZhou

    @kv2019i @juimonen is this issue depend on new feature #2068 ?

  5. ClarexZhou commented on May 18, 2020

    @ClarexZhou

    same on TGL notebook with ALC3204 in HD-A mode

  6. Liviali155 commented on May 18, 2020

    @Liviali155
    Author

    update pulseaudio to default pulseaudio of Ubuntu20.04 + https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/295 ,error not seen

  7. Liviali155 commented on May 19, 2020

    @Liviali155
    Author

    On matins:
    Output Device switched to Headphones,but Input Device will not switched to Headset when first insert headset,still is “Digital Microphone-sof-had-dsp”, after set it once manual,error not seen

    After update pulseaudio to default pulseaudio of Ubuntu20.04 + https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/295 ,error not seen

  8. kv2019i commented on Jun 3, 2020

    @kv2019i
    Collaborator

    Fixed by PA patches, assigning for @libinyang to follow-up.

  9. libinyang commented on Aug 6, 2020

    @libinyang

    with the latest recipe:

    UCM2: https://github.com/alsa-project/alsa-ucm-conf(commit: 3e897306)
    Alsa-lib: http://sof-ci-storage.sh.intel.com/share/alsa/alsa-lib/latest/libasound2_1.2.3.2-a3ca480/
    Pulseaudio: http://sof-ci-storage.sh.intel.com/share/pulseaudio/latest/pulseaudio_13.99.1.1-47d8112/
    Gnome: 1:3.36.2-0ubuntu1++testswitch - can download form Canonical:
    sudo add-apt-repository ppa:hui.wang/switch-audio
    sudo apt-get update
    sudo apt install gnome-control-center

    This bug is fixed.
    Verified on SDW and sof HDA (CML platforms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CMLApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionTGLApplies to Tiger Lake platformUCM2bugSomething isn't workingsingle-profile UCMUCM devices are defined in a single profile.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions