Skip to content
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

White noise when doing 16 bit playback/record via I2S on ICL #552

Closed
DarrenxWang opened this issue Nov 8, 2018 · 8 comments
Closed

White noise when doing 16 bit playback/record via I2S on ICL #552

DarrenxWang opened this issue Nov 8, 2018 · 8 comments
Assignees
Labels
bug Something isn't working as expected ICL Applies to IceLake platform P1 Blocker bugs or important features verified QA/Bug reporter verifies solution worked.

Comments

@DarrenxWang
Copy link

DarrenxWang commented Nov 8, 2018

Summary:
White noise when doing 16 bit playback/record by I2S on firware branch icl-001-drop-stable. 24 bit/32bit playback/capture works well w/o this issue.

And this issue seems to be a branch-specific firmware issue for icl-001-drop-stable.
Because with the same kernel & topology, this issue cannot be reproduced on firmware master branch (commit 33e4b99) plus the patch below 0001-DMIC-Enable-power-for-DMIC-for-ICL-platform.patch

Test steps:
aplay -D hw:0,0 Music/48California_Dreaming.wav -d 20 & arecord -Dhw:0,0 -f S16_LE -r 48000 -c 2 test.wav -d 20

Test env:
Sof- icl-001-drop-stable: 40c054a

Soft-Soft- master: 937032f + 1 Patch
0001-topology-sample-code-for-icl-topology.patch.txt

Linux kernel: topic/sof-dev: af44aa9 + 3 Kernel patches
0001-ASoC-Intel-hdac_hdmi-add-Icelake-support.patch.txt
0002-ASoC-intel-add-icelake-dummy-codec-match-table.patch.txt
0003-ASoC-Intel-add-ICL-machine-driver.patch.txt

Firmware patch:
0001-DMIC-Enable-power-for-DMIC-for-ICL-platform.patch.txt

Log&Wav:
There is no obvious error in kmesg.
linux_dmesg.log
logger.txt
wav.zip

@DarrenxWang DarrenxWang added the bug Something isn't working as expected label Nov 8, 2018
@mengdonglin mengdonglin added exported ICL Applies to IceLake platform P1 Blocker bugs or important features labels Nov 8, 2018
@mrajwa
Copy link
Contributor

mrajwa commented Nov 8, 2018

The only significant difference between the commit that is fine 33e4b99 and the icl-001-drop-stable is this commit 4fa9a7b. @singalsu, could you please check if you see reported noise issue caused by your commit changes?

@singalsu
Copy link
Collaborator

singalsu commented Nov 8, 2018

@mrajwa I don't have ICL. Do you know which bits -> bits conversion is the suspected volume controller doing?

@singalsu singalsu self-assigned this Nov 8, 2018
@singalsu
Copy link
Collaborator

singalsu commented Nov 8, 2018

I made just PR #555. That's an obvious error, sorry for that. If the playback / capture pipelines in ICL did s24 -> s16 sample format conversion in volume that should impact.

@mengdonglin mengdonglin changed the title White noise when doing playback/record via I2S on ICL White noise when doing 16 bit playback/record via I2S on ICL Nov 9, 2018
@DarrenxWang
Copy link
Author

There is white noise when doing 16 bit playback/record by I2S.
There is no white noise when doing 24/32 bit playback/record by I2S.

@singalsu
Copy link
Collaborator

singalsu commented Nov 9, 2018

@DarrenxWang I don't have device to test this conversion. Can you please test if PR #555 fixes this.

Edit: no need to get PR, it's merged to git master now.

@bardliao
Copy link
Collaborator

bardliao commented Nov 9, 2018

@mrajwa @singalsu This issue is fixed by PR #555 . Thanks

@singalsu
Copy link
Collaborator

singalsu commented Nov 9, 2018

@bardliao Excellent, thanks!

@singalsu
Copy link
Collaborator

singalsu commented Nov 9, 2018

Closing this issue.

@singalsu singalsu closed this as completed Nov 9, 2018
@mengdonglin mengdonglin added the verified QA/Bug reporter verifies solution worked. label Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected ICL Applies to IceLake platform P1 Blocker bugs or important features verified QA/Bug reporter verifies solution worked.
Projects
None yet
Development

No branches or pull requests

6 participants