From: Zeng Zhaoming Date: Thu, 21 Apr 2011 00:06:29 +0000 (+0800) Subject: ENGR00142436-2 SGTL5000: Audio not work in 2.6.38 kernel X-Git-Tag: v3.0.35-fsl~2375 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be1be1bb4f33d762cf9e8dcbd358a42b3d8387ae;p=karo-tx-linux.git ENGR00142436-2 SGTL5000: Audio not work in 2.6.38 kernel If platform not provide headphone status detect gpio, should not failed the audio subsystem. Fix it by complains with a warning. Signed-off-by: Zeng Zhaoming --- diff --git a/sound/soc/imx/imx-sgtl5000.c b/sound/soc/imx/imx-sgtl5000.c index 4da55ad781bf..82ee8eca8680 100644 --- a/sound/soc/imx/imx-sgtl5000.c +++ b/sound/soc/imx/imx-sgtl5000.c @@ -264,10 +264,8 @@ static int imx_3stack_sgtl5000_init(struct snd_soc_pcm_runtime *rtd) ret = snd_soc_jack_add_gpios(&hs_jack, ARRAY_SIZE(hs_jack_gpios), hs_jack_gpios); - if (ret) { - printk(KERN_ERR "failed to call snd_soc_jack_add_gpios\n"); - return ret; - } + if (ret) + printk(KERN_WARNING "failed to call snd_soc_jack_add_gpios\n"); return 0; }