Skip to content

[SDW][BUG] I/O error occurred when stop/restart, pause/release or switch to foreground from background. #1329

Closed

Description

@YvonneYang2

Describe the bug
I/O error occurred when push_pause arecord/aplay then push_release.
I/O error occurred when stop arecord/aplay then restart.
I/O error occurred when switch to foreground from background.
It seems related to https://github.com/thesofproject/sof/issues/1925#issuecomment-542249084 since #1935 and #1946 have been merged into master while #1277 hasn't been merged into kernel branch yet. After applying #1277, the issue is gone.

To Reproduce
1.Aplay via "aplay "aplay -Dhw:0,2 wav/48California_Dreaming.wav -vv -i "
2.Push_pause aplay
3.Push_release aplay

frequency
100%

Expected result
Aplay resume normaly

Actual result
I/O error occurred

Environment
Firmware: 0d54df1 https://github.com/thesofproject/sof/commits/master
Kernel: 0ebe10b https://github.com/thesofproject/linux/tree/integration/soundwire-latest
tplg: sof-icl-rt711-rt1308-rt715-hdmi.m4
platform: ICL RVP, with codec ALC711 -RT1308, RT715 in SDW mode, CML RT700 RVP

error logger

 CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME	CONTENT
    0      1          DAI 3.16    1701278316.406250              nan      src/audio/dai.c:605 	dai_check_for_xrun() error: underrun due to no data available
    0      1         COMP         1701278326.145833         9.739583 of/audio/component.h:743 	comp_underrun() error: dev->comp.id = 16, source->avail = 1152, copy_bytes = 0
    0      1         PIPE         1701278424.427083        98.281250 src/audio/pipeline.c:833 	pipeline_copy() error: ret = -61
    0      1         PIPE 3.17    1701278434.479167        10.052083 src/audio/pipeline.c:1037	pipeline_task(): xrun recover failed! pipeline will be stopped!

dmesg.log
logger.log

Activity

  1. added
    bugSomething isn't working
    ICLApplies to Icelake platform
    CMLApplies to Comet Lake platform
    on Oct 17, 2019
  2. changed the title [-][SDW][BUG] I/O error occurred when pause aplay/arecord then resume.[/-] [+][SDW][BUG] I/O error occurred when stop/resume, pause/release or switch to background/foreground.[/+] on Oct 17, 2019
  3. changed the title [-][SDW][BUG] I/O error occurred when stop/resume, pause/release or switch to background/foreground.[/-] [+][SDW][BUG] I/O error occurred when stop/resume, pause/release or switch to foreground from background.[/+] on Oct 17, 2019
  4. plbossart commented on Oct 17, 2019

    @plbossart
    Member

    works for me with kernel 0ebe10b with PR #1327 on top

    the only thing that doesn't work is doing a system suspend with rtcwake while in paused mode, and that's tracked by #1328

    Please retest with PR #1327, thanks!

  5. added
    SDWApplies to SoundWire bus for codec connection
    SDW_DEVSDW bug reproduced by developers, fix WIP
    on Oct 17, 2019
  6. YvonneYang2 commented on Oct 18, 2019

    @YvonneYang2
    Author

    Issue can still reproduce with latest kernel d88ee7d + PR #1327 on top. But after applying PR #1277 , issue is gone.

  7. changed the title [-][SDW][BUG] I/O error occurred when stop/resume, pause/release or switch to foreground from background.[/-] [+][SDW][BUG] I/O error occurred when stop/restart, pause/release or switch to foreground from background.[/+] on Oct 22, 2019
  8. YvonneYang2 commented on Oct 23, 2019

    @YvonneYang2
    Author

    Issue cannot reprocue on ICL RVP, with codec ALC711 -RT1308, RT715 in SDW mode with test recipe as below.

    kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: 7c85d69
    FW: https://github.com/thesofproject/sof/commits/master commit: 8b059f6
    tplg: Same with FW branch, sof-icl-rt711-rt1308-rt715-hdmi.tplg rename to sof-icl-rt711-rt1308-rt715.tplg
    platform: ICL RVP, with codec ALC711 -RT1308, RT715 in SDW mode

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 platformICLApplies to Icelake platformSDWApplies to SoundWire bus for codec connectionSDW_DEVSDW bug reproduced by developers, fix WIPTGLApplies to Tiger Lake platformbugSomething isn't workingsuspend resumeIssues related to suspend resume (e.g. rtcwake)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions