Skip to content

[Bug][UCM][CML]One time pop noise output via internal speaker when plug headset during paplay #1862

Closed

Description

@ClarexZhou

Describe the bug
One time pop noise output via internal speaker when plug in headset or unplug headset during paplay

Note: This pop noise is observed from PR#24 [split profile and enable source auto switch when plug in /unplug headset]. Error not seen without PR#24. Error also seen with PR#28

To Reproduce
Step1: paplay wav/music.wav -vvv
Step2: Plug in headset
Step3: Unplug headset
Step4: Repeat step2 and step3

Reproduced rate
90%

Expected result
No pop noise should be observed.

Actual result
One time pop noise output via internal speaker when plug in headset or unplug headset during paplay

Environment
Kernel:release/sdw_cml_hotfix, commit:38d0dcd
FW: commits/cml-010-hot-fix, commit: 0ed0dba
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML-U Laptop with ALC711+ ALC1308+ ALC715 in SDW mode
ucm: https://github.com/thesofproject/alsa-ucm-conf.git+PR#24 or PR#28

Activity

  1. added
    bugSomething isn't working
    P1Blocker bugs or important features
    CMLApplies to Comet Lake platform
    UCMRestriction of UCM configuration files
    on Mar 5, 2020
  2. ClarexZhou commented on Mar 5, 2020

    @ClarexZhou
    Author

    @libinyang please help to check first

  3. ClarexZhou commented on Mar 5, 2020

    @ClarexZhou
    Author

    The pop noise sound like the pop noise in scenario #1376

  4. libinyang commented on Mar 5, 2020

    @libinyang

    This bug should not be related to UCM or pulseaudio.
    It can easily be reproduced by aplay. Seems to be codec driver or fw or controller driver issue.

  5. bardliao commented on Mar 5, 2020

    @bardliao
    Collaborator

    @ClarexZhou Could you use the following command to mute/unmute in playback and see if there is a pop when mute/unmute?
    amixer cset name='Speaker Switch' 0
    and
    amixer cset name='Speaker Switch' 1

  6. ClarexZhou commented on Mar 5, 2020

    @ClarexZhou
    Author

    @bardliao no this pop noise if using above cset instead of headset plug.
    Here is the amixer contents with and without headset with UCM PR#24
    24headset.txt
    24speaker.txt

    Here is the amixer contents with and without headset with UCM PR#28
    noheadset.txt
    headset.txt

  7. ClarexZhou commented on Mar 5, 2020

    @ClarexZhou
    Author

    Error also can be reproduced with below steps:

    1. paplay 1.wav -vvv
    2. open system sound setting, select output source, to switch sources between Speaker and Headphone.

    Error not seen on UCM without PR#24 or without PR#28.

  8. kv2019i commented on Mar 10, 2020

    @kv2019i
    Collaborator

    @mengdonglin This is missing an assignee -- P1 bug with no updates in 5 days

  9. ClarexZhou commented on Mar 16, 2020

    @ClarexZhou
    Author

    Error not seen with kernel sof-dev, commit: 0f90705, contains PR #1887 + PR #1897 and FW: https://github.com/thesofproject/sof/tree/cml-010-hot-fix, commit thesofproject/sof@0ed0dba + commit thesofproject/sof@f73332e

    But still has slight noise on internal speaker with same kernel sof-dev, commit: 0f90705, contains PR #1887 + PR #1897 and FW: Master, commit: thesofproject/sof@afd97708

  10. YvonneYang2 commented on Apr 22, 2020

    @YvonneYang2

    Since ucm2 issue #1999, output source won't auto switch to headphone when plug in headphone. So tested it via switching to headphone manually, issue cannot be reproduced after #1897 merged. Close the bug.

    Test recipe:
    Kernel: topic/sof-dev(8dc1789)
    FW: master(0befebb)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CMLApplies to Comet Lake platformP1Blocker bugs or important featuresUCMRestriction of UCM configuration filesbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions