Skip to content

Conversation

@serhiy-katsyuba-intel
Copy link
Contributor

This reverts commit 8d166a4.

This restores working DMIC functionality on Windows platform broken by #6668.

ATTENTION: This will break DMIC1 (DMIC with DAI index 1) functionality on Linux platform, DMIC0 should still work fine! Non working DMIC1 should be fixed on Linux driver side, not this firmware.

Signed-off-by: Serhiy Katsyuba serhiy.katsyuba@intel.com

@serhiy-katsyuba-intel serhiy-katsyuba-intel changed the title Revert "Audio: Copier: Add missing DMIC DAI index mapping to create_dai() Revert "Audio: Copier: Add missing DMIC DAI index mapping to create_dai()" Dec 21, 2022
@juimonen
Copy link

I think the "fix" would be to extract the least significant 8 bits and use that as dai_index. The node_id can have other bits set in it from kernel side.

@serhiy-katsyuba-intel
Copy link
Contributor Author

I think the "fix" would be to extract the least significant 8 bits and use that as dai_index. The node_id can have other bits set in it from kernel side.

dai_index comes from node_id.f.v_index, it's 8 bit:
dai_index[dai_count - 1] = node_id.f.v_index;

@juimonen
Copy link

yes correct. I'll make the corresponding kernel PR.

This reverts commit 8d166a4.

This restores working DMIC functionality on Windows platform broken
by thesofproject#6668.

ATTENTION: This will break DMIC1 (DMIC with DAI index 1) functionality
on Linux platform, DMIC0 should still work fine!
Non working DMIC1 should be fixed on Linux driver side, not this firmware.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
@lgirdwood
Copy link
Member

@ujfalusi @plbossart fyi - how long has kernel had the wrong ID mapping ?
@serhiy-katsyuba-intel @juimonen the FW PR which introduced this was 2 days ago, so I dont think we have any legacy issues to block, this revert on FW side.

Copy link
Member

@abonislawski abonislawski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me we can go directly with this PR, abi should be used if something needs to be synced
Unfortunately there was no DMIC tests in mtl CI when 6668 merged

@serhiy-katsyuba-intel
Copy link
Contributor Author

@ujfalusi @plbossart fyi - how long has kernel had the wrong ID mapping ?

Since March 2022. However, the problem affects only DMIC1. DMIC0 works fine with and without #6668. DMIC1 seems was not tested on Linux until recently.

@juimonen
Copy link

@lgirdwood no I don't think so. I made thesofproject/linux#4114, that should work with this revert. Should be tested however.

@ranj063
Copy link
Collaborator

ranj063 commented Dec 21, 2022

@lgirdwood no I don't think so. I made thesofproject/linux#4114, that should work with this revert. Should be tested however.

@libinyang Could you please test with this revert and the linux PR from @juimonen. Thanks!

@lgirdwood
Copy link
Member

ok, @libinyang pls let us know if this PR and the kernel PR work for you.

@lgirdwood
Copy link
Member

@libinyang ping - good to merge ? @mengdonglin fyi.

@wszypelt
Copy link

wszypelt commented Jan 3, 2023

@libinyang, @lgirdwood good to merge?

@lgirdwood lgirdwood merged commit 3b65313 into thesofproject:main Jan 4, 2023
@lgirdwood
Copy link
Member

@libinyang pls shout if there are any issues and we can address

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants