Commit d2fd454
committed
ASoC: codecs: aw88399: Add hw_params callback for validation
Add minimal hw_params callback to:
- Log stream parameters (rate, width, channels) for debugging
- Validate sample rate matches topology (48kHz expected)
- Warn if unexpected configuration detected
The firmware/profile system handles actual I2S register configuration,
but this callback provides visibility and early warning of mismatches.
This addresses concerns about missing DAI ops that could cause
format/rate mismatches leading to distorted or no audio.
Related-to: thesofproject#8 - Missing DAI operations1 parent 4e85439 commit d2fd454
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1439 | 1465 | | |
1440 | 1466 | | |
| 1467 | + | |
1441 | 1468 | | |
1442 | 1469 | | |
1443 | 1470 | | |
| |||
0 commit comments