Skip to content

[CML][PM] White noise when being runtime suspended after playback #603

Closed

Description

@xun2z

Summary:
when playback using alc5682 codec on cometlake, there is a about 2s white noise when entering runtime suspend.

Test steps:

  1. Play some music, eg.
    aplay -vv -Dhw:0,0 -c2 -d2 48California_Dreaming.wav
  2. when it ends, check the runtime status
    cat /sys/bus/pci/devices/0000:00:1f.3/power/runtime_status
    The noise occurs when entering runtime suspended.
    However, this noise only happens in suspending and if we trigger new playback, there will be no noise during playback.

Test env:
sof cml-001-drop-stable: 1f5a965
kernel topic/cros-sof-v4.19: f69d618
tplg: sof-cnl-rt5682.tplg

noise file: noise.zip

Activity

  1. added
    CMLApplies to Comet Lake platform
    on Jan 29, 2019
  2. added
    bugSomething isn't working
    P1Blocker bugs or important features
    on Jan 29, 2019
  3. changed the title [-][CML][PM] white noise when playback stops before runtime suspend[/-] [+][CML][PM] White noise when being runtime suspended after playback[/+] on Jan 29, 2019
  4. added
    P2Critical bugs or normal features
    and removed
    P1Blocker bugs or important features
    on Jan 29, 2019
  5. bardliao commented on Jan 30, 2019

    @bardliao
    Collaborator

    MCLK is turned off in runtime suspended. However, sof enter runtime suspend before DAPM off. In other word, MCLK is turned off before codec is powered off. And noise will occur in that period.

  6. self-assigned this
    on Jan 30, 2019
  7. plbossart commented on Jan 30, 2019

    @plbossart
    Member
  8. added
    P1Blocker bugs or important features
    and removed
    P2Critical bugs or normal features
    on Feb 20, 2019
  9. emilchudzik commented on Feb 25, 2019

    @emilchudzik

    @wwittbrx bringup Hatch. thank you Wojtek.

    We just checked flow from topic and we haven't repro. There is no "white noises" after end of the playback on each time.

    Configuration:
    Platform: Hatch CML
    kernel: cros-sof-v4.19 / 8492020d5967 + PR#651 applied
    FW: cml-002-drop-stable / dcd825b
    tplg: sof-cnl-rt5682.tplg

    Checked also on WHL RVP and there is also no reproduction with "while noises":
    kernel: cros-sof-v4.19 / 8492020d5967 + PR#651 applied
    FW: cml-002-drop-stable / dcd825b
    tplg for hda: sof-hda-generic.tplg

  10. bardliao commented on Feb 26, 2019

    @bardliao
    Collaborator

    @emilchudzik Did you test it by headphone?

  11. emilchudzik commented on Feb 26, 2019

    @emilchudzik

    No, I tested it by hdmi.
    On headphone I haven't any sound although there is no errors in dmesg log and aplay show playback progress without any issues. I haven't went deeper for debugging it yet - I will try it again with deeper analysis and I will give a feedback.

  12. emilchudzik commented on Feb 28, 2019

    @emilchudzik

    I just tested flow from topic on headphone (thanks to @bardliao to help configure alsamixer).

    On SSP0 (connected headphones) I have this observation:

    • I play 5 seconds: aplay -vv -Dhw:0,0 sine.wav -d5
    • after that I hear about 1 seconds of silence
    • then I hear about 1 seconds of something like mic is opened, but this is not "uggly white noise", but just something like "simple noise from mic"

    Here is a dmesg from start aplay to going suspended
    dmesg.txt

  13. plbossart commented on Mar 24, 2019

    @plbossart
    Member

    @xun2z is this issue still relevant? It's been 24 days without update.

  14. xun2z commented on Mar 25, 2019

    @xun2z
    Author

    @plbossart We still have this issue. Bard says he's trying to set a ignore_pmdown_time flag, which can shut down rt5682 immediately after playback. I'll look into it and help to check with Bard.

  15. xun2z commented on Apr 2, 2019

    @xun2z
    Author

    close since #741 is the fix

  16. added a commit that references this issue on Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CMLApplies to Comet Lake platformP1Blocker bugs or important featuresbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions