Commit 4b34308
Codrin Ciubotariu
ASoC: atmel: mchp-i2s-mcc: fix period size calculation
The size of the period is used to compute the maxburst. However,
snd_pcm_lib_period_bytes() is 0 because the runtime HW parameters are
computed after the hw_params() callbacks are used. Because of this, to
compute the period size we use params_*() functions.
Fixes: 2c1ab8c ("ASoC: atmel: mchp-i2s-mcc: calculate maxburst based on period size")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>1 parent 5bfd7f4 commit 4b34308
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
| 526 | + | |
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| |||
533 | 534 | | |
534 | 535 | | |
535 | 536 | | |
536 | | - | |
| 537 | + | |
537 | 538 | | |
538 | | - | |
| 539 | + | |
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
| |||
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | | - | |
| 648 | + | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
| |||
0 commit comments