Merge "asoc: Return the correct clk_div value"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
786300e8a0
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
@@ -509,7 +509,7 @@ static u8 bolero_dmic_clk_div_get(struct snd_soc_component *component,
|
|||||||
|
|
||||||
if (priv->macro_params[macro].clk_div_get) {
|
if (priv->macro_params[macro].clk_div_get) {
|
||||||
ret = priv->macro_params[macro].clk_div_get(component);
|
ret = priv->macro_params[macro].clk_div_get(component);
|
||||||
if (ret > 0)
|
if (ret >= 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -472,7 +472,7 @@ static u8 lpass_cdc_dmic_clk_div_get(struct snd_soc_component *component,
|
|||||||
|
|
||||||
if (priv->macro_params[macro].clk_div_get) {
|
if (priv->macro_params[macro].clk_div_get) {
|
||||||
ret = priv->macro_params[macro].clk_div_get(component);
|
ret = priv->macro_params[macro].clk_div_get(component);
|
||||||
if (ret > 0)
|
if (ret >= 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user