]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2770: Fix calling reset in probe
authorDan Murphy <dmurphy@ti.com>
Fri, 18 Sep 2020 19:05:40 +0000 (14:05 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 19:40:52 +0000 (20:40 +0100)
commitb4835220b19e8dd2b8d4749555205a3f39b6edc1
tree2a3888e41a6423daa96506ddfe09644f1df1784b
parenta0133873e3de36b3c73c4bda97dfb0d9cbf175a1
ASoC: tas2770: Fix calling reset in probe

tas2770_reset is called during i2c probe. The reset calls the
snd_soc_component_write which depends on the tas2770->component being
available. The component pointer is not set until codec_probe so move
the reset to the codec_probe after the pointer is set.

Fixes: 8c41a7cb58973 ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200918190548.12598-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2770.c