From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2F4C3223DD6; Tue, 30 Sep 2025 15:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245247; cv=none; b=fNJTT8o1ZGGfXY/UW/AFgLIU7hmD+66mo/ySq5xPPgl2kTkT4FLYKPM/a3f2qv1HYY6/rUP7Qfuc0OeFxgJbx+aMKYxYFle+XL0C11NXd05ldFcwk5kXKq7xOogixKo9jtHDdy19EO2SsLaIIw/wpplEKMfhgXhnPgy4ytR9t3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245247; c=relaxed/simple; bh=bQTpliJ9Or/EuIloP7LzC1107D6pX8LGoMSOxQeSBpk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gwC6zw2UZz0pARtnGnemzkLa3ruuDZ0cXgFw97f8/a7quX5L+Lc8vBbL+iSX8YEnA+NXlG34i5NQlarvhD9upIFOoO1wj9WLIeEOThNyDAKH7rRSheYXUopK8vxGifJgsAz5Hv+ItElgkZqX7yIjeAzwtyi2Sp/LyBHWWKI0/jk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JEw6b+y9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JEw6b+y9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E7BCC4CEF0; Tue, 30 Sep 2025 15:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759245244; bh=bQTpliJ9Or/EuIloP7LzC1107D6pX8LGoMSOxQeSBpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JEw6b+y9vSIds+SCF2HSBCmotAdRm9+XU+7PBk4hC6hfCDgvQcrRJkahJgNeJw0gE gIN4dQJE3vUSL0hBTjYV6kTvthG3SJ2Qh0ijPDdypvC9+egFBa3GWIFuaxDb9eoX0H HcakbMk5uurplG37t606/kQQdtUOx62+7sBhyptk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Cristian Ciocaltea , Takashi Iwai , Sasha Levin Subject: [PATCH 5.15 110/151] ALSA: usb-audio: Fix build with CONFIG_INPUT=n Date: Tue, 30 Sep 2025 16:47:20 +0200 Message-ID: <20250930143831.989159025@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143827.587035735@linuxfoundation.org> References: <20250930143827.587035735@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai [ Upstream commit d0630a0b80c08530857146e3bf183a7d6b743847 ] The recent addition of DualSense mixer quirk relies on the input device handle, and the build can fail if CONFIG_INPUT isn't set. Put (rather ugly) workarounds to wrap with IS_REACHABLE() for avoiding the build error. Fixes: 79d561c4ec04 ("ALSA: usb-audio: Add mixer quirk for Sony DualSense PS5") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202506130733.gnPKw2l3-lkp@intel.com/ Reviewed-by: Cristian Ciocaltea Link: https://patch.msgid.link/20250613081543.7404-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/usb/mixer_quirks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 9b59d90ab8ca5..177f64107bb1e 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -528,6 +528,7 @@ static int snd_emu0204_controls_create(struct usb_mixer_interface *mixer) &snd_emu0204_control, NULL); } +#if IS_REACHABLE(CONFIG_INPUT) /* * Sony DualSense controller (PS5) jack detection * @@ -784,6 +785,7 @@ static int snd_dualsense_controls_create(struct usb_mixer_interface *mixer) return snd_dualsense_jack_create(mixer, "Headset Mic Jack", false); } +#endif /* IS_REACHABLE(CONFIG_INPUT) */ /* ASUS Xonar U1 / U3 controls */ @@ -3630,10 +3632,12 @@ int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer) err = snd_emu0204_controls_create(mixer); break; +#if IS_REACHABLE(CONFIG_INPUT) case USB_ID(0x054c, 0x0ce6): /* Sony DualSense controller (PS5) */ case USB_ID(0x054c, 0x0df2): /* Sony DualSense Edge controller (PS5) */ err = snd_dualsense_controls_create(mixer); break; +#endif /* IS_REACHABLE(CONFIG_INPUT) */ case USB_ID(0x0763, 0x2030): /* M-Audio Fast Track C400 */ case USB_ID(0x0763, 0x2031): /* M-Audio Fast Track C400 */ -- 2.51.0