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.
Unified · Split
| @@ -183,6 +183,7 @@ static struct platform_driver atmel_asoc_wm8904_driver = { · 182 unmodified lines | ||
| 183 | 183 | .driver = { |
| 184 | 184 | .name = "atmel-wm8904-audio", |
| 185 | 185 | .of_match_table = of_match_ptr(atmel_asoc_wm8904_dt_ids), |
| 186 | + .pm = &snd_soc_pm_ops, | |
| 186 | 187 | }, |
| 187 | 188 | .probe = atmel_asoc_wm8904_probe, |
| 188 | 189 | .remove = atmel_asoc_wm8904_remove, |