Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4301581ybl; Mon, 9 Dec 2019 08:35:19 -0800 (PST) X-Google-Smtp-Source: APXvYqy7fxmM0KC3Q1IAZTeTqmCU+OBWKbl69TBwaWQsgDnxuzsrU1lch1seYyg1qOf9QxSiq4qd X-Received: by 2002:a05:6830:1bf1:: with SMTP id k17mr751917otb.101.1575909319521; Mon, 09 Dec 2019 08:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575909319; cv=none; d=google.com; s=arc-20160816; b=dB4qp0lzvFoTRqYAcJdV6el21c3gtrAnBp7V4zZmSQKTuF7CpxbF0IQG3EEZedFneh qzFP4tp1Xg2qSUGUknr9Ekkrp5bLLtSUXz+nCWUoYpEzr+aFmC/ZELnlepVXbdOj7DCG t1cBFKumRGMeleSLDQnB5TSPcGJAYQmNu4PEl1a13vwmcSpB0L1W4yD+6aw8guk0Nspn 9ZvGulwEzqCA4PxVjMmBbRJS6Z8/A8mrtEX3lgAOjLJxsWed9up1MqqsHCCPHaR359DC Wep6toX0vDLqnjjxbIKOARdJ1PsBaI2Nk7CNbvPgJHvk/38ZZlhPAMcxLhRF8kHYaJVr 0Bdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=c/VFh4IFdxpmtHizBtSihgrptYG6HfpDZvHofB2i8F8=; b=vr0SmoAOhmqV3bNBclbw7XTH4l7EFEyN6eLKa8xfb0kgMB09ZDXqSL8cWvR2cs+DeA T5j2JQuvi2XuYHVo0XftsFgPuZyvMaWxO4cD8NxJhXYmJrv7vt+s+Zi3h/MN6rwgBVpY E/kVQntH8ynOvqn6aRBfVHv2d3WzANsC8oMfpIFIZOAObbCFKMigRiYl6AMyrbVo26VL 67j+RbCKJt9/tI9bTc+fLqsjW7xyHluWj/q+QbWdu2h563VlmmbPd8/a/BFICgsokxs6 5jOCLiOlz8kuckLtXx+sEwjIWtM5c5I0H/3eKXE66/D39z9WsrIaStqn7BFavnmpmnHq 7isg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si101201otf.76.2019.12.09.08.35.06; Mon, 09 Dec 2019 08:35:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbfLIQdv (ORCPT + 99 others); Mon, 9 Dec 2019 11:33:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:60202 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726674AbfLIQdt (ORCPT ); Mon, 9 Dec 2019 11:33:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 80CF4AC2C; Mon, 9 Dec 2019 16:33:48 +0000 (UTC) Date: Mon, 09 Dec 2019 17:33:48 +0100 Message-ID: From: Takashi Iwai To: Chuhong Yuan Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda/ca0132 - add missed snd_hda_gen_parse_auto_config In-Reply-To: <20191209162119.14820-1-hslester96@gmail.com> References: <20191209162119.14820-1-hslester96@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Dec 2019 17:21:19 +0100, Chuhong Yuan wrote: > > It is found that all usages of snd_hda_parse_pin_defcfg() are followed > with snd_hda_gen_parse_auto_config() except here. > This should be a miss and needs to add the missed call. No, this will break things badly. CA0132 codec driver has own configurator, and the pincfg parser is called there because the initialization function requires the pincfg information for the digital audio pins. thanks, Takashi > > Signed-off-by: Chuhong Yuan > --- > sound/pci/hda/patch_ca0132.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c > index b7a1abb3e231..ea1187a13241 100644 > --- a/sound/pci/hda/patch_ca0132.c > +++ b/sound/pci/hda/patch_ca0132.c > @@ -24,6 +24,7 @@ > #include "hda_local.h" > #include "hda_auto_parser.h" > #include "hda_jack.h" > +#include "hda_generic.h" > > #include "ca0132_regs.h" > > @@ -8844,6 +8845,10 @@ static int patch_ca0132(struct hda_codec *codec) > if (err < 0) > goto error; > > + err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); > + if (err < 0) > + goto error; > + > return 0; > > error: > -- > 2.24.0 >