Merge branch 'asoc-4.17' into asoc-4.18 for compress dependencies
This commit is contained in:
@@ -513,7 +513,7 @@ static void remove_widget(struct snd_soc_component *comp,
|
||||
*/
|
||||
if (dobj->widget.kcontrol_type == SND_SOC_TPLG_TYPE_ENUM) {
|
||||
/* enumerated widget mixer */
|
||||
for (i = 0; i < w->num_kcontrols; i++) {
|
||||
for (i = 0; w->kcontrols != NULL && i < w->num_kcontrols; i++) {
|
||||
struct snd_kcontrol *kcontrol = w->kcontrols[i];
|
||||
struct soc_enum *se =
|
||||
(struct soc_enum *)kcontrol->private_value;
|
||||
@@ -530,7 +530,7 @@ static void remove_widget(struct snd_soc_component *comp,
|
||||
}
|
||||
} else {
|
||||
/* volume mixer or bytes controls */
|
||||
for (i = 0; i < w->num_kcontrols; i++) {
|
||||
for (i = 0; w->kcontrols != NULL && i < w->num_kcontrols; i++) {
|
||||
struct snd_kcontrol *kcontrol = w->kcontrols[i];
|
||||
|
||||
if (dobj->widget.kcontrol_type
|
||||
@@ -2600,7 +2600,7 @@ int snd_soc_tplg_component_remove(struct snd_soc_component *comp, u32 index)
|
||||
|
||||
/* match index */
|
||||
if (dobj->index != index &&
|
||||
dobj->index != SND_SOC_TPLG_INDEX_ALL)
|
||||
index != SND_SOC_TPLG_INDEX_ALL)
|
||||
continue;
|
||||
|
||||
switch (dobj->type) {
|
||||
|
Reference in New Issue
Block a user