Skip to content

Commit

Permalink
dai: intel: dmic: demote spurious LOG_ERR in dai_nhlt_get_clock_div()
Browse files Browse the repository at this point in the history
Fix the log level of two LOG_ERR() statements which should have always
been LOG_INF(). As confirmed by the author Adrian in zephyrproject-rtos#60172

Fixes commit 3fbaed4 ("dai: intel: ace: dmic: Refactor of
dai_nhlt_dmic_dai_params_get function")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
(cherry picked from commit 8042e73)
  • Loading branch information
marc-hb authored and kv2019i committed Mar 4, 2024
1 parent 684fe0d commit 3f063f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dai/intel/dmic/dmic_nhlt.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ static int dai_nhlt_get_clock_div(const struct dai_intel_dmic *dmic, const int p

val = dai_dmic_read(dmic, dmic_base[pdm] +
FIR_CHANNEL_REGS_SIZE * dmic->dai_config_params.dai_index + FIR_CONFIG);
LOG_ERR("pdm = %d, FIR_CONFIG = 0x%08X", pdm, val);
LOG_INF("pdm = %d, FIR_CONFIG = 0x%08X", pdm, val);

p_mfir = FIELD_GET(FIR_CONFIG_FIR_DECIMATION, val) + 1;

rate_div = p_clkdiv * p_mcic * p_mfir;
LOG_ERR("dai_index = %d, rate_div = %d, p_clkdiv = %d, p_mcic = %d, p_mfir = %d",
LOG_INF("dai_index = %d, rate_div = %d, p_clkdiv = %d, p_mcic = %d, p_mfir = %d",
dmic->dai_config_params.dai_index, rate_div, p_clkdiv, p_mcic, p_mfir);

if (!rate_div) {
Expand Down

0 comments on commit 3f063f2

Please sign in to comment.