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 <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Acked-by: Curtis Malainey <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent e85b1f5 commit 83f1b7f
1 file changed
+30
-0
lines changed| 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