소스 검색

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

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

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

@@ -342,6 +342,8 @@ static int ml26124_hw_params(struct snd_pcm_substream *substream,
 	struct ml26124_priv *priv = snd_soc_codec_get_drvdata(codec);
 	int i = get_coeff(priv->mclk, params_rate(hw_params));
 
+	if (i < 0)
+		return i;
 	priv->substream = substream;
 	priv->rate = params_rate(hw_params);