Skip to content

[BUG] Audio playback gets heavily distorted after rapid pause/release on HDA analog output  #7478

@ujfalusi

Description

@ujfalusi

Describe the bug
While testing audio playback on hw:0,0 on UPX-i11 board I have checked pause/resume with aplay -i (holding key to rapid pause/resume) and after few seconds the audio playback got corrupted.
The playback continued normally, firmware reported no issues, but the audio is completely distorted, high pitched and garbled.

To Reproduce

aplay -iv -Dhw:0,0 file.wav (48K 16bit)

Sounds good, no distortion.
Now, press and HOLD the <SPACE> key to rapid pause/resume aplay.
After few seconds you can hear that the sound starts to be up-shifted pitched, now release and if it is paused, press it again to resume.
Audio is pitched up, distorted, garbled
Not affecting HDMI (ChainDMA).

The same issue present on DeepBuffer PCM (-Dhw:0,31)

Reproduction Rate
10/10

Expected behavior
audio is not distorted

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: topic/sof-dev or upstream linux-next
    • SOF: ebaa142
  2. Name of the topology file
    • Topology: sof-hda-generic.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: TGL (UPX-i11)

Screenshots or console output
nothing out of ordinary in logs, all looks error free.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IPC4Issues observed with IPC4 (same IPC as Windows)P2Critical bugs or normal featuresTGLApplies to Tiger LakebugSomething isn't working as expectedgccGCC build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions