Skip to content

Baytrail: sound output is garbled with beating noise #933

Closed

Description

@plbossart

I seriously question the results of the SOF CI and platform owners.

on Baytrail, a simple listening test on Asus T100 shows the audio is just corrupted, with beating noises and frequency shifts. This is just unacceptable, sorry, SOF is just complete garbage on all legacy platforms at this point. it's embarrassing to be that bad.

firmware 6eb79af
kernel 35d7759

Activity

  1. added
    bugSomething isn't working
    BYTApplies to Baytrail platform
    on May 11, 2019
  2. self-assigned this
    on May 13, 2019
  3. fredoh9 commented on May 13, 2019

    @fredoh9
    Collaborator

    I have a Baytrail MinnowBoard(MB) i can take a look at.

  4. plbossart commented on May 13, 2019

    @plbossart
    MemberAuthor

    there's been some issues before like this with DMA pointers being in the weeds, can you try and grab the SSP signals with a LogicPro, then export the values in an .csv file. It's the best way to see if the samples play in sequence.

  5. fredoh9 commented on May 14, 2019

    @fredoh9
    Collaborator

    As i have only MB nocodec mode, i wanted to try to use loopback first but recording path has only silence. Not sure it was working before.
    I need to check i can borrow LogicPro.

  6. juimonen commented on May 17, 2019

    @juimonen

    @plbossart @fredoh9 is this still valid? I see other people and QA reporting that sound is ok, but there's timeout error with second playback... I also see this second playback issue in my logs, but the thing is that I have also crap sound, but now it seems that actually my hw is borked. I'm just confused about mixed reports here...

  7. wenqingfu commented on May 21, 2019

    @wenqingfu

    @Jiangxinx reported that he cannot reproduce this issue on MinnowBoard+RT5651, see thesofproject/sof#1451 (comment)

  8. juimonen commented on May 24, 2019

    @juimonen

    @plbossart I got the mb+rt5682 running. Well, sound is personally to me little different than hifiberry+up2, more high end emphasis at least. However I can't hear any obvious flaws, attached full scale sine sweep playback through mb+rt5682 and recording with my desktop.

  9. juimonen commented on May 24, 2019

    @juimonen
  10. plbossart commented on May 24, 2019

    @plbossart
    MemberAuthor
  11. juimonen commented on May 24, 2019

    @juimonen

    @plbossart I think I was running it with several kernels like:
    4d1fc20
    c671681
    0f3e63c
    for me the top most was topic/sof-dev head (might have changed...)
    I also used your latest broonie PR.

    for fw I used like:
    56b8776
    which i think is master, but I also used some other
    versions including revert commit of dw-dma from Guennadi:
    (1da3907)

    So I would say just use latest/greatest from both. I can also
    test the versions you find problems with. Sorry I can't be more
    specific...

  12. plbossart commented on May 24, 2019

    @plbossart
    MemberAuthor

    No change on my side on ASUS T100TA (rt5640)
    The sine wave looks really bad and my theory that the samples are played in the wrong order is likely still true.
    sine
    sine-asust100.wav.gz

  13. plbossart commented on May 24, 2019

    @plbossart
    MemberAuthor

    binary used, @juimonen can you try to see if we might have a compilation issue?

    sof-byt.ri.gz

  14. 14 remaining items

  15. juimonen commented on Jun 4, 2019

    @juimonen

    @plbossart I'll try again tomorrow in the office. btw did you have this thesofproject/sof#1514 in your fw code? it fixed the s24/s32 playback for me...

  16. plbossart commented on Jun 4, 2019

    @plbossart
    MemberAuthor

    @juimonen yes this is with the latest firmware, but I play in S16_LE on hw:0,0 so your changes probably don't matter.

  17. singalsu commented on Jun 6, 2019

    @singalsu
    Collaborator

    Here's my analog recording from the Asus T100 (model T100TA-DK024H) with Pierre's file played with command:

    aplay -Dhw:0,0 -c2 -r48000 -f dat cnt_1024_left.pcm
    The recording looks clean to me, no such repeating discontinuity as in above logic analyzer screenshot or in the spreadsheet data. I have fresh kernel, topology (sof-byt-rt5640.tplg), firmware fetched and built today.

    rec_cnt_1024_left_pcm.wav.gz

  18. singalsu commented on Jun 6, 2019

    @singalsu
    Collaborator

    Continued... if I had this corruption (plot made from Pierre's spreadsheet) it would show up well in the analog waveform too.

    ssp-gap

  19. juimonen commented on Jun 6, 2019

    @juimonen

    @plbossart I'm also recording from analog output of codec and drawing from recorded wav-file. This kind of gaps should show up through the codec... I'm puzzled what you have there...

  20. plbossart commented on Jun 6, 2019

    @plbossart
    MemberAuthor

    I don't have an answer but can you please try and look at the connector level? You are using different codecs in different configurations so we don't have a common environment to test. The connector is the only common part and it should be the first test we do.

  21. juimonen commented on Aug 22, 2019

    @juimonen

    @plbossart you are probably busy with other stuff, but is this still valid? If you have spare time to re-check with your setup... I think there has been some changes to byt ipc and other parts of the code.

  22. plbossart commented on Aug 22, 2019

    @plbossart
    MemberAuthor

    @juimonen ack, i'll retry tomorrow.

  23. plbossart commented on Oct 7, 2019

    @plbossart
    MemberAuthor

    not reproducible on ASUS T100 HAN (CHT), but PulseAudio speaker test generates audible underflows

  24. plbossart commented on Oct 7, 2019

    @plbossart
    MemberAuthor

    Not reproducible on Asus T100 TA (BYT) either. I wasn't able to check Pulseaudio, @juimonen can you give it a try with the UI speaker test?

  25. juimonen commented on Oct 8, 2019

    @juimonen

    @plbossart in byt-mb aplay works fine but with pulseaudio I have similar issues than you, so quite nasty gaps in audio. Manually running pulseaudio doesn't spit out any xruns, also fw logger seems clean.
    With aplay I also get like small part of the audio repeated in the end when I cut the playback with ctrl-c... don't know if it is related, but seems this is not underrun, but some error in reporting the position or writing to audio buffer.

  26. juimonen commented on Oct 8, 2019

    @juimonen

    btw, if I play with "paplay -vvvv" (verbose mode) the audio is clean (!?). And I see from dmesg position reporting that there's some difference. So with -vvv the buffer fill sizes are calculated somehow differently. Now the question is, why pulse "default" playback is not working, pulse or sof issue?

  27. plbossart commented on Oct 8, 2019

    @plbossart
    MemberAuthor

    it's definitively SOF, this doesn't happen with the legacy driver. I'll file another issue on this to avoid misunderstandings.

  28. plbossart commented on Oct 8, 2019

    @plbossart
    MemberAuthor

    follow-up on #1285

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

Metadata

Metadata

Labels

BYTApplies to Baytrail platformbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions