-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baytrail: sound output is garbled with beating noise #933
Comments
I have a Baytrail MinnowBoard(MB) i can take a look at. |
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. |
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. |
@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... |
@Jiangxinx reported that he cannot reproduce this issue on MinnowBoard+RT5651, see thesofproject/sof#1451 (comment) |
@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. |
On 5/24/19 2:08 AM, juimonen wrote:
@plbossart <https://github.com/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.
can you share kernel+firmware SHA1, I'll retry.
|
@plbossart I think I was running it with several kernels like: for fw I used like: So I would say just use latest/greatest from both. I can also |
No change on my side on ASUS T100TA (rt5640) |
binary used, @juimonen can you try to see if we might have a compilation issue? |
Things work fine with the SST driver so it's not my device which is broken! |
@plbossart your binary works fine with my setup... |
@plbossart when playing in byt to hw0,1 (media pipeline with src) I get funny 8x speed effect. I can fix it with changing the pipe parameters to same as apl media pipe has (0,4 in apl/up2). However then I get buzzing effect with 44.1->48. 48->48 to 0,i in byt is clean. So I can just guess that there's some issue with dw-dma and 44.1 alternating frame sizes. Will try to debug it further. however as said before hw0,0 playback is clean for me in byt. |
@juimonen that helps progress even if we haven't root-caused the issue. it's not the topology file (same), not the firmware file (no difference), not the platform driver. So it's got to be codec driver or machine driver (I have the same issue with rt5645 on a CHT device). Can you try and see if there is any Asus T100 left in Espoo? Or are there any rt5651 devices left? Also do you use the MCLK or not on the rt5682? |
On my Asus T100 the 16 bit playback is clean and OK. 24 bit and 32 bit content playback makes rattle (several times per second - I'll do a capture example and post the wavs and screenshots). This is with low latency pipeline. Media pipeline is complete garbage with >2x speedup in playback time with 16 bit content. With 24 and 32 bit content the media pipeline fails immediately without anything played. |
@plbossart what format are you using for playback? So currently we have several issues found:
So to sum up:
btw, me and @singalsu have quite uniform results in mb/rt5682 and t100. |
Here's my recordings from T100. And plots of seen glitches (s16 clean, s24 and s32 format have similar issue) The glitches seem to be 1 ms long copies of previous audio, from about 20 ms ago. The glitches happen about every 32 ms. |
@plbossart I made 2 issues: These seems to be quite the same with me and @singalsu in mb/rt5682 and t100. |
@plbossart Could you try with this chirp. The corruptions are better visible in low frequency sine wave. Though your clip sounded like totally messed up and different to my T100 so not sure if this would reveal anything. |
When I play a saw-tooth pattern on a MinnowBoard and grab the results with Logic Pro, I clearly see a discontinuity and as usual it's a step of 96 samples. Please redo the measurements by checking the signals on the connector first. |
I have the issue issue on Asus 100 TA (rt5640), Asus T100HA (rt5645) and the Dialog DA7213 test board. All of them work fine with the closed-source firmware, none of them work with SOF. |
@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... |
@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. |
Here's my analog recording from the Asus T100 (model T100TA-DK024H) with Pierre's file played with command:
|
@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... |
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. |
@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. |
@juimonen ack, i'll retry tomorrow. |
not reproducible on ASUS T100 HAN (CHT), but PulseAudio speaker test generates audible underflows |
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? |
@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. |
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? |
it's definitively SOF, this doesn't happen with the legacy driver. I'll file another issue on this to avoid misunderstandings. |
follow-up on #1285 |
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
The text was updated successfully, but these errors were encountered: