asoc: codecs: Fix lpass_cdc_dmic_clk_div arg type

Update mode argument type from int to u32 to avoid
any potential data loss since input is also u32 type.

Change-Id: I9541a7da20d2a22a0066622736268adffde5adbf
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
This commit is contained in:
Matthew Rice
2022-03-28 12:00:18 -07:00
committed by Gerrit - the friendly Code Review server
parent 2e08677b22
commit 5be0a8ab7d

View File

@@ -464,7 +464,7 @@ void lpass_cdc_unregister_res_clk(struct device *dev)
EXPORT_SYMBOL(lpass_cdc_unregister_res_clk); EXPORT_SYMBOL(lpass_cdc_unregister_res_clk);
static u8 lpass_cdc_dmic_clk_div_get(struct snd_soc_component *component, static u8 lpass_cdc_dmic_clk_div_get(struct snd_soc_component *component,
int mode) u32 mode)
{ {
struct lpass_cdc_priv* priv = snd_soc_component_get_drvdata(component); struct lpass_cdc_priv* priv = snd_soc_component_get_drvdata(component);
int macro = (mode ? VA_MACRO : TX_MACRO); int macro = (mode ? VA_MACRO : TX_MACRO);