Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2489869imm; Mon, 28 May 2018 09:04:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqq7vbwlfxhrHuSeFT05xe/eePqmpqbTk656/nGHK+cZKZ0DPflcWJ42FlNPuaOorS6crcq X-Received: by 2002:a65:6496:: with SMTP id e22-v6mr11063268pgv.386.1527523440457; Mon, 28 May 2018 09:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527523440; cv=none; d=google.com; s=arc-20160816; b=yCD7Eb+GVocUQjLNwGEzhOhVjEDq03hFfo/qJmYRQnAaz1CjMJu8bCmSE0XN3Gpr9E w5P/rQl9G8ojaCf6qA38BtpGqe8X7yRfE8gcGmzUM7AirsQBELsuZgEDar1C7h3ZjHrk G9Zkx9tvOkYNsTnAsj9c4f3wcg4aloHG+Ip9gHM0apqiDNjF40pY9dyok03iHYKW4MiJ HD5Gk9oTrVdb9jjdiPkMiJTcGYMz1wZXkKI3d1ncxUP3Z5/ZjvZLUfrMAqedhjPy+lD+ tcDiXIeVCNg0snr5gv6mCVJVFOTT+5/rH8q/u+GlIZGv7toKOh9Px3MUKz2YAZb3GMC5 SLFg== 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:dkim-signature :arc-authentication-results; bh=E4uxR78zWy/WBTlzlKuxpPZ0T8yyzjATW2pFBUwNRMY=; b=nc+4VBijiOmHfQsNZYjw8bzxBu1g4gf+AzkE4wejkUrhMPxfMuhx3LW8aXDTLTw097 boWEaPl9YulGLAovddeIFL/XvPl86pFj/mta0tRM8RxoMUjQ5LhayBMUsL7widGSeeaK FqbUHT3j86RSKYK8qmN9Ebdy4eoTSHIJ22lYjUNS7/ABWU2k+CO3hRzJt8/gz76haVkd xemgTz0nEohAp/WVG6CpifFpoCeF5pINOimYc+euyBYd6Gx26ppiqSZg7KIn7oOBBmPF 5u9MGjB9I9/4egwjCiKlKPp8iVCYRkny+Gt9cG658eoOzkPxkZL0pqpUkJ1cBvLpkdPX MCog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iCcMABLx; 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 f38-v6si8610054plb.117.2018.05.28.09.03.45; Mon, 28 May 2018 09:04:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=iCcMABLx; 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 S966190AbeE1KPN (ORCPT + 99 others); Mon, 28 May 2018 06:15:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:34932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936516AbeE1KOu (ORCPT ); Mon, 28 May 2018 06:14:50 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 23BEF206B7; Mon, 28 May 2018 10:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502489; bh=m0nlOdTydsvA2cYTICQ91LBOT7Xa0OTSYJ8ZXlcUhBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iCcMABLxcFgZ6Cmkf/DdxlArhlJY6SzOlMvNRucuKLosPgm/BRfCbZUs4JACPKxri Tz04a1FWxdehWtVCDdI1hQ1suPWBtvw0coQgoh0nCKak3+UOz3uCjC06GEWetXdn5i z7paCdOqnoAloUMBTO9DrQ22xBOQC+Qvx3U9EzVs= 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.4 020/268] ALSA: hda - Use IS_REACHABLE() for dependency on input Date: Mon, 28 May 2018 11:59:54 +0200 Message-Id: <20180528100204.352199920@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100202.045206534@linuxfoundation.org> References: <20180528100202.045206534@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.4-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 @@ -84,7 +84,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 @@ -3495,6 +3495,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) { @@ -3627,6 +3628,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)