From d1d57e4e82a89650b8a01120b0147b3c4b1bcff4 Mon Sep 17 00:00:00 2001 From: ardon Date: Sat, 25 Aug 2018 15:12:13 +0800 Subject: [PATCH] fix machine hw param fail --- sound/soc/sunxi/sunxi-snddaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sunxi/sunxi-snddaudio.c b/sound/soc/sunxi/sunxi-snddaudio.c index 6621c234..b050a561 100755 --- a/sound/soc/sunxi/sunxi-snddaudio.c +++ b/sound/soc/sunxi/sunxi-snddaudio.c @@ -95,7 +95,7 @@ static int sunxi_snddaudio_hw_params(struct snd_pcm_substream *substream, if (ret < 0) { dev_warn(card->dev, "codec dai set fmt failed\n"); - return ret; + //return ret; } /* set system clk div */ @@ -107,7 +107,7 @@ static int sunxi_snddaudio_hw_params(struct snd_pcm_substream *substream, ret = snd_soc_dai_set_clkdiv(codec_dai, 0, clk_div); if (ret < 0) { dev_warn(card->dev, "codec_dai set clkdiv failed\n"); - return ret; + //return ret; } return 0; }