Commit 83f1b7f
ASoC: mediatek: mt8195: add sof be ops to check audio active
In MT8195 SOF design, both DSP and audio driver would access audio
registers. Before DSP accesses audio registers, audio power and clock
should be enabled. DSP will hang up if DSP access audio register but
audio power and clock are disabled. Therefore, we add audio pm runtime
active checking before accessing audio registers in SOF BE's callback
hw_params function to avoid this situation.
Signed-off-by: YC Hung <yc.hung@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20221209031053.8444-1-yc.hung@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent e85b1f5 commit 83f1b7f
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
636 | 662 | | |
637 | 663 | | |
638 | 664 | | |
| |||
1272 | 1298 | | |
1273 | 1299 | | |
1274 | 1300 | | |
| 1301 | + | |
1275 | 1302 | | |
1276 | 1303 | | |
1277 | 1304 | | |
1278 | 1305 | | |
1279 | 1306 | | |
1280 | 1307 | | |
| 1308 | + | |
1281 | 1309 | | |
1282 | 1310 | | |
1283 | 1311 | | |
1284 | 1312 | | |
1285 | 1313 | | |
1286 | 1314 | | |
| 1315 | + | |
1287 | 1316 | | |
1288 | 1317 | | |
1289 | 1318 | | |
1290 | 1319 | | |
1291 | 1320 | | |
1292 | 1321 | | |
| 1322 | + | |
1293 | 1323 | | |
1294 | 1324 | | |
1295 | 1325 | | |
| |||
0 commit comments