ASoC: es8316: fix register sync error in suspend/resume tests
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 22 Sep 2022 09:59:12 +0000 (11:59 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Sep 2022 11:33:12 +0000 (12:33 +0100)
commit6de0b0292b548010b09917e8cdfc337a6dcf67ce
tree42d3180b93838f9e9bdc94071c1c2eba9b94ba29
parent0a0342ede303fc420f3a388e1ae82da3ae8ff6bd
ASoC: es8316: fix register sync error in suspend/resume tests

The SOF CI tests report failures with the following error thrown

kernel: es8316 i2c-ESSX8336:00: Unable to sync registers 0x0-0x1. -121

ES8336 only supports I2C read/write one byte a time, so we do need to
set the .use_single_read and .use_single_write flags to avoid this
sync issue.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: FRED OH <fred.oh@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220922095912.27010-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8316.c