Unified · Split
| @@ -438,6 +438,8 @@ static int wm8996_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, · 437 unmodified lines | ||
| 438 | 438 | struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec); |
| 439 | 439 | int block = wm8996_get_retune_mobile_block(kcontrol->id.name); |
| 440 | 440 | |
| 441 | + if (block < 0) | |
| 442 | + return block; | |
| 441 | 443 | ucontrol->value.enumerated.item[0] = wm8996->retune_mobile_cfg[block]; |
| 442 | 444 | |
| 443 | 445 | return 0; |