Commit ce4ed6c
committed
ASoC: sdw_utils: return -EPROBE_DEFER if components are not registered yet
commit 42d9985 ("ASoC: core: Move all users to deferrable card binding")
converted the -EPROBE_DEFER return value of snd_soc_bind_card() to 0
which results in the machine driver probe return 0 and will not be
called again when any component is not yet registered.
We get the right component name from the registered components
and use it in the dai links. It will lead to bind fail if the default
component name is used. Return -EPROBE_DEFER to allow the machine driver
probe again after the components are registered.
Suggested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>1 parent fcdd87e commit ce4ed6c
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | | - | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1633 | 1635 | | |
1634 | 1636 | | |
1635 | 1637 | | |
| |||
2021 | 2023 | | |
2022 | 2024 | | |
2023 | 2025 | | |
2024 | | - | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
2025 | 2029 | | |
2026 | 2030 | | |
2027 | 2031 | | |
| |||
2121 | 2125 | | |
2122 | 2126 | | |
2123 | 2127 | | |
| 2128 | + | |
| 2129 | + | |
2124 | 2130 | | |
2125 | 2131 | | |
2126 | 2132 | | |
| |||
0 commit comments