Skip to content

Commit 22946f3

Browse files
jbrun3tbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ac0a689 commit 22946f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/soc/meson/g12a-tohdmitx.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/module.h>
99
#include <sound/pcm_params.h>
1010
#include <linux/regmap.h>
11+
#include <linux/reset.h>
1112
#include <sound/soc.h>
1213
#include <sound/soc-dai.h>
1314

@@ -378,6 +379,11 @@ static int g12a_tohdmitx_probe(struct platform_device *pdev)
378379
struct device *dev = &pdev->dev;
379380
void __iomem *regs;
380381
struct regmap *map;
382+
int ret;
383+
384+
ret = device_reset(dev);
385+
if (ret)
386+
return ret;
381387

382388
regs = devm_platform_ioremap_resource(pdev, 0);
383389
if (IS_ERR(regs))

0 commit comments

Comments
 (0)