Skip to content

dmic: Use the correct 24 bit conversion function - #7573

Merged
ranj063 merged 1 commit into
thesofproject:mainfrom
softwarecki:dmic-24-fix
May 9, 2023
Merged

ranj063 merged 1 commit into
thesofproject:mainfrom
softwarecki:dmic-24-fix

Conversation

@softwarecki

Copy link
Copy Markdown
Collaborator

The DMIC interface places 24-bit samples on the most significant bits of a 32-bit container. The correct conversion function for this gateway was used.

The DMIC interface places 24-bit samples on the most significant bits of
a 32-bit container. The correct conversion function for this gateway was
used.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
ipc4_gtw_all & ~(ipc4_gtw_link | ipc4_gtw_alh | ipc4_gtw_host), ipc4_bidirection,
audio_stream_copy},
ipc4_gtw_all & ~(ipc4_gtw_link | ipc4_gtw_alh | ipc4_gtw_host | ipc4_gtw_dmic),
ipc4_bidirection, audio_stream_copy},

@ranj063 ranj063 May 8, 2023 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ipc4_gtw_all & ~(ipc4_gtw_link | ipc4_gtw_alh | ipc4_gtw_host | ipc4_gtw_dmic)
Isnt this a bit convoluted? If we want to exclude all but ssp, why not just change it tp ipc4_gtw_ssp instead?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

audio_stream_copy() should be called for ipc4_gtw_none case. ipc4_gtw_ssp probably should be handled the same way as ipc4_gtw_link and ipc4_gtw_alh, however, not 100% sure. So probably additional fix is needed for SSP (and could be another PR). This one fixes DMIC.

@ranj063 ranj063 May 8, 2023 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@serhiy-katsyuba-intel thats the other problem I have. TOday we define ipc4_gtw_all as BIT(6) -1 which means all includes none as well. It should really be BIT(6) - 2. Then you can modifythis check to include the none and ssp only

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

JUst to clarify I understand this change fixes the DMIC issue and we need to fix it. But I think we should fix it properly so there's no confusion in the future

@ranj063
ranj063 merged commit bf397bf into thesofproject:main May 9, 2023
@softwarecki
softwarecki deleted the dmic-24-fix branch February 19, 2026 16:17
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.

7 participants