From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932351AbdIHQqU (ORCPT ); Fri, 8 Sep 2017 12:46:20 -0400 Received: from mail-yw0-f176.google.com ([209.85.161.176]:35058 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932183AbdIHQqS (ORCPT ); Fri, 8 Sep 2017 12:46:18 -0400 X-Google-Smtp-Source: ADKCNb7kNuMK0SVBtzQmcq3iDT6YmHDvzqqvJBpkNO6kG2JtX36JhW8Cmruvicvpbeg6Os+j1Y2NnQ== Date: Fri, 8 Sep 2017 18:46:12 +0200 From: Krzysztof Kozlowski To: Jaechul Lee Cc: Sangbeom Kim , Sylwester Nawrocki , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, galaxyra@gmail.com, Chanwoo Choi Subject: Re: [PATCH v2 3/3] ASoC: samsung: Fix invalid argument when devm_gpiod_get is called Message-ID: <20170908164612.5r6mkzul3cts7m56@kozik-lap> References: <20170906010415.26952-1-jcsing.lee@samsung.com> <20170906010415.26952-4-jcsing.lee@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170906010415.26952-4-jcsing.lee@samsung.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 06, 2017 at 10:04:15AM +0900, Jaechul Lee wrote: > devm_gpiod_get is called with GPIOF_OUT_INIT_LOW but the function doesn't > allow the parameters. Unluckily, GPIOF_OUT_INIT_LOW is same value as > GPIOD_ASIS and gpio direction isn't set properly. > > Muted stream comes up when I try recording some sounds on TM2. mic-bias > gpiod state can't be changed because the gpiod is created with the invalid > parameter. The gpio should be set GPIOD_OUT_HIGH. > > Fixes: 1bfbc260a5b4 ("ASoC: samsung: Add machine driver for Exynos5433 based TM2 board") > Signed-off-by: Jaechul Lee > --- > sound/soc/samsung/tm2_wm5110.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof