]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00142436-2 SGTL5000: Audio not work in 2.6.38 kernel
authorZeng Zhaoming <b32542@freescale.com>
Thu, 21 Apr 2011 00:06:29 +0000 (08:06 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:32:49 +0000 (08:32 +0200)
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 <b32542@freescale.com>
sound/soc/imx/imx-sgtl5000.c

index 4da55ad781bf0064afae5bf301ad8db094c3e148..82ee8eca86803218da130a7961c7d2da1e497601 100644 (file)
@@ -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;
 }