diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2016-11-04 18:26:54 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-04 11:42:58 -0600 |
commit | 2bea8f97d4c3aded4c71d72e8702aa7dbe9894cf (patch) | |
tree | a35b9a29b417621f790090f4942ff0b803541c92 /sound/soc/codecs/stac9766.h | |
parent | 355602eb5af91ff8ddda435f0f9e910f3b18c438 (diff) | |
download | linux-2bea8f97d4c3aded4c71d72e8702aa7dbe9894cf.tar.bz2 |
ASoC: stac9766: Remove register paging support
The AC'97 standard defines paging support for the register range 0x60-0x6f.
Meaning registers in this window are mapped to different physical registers
depending on the setting of the page select register (0x24).
The stac9766 implements support for switching between page 0 and page 1
depending on the addressed register. But the driver never accesses any
registers from page 1, in addition page 0 is the page selected by default.
Considering the development history it is unlikely that the driver will see
any new features that require paging support. Removing the paging support
makes transitioning the driver to regmap a bit more straight forward.
The default register value table is update to contain the values from page
0, rather than page 1.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/stac9766.h')
-rw-r--r-- | sound/soc/codecs/stac9766.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/stac9766.h b/sound/soc/codecs/stac9766.h index cb0d5505d571..e35cee82f416 100644 --- a/sound/soc/codecs/stac9766.h +++ b/sound/soc/codecs/stac9766.h @@ -5,9 +5,8 @@ #ifndef _STAC9766_H #define _STAC9766_H -#define AC97_STAC_PAGE0 0x1000 -#define AC97_STAC_DA_CONTROL (AC97_STAC_PAGE0 | 0x6A) -#define AC97_STAC_ANALOG_SPECIAL (AC97_STAC_PAGE0 | 0x6E) +#define AC97_STAC_DA_CONTROL 0x6A +#define AC97_STAC_ANALOG_SPECIAL 0x6E #define AC97_STAC_STEREO_MIC 0x78 #endif |