Skip to content

[BUG][MTL] Speaker playback IO error #7979

Description

@aiChaoSONG

Describe the bug
Playback a wave to speaker with aplay, see io error in terminal immediately. no obviously error in kernel log, and in mtrace, xrun happened.

[    1.999690] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0
[    2.000706] <inf> host_comp: host_get_copy_bytes_normal: comp:0 0x40000 no bytes to copy, available samples: 384, free_samples: 0

To Reproduce
simple do aplay to speaker pipeline:
aplay -Dhw:0,2 -f dat -c 2 -i -vvv /dev/zero

Reproduction Rate
100%

Reproduced with
Latest daily sof-dev kernel
Latest SOF main
topology: sof-mtl-rt711-l0-rt1316-l23-rt714-l1.tplg
Platform: {MTL SDW} with external codecs on GEN4 AIOC (sh-mtlp-rvp-sdw-09, not in CI farm)

  • Headset: ALC711 (headset) on link 0,
  • Speaker: ALC1316 x2 on link 2 & 3
  • DMIC: ALC714 on link1.

kernel options snd_soc_sof_sdw quirk=2

The first bad commit is: e424b87
image

Activity

  1. added
    bugSomething isn't working as expected
    on Jul 25, 2023
  2. added
    P1Blocker bugs or important features
    SDWSoundWire
    MTLApplies to Meteor Lake platform
    on Jul 25, 2023
  3. mengdonglin commented on Jul 26, 2023

    @mengdonglin
    Collaborator

    @ranj063 Can you help check this regression?

  4. changed the title [-][BUG] Speaker playback IO error[/-] [+][BUG][MTL] Speaker playback IO error[/+] on Jul 26, 2023
  5. ranj063 commented on Jul 27, 2023

    @ranj063
    Collaborator

    @ranj063 Can you help check this regression?

    @mengdonglin I think I know the issue. We're missing the src buffer update in the case of multie endpoint playback. I've given @btian1 the change to try out and check if it fixes the problem

  6. btian1 commented on Jul 27, 2023

    @btian1
    Contributor

    it fixed this issue, please check with below PR, @aiChaoSONG @bardliao @ranj063
    #7987

  7. added a commit that references this issue on Jul 31, 2023
    fec2c8b
  8. added a commit that references this issue on Jul 31, 2023
    79532b8
  9. lgirdwood commented on Jul 31, 2023

    @lgirdwood
    Member

    it fixed this issue, please check with below PR, @aiChaoSONG @bardliao @ranj063 #7987

    @aiChaoSONG Now merged #7987.

  10. aiChaoSONG commented on Jul 31, 2023

    @aiChaoSONG
    CollaboratorAuthor

    Verified fix #7987, close.

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

Metadata

Metadata

Assignees

Labels

Fix SubmittedFix has been submitted, to be fully verifiedMTLApplies to Meteor Lake platformP1Blocker bugs or important featuresSDWSoundWirebugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions