diff options
author | Pavel Dobias <dobias@2n.cz> | 2020-08-27 12:25:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-27 15:43:24 +0200 |
commit | a11ffbbac9cc7fdd73b01a0d8227ef8a1d2b95da (patch) | |
tree | 0ef474828f21638895dae677a0bec411a436eadf /sound/soc/codecs/max9867.h | |
parent | ASoC: AMD: Clean kernel log from deferred probe error messages (diff) | |
download | linux-a11ffbbac9cc7fdd73b01a0d8227ef8a1d2b95da.tar.xz linux-a11ffbbac9cc7fdd73b01a0d8227ef8a1d2b95da.zip |
ASoC: max9867: shutdown codec when changing filter type
Changing filter type without disabling codec results in filter
malfunction. Disable codec when changing filter type.
Signed-off-by: Pavel Dobias <dobias@2n.cz>
Link: https://lore.kernel.org/r/20200827102528.29677-1-dobias@2n.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max9867.h')
-rw-r--r-- | sound/soc/codecs/max9867.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/max9867.h b/sound/soc/codecs/max9867.h index 3092c3b99075..b6b880631b13 100644 --- a/sound/soc/codecs/max9867.h +++ b/sound/soc/codecs/max9867.h @@ -44,7 +44,8 @@ #define MAX9867_IFC1B_PCLK_4 0x05 #define MAX9867_IFC1B_PCLK_8 0x06 #define MAX9867_IFC1B_PCLK_16 0x07 -#define MAX9867_CODECFLTR 0x0a +#define MAX9867_CODECFLTR 0x0a +#define MAX9867_CODECFLTR_MODE (1<<7) #define MAX9867_SIDETONE 0x0b #define MAX9867_DACLEVEL 0x0c #define MAX9867_ADCLEVEL 0x0d @@ -58,6 +59,7 @@ #define MAX9867_MICCONFIG 0x15 #define MAX9867_MODECONFIG 0x16 #define MAX9867_PWRMAN 0x17 +#define MAX9867_PWRMAN_SHDN (1<<7) #define MAX9867_REVISION 0xff #define MAX9867_CACHEREGNUM 10 |