From nobody Wed Oct 8 00:28:39 2025 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57B332D3A6C for ; Thu, 3 Jul 2025 22:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751583217; cv=none; b=nHi8k3IGEZbabs2KnYJcqsxnYCMZT1CX0XkD3V6oHby/CoHbwbwJiwkqKsc44Fa7NlmWvxogjOzn/v+Poc4vA/QV/9KO9AO+vxJytBXLeoOc01pIpADiMQDSMRk2hklD/XvSzjs4k0+3BtYJtBIjQPdKqyvjMSiZtJ9ROO7EYkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751583217; c=relaxed/simple; bh=ULQqKoYh2RjDI9TSKSxCqwj9ka7ofVBZbeuB6/CEVgU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j7zaq1QOwgByfJNgkNSx+dLRKq+q+6T2wGA7K9HEOwTw0VC4Ds8YqYa4qbBoRRlEwjFFCDsxARhyKKxmRattJf9UDbAxQ49QvSlyLbq0T1kLMNEiVAxbFBjMbvXuWDNqoiA2G63/ojvH/16PcWYoDW5dc9Fwu393N+FBW9lDLrg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=urFHdEeZ; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="urFHdEeZ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1751583213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oIRglgn/9ldYHUc7IhNCSY6KbnwH4OkGlYmr7LfN2B8=; b=urFHdEeZN0hDQWUseEy8s44kzzllwidfjnHyb36vx5P+MKIsquEq9KFnGgf4vuudfvv1Bv Xmx5kX6L9mSIhuNLS/MuIWwQu/JaeIBVRjA5CeRiUHmTF095dqBHlYnA/eYhOFJ55cTanu dPSjDQvyUIUL7E95JipuXeoxUE1qhb4= From: Thorsten Blum To: Jaroslav Kysela , Takashi Iwai , Julia Lawall , "Dr. David Alan Gilbert" , Wentao Liang Cc: Thorsten Blum , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda: Remove old commented out sanity check Date: Fri, 4 Jul 2025 00:52:36 +0200 Message-ID: <20250703225238.308359-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The sanity check has been commented out for more than 12 years since commit d5657ec9f4ad ("ALSA: hda - Disable the sanity check in snd_hda_add_pincfg()") - remove it. Signed-off-by: Thorsten Blum --- sound/pci/hda/hda_codec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 5508381a1833..cb72e9655c8a 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -479,15 +479,6 @@ int snd_hda_add_pincfg(struct hda_codec *codec, struct= snd_array *list, { struct hda_pincfg *pin; =20 - /* the check below may be invalid when pins are added by a fixup - * dynamically (e.g. via snd_hda_codec_update_widgets()), so disabled - * for now - */ - /* - if (get_wcaps_type(get_wcaps(codec, nid)) !=3D AC_WID_PIN) - return -EINVAL; - */ - pin =3D look_up_pincfg(codec, list, nid); if (!pin) { pin =3D snd_array_new(list); --=20 2.50.0