]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: atmel_wm8904: add snd_soc_pm_ops
authorSongjun Wu <songjun.wu@atmel.com>
Tue, 22 Dec 2015 06:06:42 +0000 (14:06 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:04:45 +0000 (00:04 +0000)
Sometimes the audio play can not be resumed after it is
suspended. Add snd_soc_pm_ops to execute power management
operations, then this issue is fixed.

Signed-off-by: Songjun Wu <songjun.wu@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel_wm8904.c

index 1933bcd46cca043d68db0ecc771124da37416908..fdd28ed3e0b9ec3d6c80e7081dd03b408472f45b 100644 (file)
@@ -183,6 +183,7 @@ static struct platform_driver atmel_asoc_wm8904_driver = {
        .driver = {
                .name = "atmel-wm8904-audio",
                .of_match_table = of_match_ptr(atmel_asoc_wm8904_dt_ids),
+               .pm             = &snd_soc_pm_ops,
        },
        .probe = atmel_asoc_wm8904_probe,
        .remove = atmel_asoc_wm8904_remove,