]> git.alsa-project.org Git - alsa-utils.git/commit
Topology: NHLT: Intel: Fix mono DMIC configure for MTL platform
authorSeppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Wed, 8 Jan 2025 11:56:46 +0000 (13:56 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 7 Feb 2025 10:27:45 +0000 (11:27 +0100)
commit014b7829fcbe9651e916a10b9e39259eea3c8f09
tree72131d7ac125dd0bed63fb1d5c97082cc0db6f86
parent242e00573ab0e8d40c95f9a8a19dc0085379d171
Topology: NHLT: Intel: Fix mono DMIC configure for MTL platform

This change fixes the blob generator for mono microphone
configuration. As difference to previous platforms the FIFO packer
mono/stereo mode set up in OUTCONTROLx IPM_SOURCE_MODE bit-field.
The previous code version hard-codes the FIFO packer to stereo
mode without support for mono.

As a fix if only one microphone is enabled for dmic0 or dmic1,
then the corresponding IPM_SOURCE_MODE in OUTCONTROL0 or OUTCONTROL1
is set to 0. Otherwise it is set to 1 for stereo mode.

Closes: https://github.com/alsa-project/alsa-utils/pull/286
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/nhlt/intel/dmic/dmic-process.c