Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: meson: g12a: add tohdmitx reset

Reset the g12a hdmi codec glue on probe. This ensure a sane startup state.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200221121146.1498427-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jerome Brunet and committed by
Mark Brown
22946f37 ac0a6899

+6
+6
sound/soc/meson/g12a-tohdmitx.c
··· 8 8 #include <linux/module.h> 9 9 #include <sound/pcm_params.h> 10 10 #include <linux/regmap.h> 11 + #include <linux/reset.h> 11 12 #include <sound/soc.h> 12 13 #include <sound/soc-dai.h> 13 14 ··· 379 378 struct device *dev = &pdev->dev; 380 379 void __iomem *regs; 381 380 struct regmap *map; 381 + int ret; 382 + 383 + ret = device_reset(dev); 384 + if (ret) 385 + return ret; 382 386 383 387 regs = devm_platform_ioremap_resource(pdev, 0); 384 388 if (IS_ERR(regs))