소스 검색

Merge remote-tracking branch 'asoc/topic/wm8996' into asoc-next

Mark Brown 12 년 전
부모
커밋
71d0c3a876
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      sound/soc/codecs/wm8996.c

+ 2 - 0
sound/soc/codecs/wm8996.c

@@ -438,6 +438,8 @@ static int wm8996_get_retune_mobile_enum(struct snd_kcontrol *kcontrol,
 	struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec);
 	int block = wm8996_get_retune_mobile_block(kcontrol->id.name);
 
+	if (block < 0)
+		return block;
 	ucontrol->value.enumerated.item[0] = wm8996->retune_mobile_cfg[block];
 
 	return 0;