Commit 531c255
committed
Audio: Volume: Fix the ramping and ZC mode align
This patch fixes an issue where processing smaller parts of
the period can break the data align constraints. The frames
count value from zc_get() function or from cd->vol_ramp_frames
is rounded up to next align compatible frames count.
The failure with align constraints appeared as glitches in
audio with some 44.1 kHz family sample rates.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 07815d2 commit 531c255
1 file changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
| |||
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
575 | 582 | | |
576 | | - | |
577 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
578 | 588 | | |
579 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
580 | 596 | | |
581 | 597 | | |
582 | 598 | | |
| |||
0 commit comments