]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: move code from startup/shutdown hooks into pm_runtime hooks
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 21 Oct 2018 15:39:11 +0000 (08:39 -0700)
committerMark Brown <broonie@kernel.org>
Sun, 21 Oct 2018 15:46:32 +0000 (16:46 +0100)
commitf9d5527da8e7d73b542a6d1cb42e34a1742be45c
tree3ea68f9d5e370786dd9067ab3556256ebd6712aa
parentf50083dbac183f5432f0aa6925e833a0d4fc6257
ASoC: sun4i-i2s: move code from startup/shutdown hooks into pm_runtime hooks

startup() and shutdown() hooks are called for both substreams,
so stopping either substream when another is running breaks the
latter.

E.g. playback breaks if capture is stopped when playback is running.

Move code from startup() and shutdown() to resume() and suspend()
hooks respectively to fix this issue

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c