Commit 6ada9f1
committed
ASoC: soc-pcm: Use conditional PCM hardware parameter initialization
Component drivers can prepare snd_pcm_hardware struct based on the hardware
capabilities which information should not be discarded.
Only touch the rates, channels_max and formats if they were left to 0,
otherwise keep the provided configuration intact for the parameter cross
checking decision.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>1 parent 30fdccc commit 6ada9f1
1 file changed
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
581 | 598 | | |
582 | 599 | | |
583 | 600 | | |
| |||
626 | 643 | | |
627 | 644 | | |
628 | 645 | | |
629 | | - | |
| 646 | + | |
630 | 647 | | |
631 | 648 | | |
632 | 649 | | |
| |||
1738 | 1755 | | |
1739 | 1756 | | |
1740 | 1757 | | |
1741 | | - | |
1742 | 1758 | | |
1743 | 1759 | | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
| 1760 | + | |
1748 | 1761 | | |
1749 | 1762 | | |
1750 | 1763 | | |
| |||
0 commit comments