mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-dapm
This commit is contained in:
commit
f2e537425a
@ -813,13 +813,14 @@ static int dapm_new_mux(struct snd_soc_dapm_widget *w)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
path = list_first_entry(&w->sources, struct snd_soc_dapm_path,
|
||||
list_sink);
|
||||
if (!path) {
|
||||
if (list_empty(&w->sources)) {
|
||||
dev_err(dapm->dev, "ASoC: mux %s has no paths\n", w->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
path = list_first_entry(&w->sources, struct snd_soc_dapm_path,
|
||||
list_sink);
|
||||
|
||||
ret = dapm_create_or_share_mixmux_kcontrol(w, 0, path);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user