ASoC: ak4458: Add support for AK4497
authorDaniel Baluta <daniel.baluta@nxp.com>
Fri, 4 Jan 2019 16:27:03 +0000 (16:27 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 16:46:37 +0000 (16:46 +0000)
commitee6047b82888148e688e46f17017cae8e088b246
treed1885c7857b599d95a9311536cd0755e6d6254f7
parentaa07e38b0ae9338e34cf2b8df2259ff6ff6e843f
ASoC: ak4458: Add support for AK4497

AK4497 is a 32-bit 2ch DAC and has the same register
map as AK4458 with few exceptions:

* AK4497 has one more register at the end of register space
  DFS_READ which is a read only register that allows users
  to read FS Auto Detection mode. We currently do not use
  this register so we use the same regmap structure as for ak4458.

* Because AK4458 is an 8ch DAC there are some fields that are
  only used by AK4458 and marked as reserved for AK4497, so for
  this reason we need to have a distinct set of controls, widgets
  and routes.

Datasheet for AK4497 is at:
https://www.akm.com/akm/en/file/ev-board-manual/AK4497EQ.pdf

Datasheet for AK4458 is at:
https://www.akm.com/akm/en/file/datasheet/AK4458VN.pdf

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4458.c