Commit 6b66c71
ALSA: usb-audio: Fix build with CONFIG_INPUT=n
[ Upstream commit d0630a0 ]
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: 79d561c ("ALSA: usb-audio: Add mixer quirk for Sony DualSense PS5")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506130733.gnPKw2l3-lkp@intel.com/
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20250613081543.7404-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a9bed48 commit 6b66c71
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
| |||
787 | 788 | | |
788 | 789 | | |
789 | 790 | | |
| 791 | + | |
790 | 792 | | |
791 | 793 | | |
792 | 794 | | |
| |||
4222 | 4224 | | |
4223 | 4225 | | |
4224 | 4226 | | |
| 4227 | + | |
4225 | 4228 | | |
4226 | 4229 | | |
4227 | 4230 | | |
4228 | 4231 | | |
| 4232 | + | |
4229 | 4233 | | |
4230 | 4234 | | |
4231 | 4235 | | |
| |||
0 commit comments