Skip to content

Commit

Permalink
Tools: Topology2: Add macros DMIC_CLK_MIN and DMIC_CLK_MAX
Browse files Browse the repository at this point in the history
The microphone min and max bus clock rates can be customized from
build when the macros are used. The minimum rate is increased
from 500 kHz to 1.2 MHz to be sure it works for all microphones. The
Rate can be dropped in topologies build per topology back to 500 kHz
with DMIC_CLK_MIN=500000.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu committed Mar 6, 2024
1 parent 418f6e7 commit 0d62b61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tools/topology/topology2/platform/intel/dmic-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ Define {
DMIC0_BITS 32
DMIC1_BITS 32
DMIC1_ENABLE "false"
DMIC_CLK_MIN 1200000
DMIC_CLK_MAX 4800000
}
8 changes: 4 additions & 4 deletions tools/topology/topology2/platform/intel/dmic-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Object.Dai.DMIC [
io_clk $DMIC_IO_CLK
sample_rate $DMIC0_RATE
fifo_word_length $DMIC0_BITS
clk_min 500000
clk_max 4800000
clk_min $DMIC_CLK_MIN
clk_max $DMIC_CLK_MAX
unmute_ramp_time_ms 200
# num_pdm_active should always set to 2 but depending on the number of DMIC's
# the mic's are enabled or disabled in each PDM.
Expand Down Expand Up @@ -43,8 +43,8 @@ Object.Dai.DMIC [
io_clk $DMIC_IO_CLK
sample_rate $DMIC1_RATE
fifo_word_length $DMIC1_BITS
clk_min 500000
clk_max 4800000
clk_min $DMIC_CLK_MIN
clk_max $DMIC_CLK_MAX
unmute_ramp_time_ms 200
# num_pdm_active should always set to 2 but depending on the number of DMIC's
# the mic's are enabled or disabled in each PDM.
Expand Down

0 comments on commit 0d62b61

Please sign in to comment.