ASoC: mt6359: reduce log verbosity for optional DT properties
Subsystems (3)
PATCH 1/1 ASoC: mt6359: reduce log verbosity for optional DT properties
DT properties "dmic-mode" and "mic-type-X" are optional. Reduces the log verbosity and changes the message a bit to avoid misleading.
---
Inspired by https://www.spinics.net/lists/arm-kernel/msg872744.html.
sound/soc/codecs/mt6359.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
sound/soc/codecs/mt6359.c +11 -7
@@ -2754,7 +2754,8 @@ static int mt6359_parse_dt(struct mt6359_priv *priv) ret =of_property_read_u32 (np,"mediatek,dmic-mode" , &priv->dmic_one_wire_mode);if (ret) { -dev_warn (priv->dev,"%s() failed to read dmic-mode\n" , +dev_info (priv->dev, +"%s() failed to read dmic-mode, use default (0)\n" , __func__); priv->dmic_one_wire_mode =0 ; }
@@ -2762,24 +2763,27 @@ static int mt6359_parse_dt(struct mt6359_priv *priv) ret =of_property_read_u32 (np,"mediatek,mic-type-0" , &priv->mux_select[MUX_MIC_TYPE_0 ]);if (ret) { -dev_warn (priv->dev,"%s() failed to read mic-type-0\n" , - __func__); +dev_info (priv->dev, +"%s() failed to read mic-type-0, use default (%d)\n" , + __func__,MIC_TYPE_MUX_IDLE ); priv->mux_select[MUX_MIC_TYPE_0 ] =MIC_TYPE_MUX_IDLE ; } ret =of_property_read_u32 (np,"mediatek,mic-type-1" , &priv->mux_select[MUX_MIC_TYPE_1 ]);if (ret) { -dev_warn (priv->dev,"%s() failed to read mic-type-1\n" , - __func__); +dev_info (priv->dev, +"%s() failed to read mic-type-1, use default (%d)\n" , + __func__,MIC_TYPE_MUX_IDLE ); priv->mux_select[MUX_MIC_TYPE_1 ] =MIC_TYPE_MUX_IDLE ; } ret =of_property_read_u32 (np,"mediatek,mic-type-2" , &priv->mux_select[MUX_MIC_TYPE_2 ]);if (ret) { -dev_warn (priv->dev,"%s() failed to read mic-type-2\n" , - __func__); +dev_info (priv->dev, +"%s() failed to read mic-type-2, use default (%d)\n" , + __func__,MIC_TYPE_MUX_IDLE ); priv->mux_select[MUX_MIC_TYPE_2 ] =MIC_TYPE_MUX_IDLE ; }
Signature · 1 line
2.30.0.365.g02bc693789-goog
Mark Brown
maintainerQuoted 2 lines · Tzung-Bi Shih
DT properties "dmic-mode" and "mic-type-X" are optional. Reduces the log verbosity and changes the message a bit to avoid misleading.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mt6359: reduce log verbosity for optional DT properties
commit: 1ecebae4733d8971059f0c514741868ce19f5d24
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark