Skip to content

[BUG] [TGL] [DSM] [I2S] No feedback data captured at times after SNDRV_PCM_TRIGGER_STOP/START events on pb stream #3428

Closed

Description

@RDharageswari

Steps to repro the issue:

  1. Do playback on speakers
    2.Start stop Start stop Start the pb stream [This start and stop refers to SNDRV_PCM_TRIGGER_STOP/START events]
    3.capture feedback data for 8 seconds
    4.Start stop Start stop Start the pb stream
    5.capture feedback data for 8 seconds
    Repeat the above for 5 times, in one of the feedback captured file, the Voltage/current data is missing.
    The result is not consistent across all the captured files

fw branch:
master

Activity

  1. added
    bugSomething isn't working as expected
    TGLApplies to Tiger Lake
    on Sep 17, 2020
  2. RDharageswari commented on Sep 18, 2020

    @RDharageswari
    Author

    unable to provide more information due to this: #3432

  3. added this to the v1.6 milestone on Sep 18, 2020
  4. lgirdwood commented on Sep 18, 2020

    @lgirdwood
    Member

    @RDharageswari can you confirm if the exception is also on master ? Is this with real/test DSM ?

  5. RDharageswari commented on Sep 18, 2020

    @RDharageswari
    Author

    This issue can be reproduced on master as well. master uses the actual DSMcomponent.i don't have data to prove this issue can be reproduced without maxim DSM as the default smart_amp throws exception with feedback stream itself as in #3432

  6. lgirdwood commented on Sep 18, 2020

    @lgirdwood
    Member

    @RDharageswari have you tried running tools/coredumper, this will help shed light on if its related to DSM module or SOF code (it should be able to take us to the line of code) which is doing the unaligned memory read..

  7. keyonjie commented on Sep 23, 2020

    @keyonjie
    Contributor

    I can reproduce this with nocodec mode, @bkokoszx I can reproduce this with below steps:

    1. run aplay in one terminal, e.g. 'aplay -Dhw:0,2 -f s16_le -r48000 -c2 /dev/random -vvv -i'
    2. run arecord in another terminal, e.g. 'arecord -Dhw:0,2 -f s16_le -r48000 -c2 tmp.wav -vvv'. you should see the arecord level same with aplay (e.g. aplay terminal is 99, so is the arecord terminal).
    3. stop the arecord, and restart it, check if arecord level still correct.
    4. do step 3 several times, you will see sometimes the arecord level is 0, which means the capture/feedback data are 0s.
  8. bkokoszx commented on Sep 24, 2020

    @bkokoszx
    Collaborator

    @keyonjie @RDharageswari @lgirdwood
    I can reproduce issue on my RVP nocodec platform with smart amplifier test component. I can see that copying process looks fine - I mean capture pipeline (even in case when arecord level is 0) processes the right amount of data. I suspect that the data is equal to 0 - I think that maybe there is some more generic problem with SSP. I will debug it.

  9. lgirdwood commented on Sep 24, 2020

    @lgirdwood
    Member

    @bkokoszx thanks, I think we will miss v1.6- rc1 but we can hit rc final for this one.

  10. RDharageswari commented on Sep 24, 2020

    @RDharageswari
    Author

    Thanks @bkokoszx. Can you also check the PCM_START & PCM_STOP sequence once, to confirm if it is the same issue.
    issue
    This is a VIVI sequence, with maxim DSM module. But you can repro on smart_amp_test component also i believe.

  11. 3 remaining items

  12. keyonjie commented on Sep 27, 2020

    @keyonjie
    Contributor

    Thanks for debugging and verification, @bkokoszx and @RDharageswari .

    I create a PR #3476 to fix this, please help to review.

  13. added a commit that references this issue on Oct 2, 2020
  14. added a commit that references this issue on Oct 2, 2020
  15. added a commit that references this issue on Oct 6, 2020
  16. keyonjie commented on Oct 12, 2020

    @keyonjie
    Contributor

    @RDharageswari shall we close this now?

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

Metadata

Metadata

Labels

DSMDynamic Speaker ManagementP1Blocker 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