From: Weidong Wang <[email protected]>
An error code should be return when the re is greater
than the maximum value or less than the minimum value
The value of vsense_select should be either 32
or 0 in both cases, so modify the
AW88399_DEV_VDSEL_VSENSE macro to 32.
Weidong Wang (2):
ASoC: codecs: Modify the wrong judgment of re value
ASoC: codecs: Modify macro value error
sound/soc/codecs/aw88399.c | 4 ++--
sound/soc/codecs/aw88399.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
base-commit: fa7d0c17278644aa691f96d08bef8001b762f9cd
--
2.41.0
From: Weidong Wang <[email protected]>
The value of vsense_select should be either 32
or 0 in both cases, so modify the
AW88399_DEV_VDSEL_VSENSE macro to 32.
Signed-off-by: Weidong Wang <[email protected]>
---
sound/soc/codecs/aw88399.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/aw88399.h b/sound/soc/codecs/aw88399.h
index 8b3f1e101985..4f391099d0f2 100644
--- a/sound/soc/codecs/aw88399.h
+++ b/sound/soc/codecs/aw88399.h
@@ -522,7 +522,7 @@ enum {
enum {
AW88399_DEV_VDSEL_DAC = 0,
- AW88399_DEV_VDSEL_VSENSE = 1,
+ AW88399_DEV_VDSEL_VSENSE = 32,
};
enum {
--
2.41.0