Skip to content

[BUG][TGL][DSM]Sound from speaker0,0 is distortion when playback and capture on speaker at the same time #3073

Closed

Description

@sinahuang

Describe the bug
Sound from speaker0,0 is distortion when playback and capture on speaker at the same time

To Reproduce
1.Run "aplay -Dhw:0,0 -f s32_le -c 2 -r 48000 sine_48k_32bit_10s_stereo_l5_r2.wav -d 5 & arecord -Dhw:0,0 -f s32_le -c 4 -r 48000 record.wav -d 5"
2.Check the sound output from speaker.

Reproduction Rate
5/5

1

Expected behavior
Sound from speaker0,0 should be normally when playback and capture on speaker at the same time

Impact
Sound from speaker0,0 is distortion when playback and capture on speaker at the same time

Environment
Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)

For volteer:

sof_trace.log
dmesg.log

record.zip

Activity

  1. added
    bugSomething isn't working as expected
    I2SApplies to I2S bus for codec connection
    TGLApplies to Tiger Lake
    P1Blocker bugs or important features
    on Jun 22, 2020
  2. sinahuang commented on Jun 22, 2020

    @sinahuang
    Author

    Error not seen with tgl-006-drop-stable released FW + tplg on https://github.com/thesofproject/sof/tree/releases/tgl/v7.0-rc2 +pr3069 branch and
    kernel https://github.com/thesofproject/linux/commits/topic/sof-dev +PR#2208
    PR#2184 +0001-hack-hack-98373-for-feedback-data-validation.patch.txt .

  3. ClarexZhou commented on Jun 22, 2020

    @ClarexZhou

    Error only occurred if build fw with chrome_override changes in config
    make tigerlake_chrome_overridedefconfig

    Error not seen if build fw with only defaultconfig

  4. jajanusz commented on Jun 22, 2020

    @jajanusz
    Contributor

    Problem is caused by not fitting into 120MIPS (there is 400mhz clock with defconfig and 120mhz in chrome config)

  5. mengdonglin commented on Jun 22, 2020

    @mengdonglin
    Collaborator

    Problem is caused by not fitting into 120MIPS (there is 400mhz clock with defconfig and 120mhz in chrome config)

    @jajanusz So this is a performance restriction caused by lower clock frequency?

  6. jajanusz commented on Jun 22, 2020

    @jajanusz
    Contributor

    @jajanusz So this is a performance restriction caused by lower clock frequency?

    Yes, we are testing some optimization fix, but if it's not enough we will need to use dynamic clock switching.

  7. ClarexZhou commented on Jun 22, 2020

    @ClarexZhou

    issue only occurred after enable LPRO
    Error not seen if build with LPS enabled, and disable LPRO.

  8. lgirdwood commented on Jun 22, 2020

    @lgirdwood
    Member

    @sinahuang @ClarexZhou are we using any demux in the topology ? We have an updated DEMUX pending that reduces from 70MCPS to 8.5 MCPS

  9. sathya-nujella commented on Jun 22, 2020

    @sathya-nujella
    Contributor

    this is a blocker for us: we can not enable WoV + DSM feature at this moment..

  10. RDharageswari commented on Jun 22, 2020

    @RDharageswari

    We see I/O error when we open the (feedback)capture path while speaker playback
    localhost ~ # arecord -Dhw:0,0 try.wav -c4 -fs32_le -d10 -r48000
    Recording WAVE 'try.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 4
    arecord: pcm_read:2151: read error: Input/output error

  11. sathya-nujella commented on Jun 22, 2020

    @sathya-nujella
    Contributor

    @jajanusz So this is a performance restriction caused by lower clock frequency?

    Yes, we are testing some optimization fix, but if it's not enough we will need to use dynamic clock switching.

    Is it like using LPRO for only S0ix+Wov and for all other cases use HPRO?

  12. 1 remaining item

  13. keyonjie commented on Jun 23, 2020

    @keyonjie
    Contributor

    @sinahuang @ClarexZhou are we using any demux in the topology ? We have an updated DEMUX pending that reduces from 70MCPS to 8.5 MCPS

    Yes, we use demux there. @sinahuang @ClarexZhou can you help to try if Bartosz's PR help for this?
    #3000

  14. ClarexZhou commented on Jun 23, 2020

    @ClarexZhou

    Error still can be reproduced with https://github.com/thesofproject/sof/commits/tgl-007-drop-stable, commit f16bf1e. Error can be reproduced even after disable LPRO in config with this commit.

    Error not seen with PR#3000, even with LPRO enabled config

  15. slawblauciak commented on Jun 23, 2020

    @slawblauciak
    Collaborator

    The mentioned PR will not fix the problem if the DSM processing is enabled.

  16. lgirdwood commented on Jun 23, 2020

    @lgirdwood
    Member

    The mentioned PR will not fix the problem if the DSM processing is enabled.

    Btw, there was another DEMUX corruption fix applied yesterday (sorry, cant remeber PR), we should be applying that and #3000 as dependencies in order to fix this issue (since they fix other related issues that can impact this issue). There may be other PRs still needed though for final fix.

  17. ClarexZhou commented on Jun 24, 2020

    @ClarexZhou

    No distortion can be heard with tgl-007-drop-stable, tag: releases/tgl/v7.0-rc5, commi: 1dd07a8 , but the record wav files is not as smooth as previously TGL 006 release. This isn't caused by c27ed8e , create new issue to track #3092
    2

    11

  18. ClarexZhou commented on Jun 29, 2020

    @ClarexZhou

    Keep open, we are waiting for PR on Master.

  19. slawblauciak commented on Jul 28, 2020

    @slawblauciak
    Collaborator

    PR to be merged: #3205

  20. slawblauciak commented on Aug 18, 2020

    @slawblauciak
    Collaborator

    @ClarexZhou PR merged, good to close?

  21. added this to the v1.6 milestone on Aug 20, 2020
  22. keqiaozhang commented on Sep 3, 2020

    @keqiaozhang
    Collaborator

    Close for not reproducible.

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

Metadata

Metadata

Assignees

Labels

DSMDynamic Speaker ManagementDSP overloadIssue caused by overload of DSPFix confirmedFix for the issue has been found and verifiedI2SApplies to I2S bus for codec connectionP1Blocker bugs or important featuresTGLApplies to Tiger LakebugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions