Received: by 10.192.165.148 with SMTP id m20csp524892imm; Wed, 25 Apr 2018 03:39:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/PzrHz9/XeYBWV7PIa3nNGbe/3ycDBgOCkjV3ja7piHHGlDBW6k5L0Ca0TowwpxijTNSB X-Received: by 2002:a17:902:8a8a:: with SMTP id p10-v6mr28757984plo.251.1524652771728; Wed, 25 Apr 2018 03:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524652771; cv=none; d=google.com; s=arc-20160816; b=tOX1YQqDpzHlYqjDdLYNcpytZaXByS58FTqq9c8f37VKBN58ODVkO6OFQBOoEGlvOF S1JgtzQ7lOkc5YG92Xxuq4S3F0d8DVo/uAgwbYy9NaBSB5sNwnxEG/htM9BEIAiySy3Y RFZWXkYyXV2k0lkvERwxIJf6F9Z1ywj6Q7gQD0UvQm2kGIle76TdY2KRtGhmC2eG0Dsz lPCqsYtEpzAyGvK6Lcv6AqBelQx/yNfSc1Hpx1SPyMbgz/yDZ2IRws1vL8p1VncDtEUd m/LVjDmDpPkJcmQNTEwylimBvmMf04XL35abFLU2G/SflFeH0GPczYdY9Xyw7vXdS3kk qK7w== 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:message-id:date:subject:cc:to:from :arc-authentication-results; bh=d4ckc3w1BxxEohKKQttekb/bvOOAhTt0ZDbmE1Eidwk=; b=FTSIG8HVS3oZm1Vgh/H8KIAwzWcsENolJsHi1qZfxxgmoyTzFfk4BRf8edZVdRXz+r QPIYLbrre1VGbkYaD1RxAWH4Z9lnW6SXWI3niZrV0KlmgX3Zc6Ht07T9HNxm+8658upY CSNJ7nziP102Sxn2rLFLTmedpkCAUAo6etcnRAAlyK46elVa9CooCAwvN7mGH4SUiHqS xKRY3Rv85YbwKqQC2fMngOS53PWBRQJXEC4rhVVG5RgPM/0z7GdQ0Ym+RSBKDjG3kxez LVGyt4pCdSQyLN8O1ijbYso4TIkd8aHVyxaL1Fr9OcahOKx1DaEcpHFFZejXdEfVqyen 1Tfg== 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 b32-v6si16190149pla.105.2018.04.25.03.39.17; Wed, 25 Apr 2018 03:39:31 -0700 (PDT) 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 S1753314AbeDYKhi (ORCPT + 99 others); Wed, 25 Apr 2018 06:37:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51154 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752788AbeDYKhf (ORCPT ); Wed, 25 Apr 2018 06:37:35 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4ED5E480; Wed, 25 Apr 2018 10:37:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Takashi Iwai , Sasha Levin Subject: [PATCH 4.14 020/183] ALSA: hda - Use IS_REACHABLE() for dependency on input Date: Wed, 25 Apr 2018 12:34:00 +0200 Message-Id: <20180425103243.418370294@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai [ Upstream commit c469652bb5e8fb715db7d152f46d33b3740c9b87 ] The commit ffcd28d88e4f ("ALSA: hda - Select INPUT for Realtek HD-audio codec") introduced the reverse-selection of CONFIG_INPUT for Realtek codec in order to avoid the mess with dependency between built-in and modules. Later on, we obtained IS_REACHABLE() macro exactly for this kind of problems, and now we can remove th INPUT selection in Kconfig and put IS_REACHABLE(INPUT) to the appropriate places in the code, so that the driver doesn't need to select other subsystem forcibly. Fixes: ffcd28d88e4f ("ALSA: hda - Select INPUT for Realtek HD-audio codec") Reported-by: Randy Dunlap Acked-by: Randy Dunlap # and build-tested Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/Kconfig | 1 - sound/pci/hda/patch_realtek.c | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) --- a/sound/pci/hda/Kconfig +++ b/sound/pci/hda/Kconfig @@ -88,7 +88,6 @@ config SND_HDA_PATCH_LOADER config SND_HDA_CODEC_REALTEK tristate "Build Realtek HD-audio codec support" select SND_HDA_GENERIC - select INPUT help Say Y or M here to include Realtek HD-audio codec support in snd-hda-intel driver, such as ALC880. --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3721,6 +3721,7 @@ static void alc280_fixup_hp_gpio4(struct } } +#if IS_REACHABLE(INPUT) static void gpio2_mic_hotkey_event(struct hda_codec *codec, struct hda_jack_callback *event) { @@ -3853,6 +3854,10 @@ static void alc233_fixup_lenovo_line2_mi spec->kb_dev = NULL; } } +#else /* INPUT */ +#define alc280_fixup_hp_gpio2_mic_hotkey NULL +#define alc233_fixup_lenovo_line2_mic_hotkey NULL +#endif /* INPUT */ static void alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec, const struct hda_fixup *fix, int action)