Skip to content

Noisy playback on BYT with RT5651 #1107

Closed

Description

@ranj063

The recently added commit to support variable copy for the mixer component causes underruns during playback with sof-byt-rt5651.tplg.

9a6a38a : mixer: add support for variable data copy

With some more recent updates to host variable copy and dwdma seem to prevent the underruns but the audio is very distorted.

logger.txt
minnow_dmesg.txt

Activity

  1. added
    BYTApplies to Baytrail platform
    P1Blocker bugs or important features
    on Mar 10, 2019
  2. lgirdwood commented on Mar 11, 2019

    @lgirdwood
    Member

    @ranj063 @tlauda I'm guessing this will be fixed when the variable dai/host PR is merged (pending CI and QA atm).

  3. tlauda commented on Mar 11, 2019

    @tlauda
    Contributor

    @lgirdwood I guess so, BYT is now passing on my PR. But I'm still confused why changes in mixer component affected simple volume pipelines?

  4. ranj063 commented on Mar 11, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda BYT topology is not a simple pipeline. It has a media playback pipeline and low latency playback connected at the mixer.

  5. tlauda commented on Mar 11, 2019

    @tlauda
    Contributor

    @ranj063 Could you check with the current master? I've fixed my host/dai var copy and CI for BYT passed.

  6. ranj063 commented on Mar 11, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda unfotunately no. We've still got the same problem

  7. ranj063 commented on Mar 11, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda it looks like we've got another problem with the sof byt topology. I cant start playback on the media pipeline at all. The recent changes to the pipeline commands are probably responsible for this. Do you have a BYT set up? This is the only working topology we have to test out all your recent changes.

  8. lgirdwood commented on Mar 11, 2019

    @lgirdwood
    Member

    @ranj063 I assume the other pipelines work ? Can you provide the logs for the failing media pipeline. @keqiaozhang can you try some different pipelines as part of QA, this is a big feature update so we need to make sure we give it a broad test with as many different topologies we can. Thanks.

  9. ranj063 commented on Mar 11, 2019

    @ranj063
    CollaboratorAuthor

    @lgirdwood the other playback pipeline works. I think the reason might be that in the FW today we dont propagate trigger from another pipeline. I will post the logs soon

  10. tlauda commented on Mar 15, 2019

    @tlauda
    Contributor

    @ranj063 Can you provide log with verbose traces and not working playback (the one without a mixer).

  11. ranj063 commented on Mar 15, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda both the playback pipelines go through the mixer in the BYT topology. not sure about this ask?

  12. lgirdwood commented on Mar 15, 2019

    @lgirdwood
    Member

    @ranj063 I think @tlauda just needs the verbose traces when it fails via mixer playback.

  13. ranj063 commented on Mar 15, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda @lgirdwood here're the logs with verbose trace enabled before starting playback on PCM 1 and after starting playback
    byt_logger_pre_playback.txt
    byt_logger_post_playback.txt

  14. 3 remaining items

  15. ranj063 commented on Mar 18, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda I've already tried with #1136 and it didnt fix the issue.
    stream format: S16_LE
    DAI format: S24_4LE

    what I noticed was with the above combination, playback is noisy. But if the stream format is S24_4LE as well, there is no noise, which leads me to think that maybe there's something off with the volume conversion maybe? I'm not sure though as I lookedinto the code and everything looks good.

  16. changed the title [-]Mixer variable data copy causes underrun during playback on BYT with RT5651[/-] [+]Noisy playback on BYT with RT5651[/+] on Mar 18, 2019
  17. ranj063 commented on Mar 18, 2019

    @ranj063
    CollaboratorAuthor

    I've edited the title because I dont think it has anything to do with just variable copy on the mixer

  18. lgirdwood commented on Mar 18, 2019

    @lgirdwood
    Member

    Adding @singalsu.
    @ranj063 I guess you have tried gcc and xt-xcc ?

  19. ranj063 commented on Mar 18, 2019

    @ranj063
    CollaboratorAuthor

    @lgirdwood xt-xcc compilation for BYT is broken. Now might be the best time to fix it. Let me work on it today

  20. xiulipan commented on Mar 19, 2019

    @xiulipan
    Contributor

    @ranj063 this is the situation I talked to you about byt-rt5651 tplg.
    sof-byt-rt5651 involves a very complex topology included mixer. And we have no test about that component yet. So in CI we use some single volume test topology.

    I will check if this is some shared problem in all mixer component or some single problem with BYT or RT5651.

  21. ranj063 commented on Mar 19, 2019

    @ranj063
    CollaboratorAuthor

    @xiulipan maybe sof-byt-rt5651 is not ready for CI yet but I have the issue even with a simple volume playback pipeline on BYT

  22. tlauda commented on Mar 19, 2019

    @tlauda
    Contributor

    @ranj063 Could you check with PRs #1144 and #1136?

  23. xiulipan commented on Mar 19, 2019

    @xiulipan
    Contributor

    @ranj063
    Checked with byt_rt5682/5682 with simple host -> volume -> dai pipeline. I now believe #1147 is a duplicate of this. We need to check the whole pipeline, not only BYT

  24. ranj063 commented on Mar 19, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda this is the commit that causes the noise on the minnowboard
    407be96 dai: change flow of component copy

  25. lyakh commented on Mar 19, 2019

    @lyakh
    Collaborator

    #1147 isn't quite the duplicate, but it's the same commit, that's causing them both

  26. tlauda commented on Mar 21, 2019

    @tlauda
    Contributor

    @ranj063 Please verify after applying following patches: #1136, #1159, #1160 and #1162. @xiulipan confirmed, that sound is now clean.

  27. ranj063 commented on Mar 21, 2019

    @ranj063
    CollaboratorAuthor

    @tlauda confirmed fixed with the above PR's that are merged into master already.

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

Metadata

Metadata

Labels

BYTApplies to Baytrail platformP1Blocker bugs or important features

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions