Received: by 10.213.65.68 with SMTP id h4csp2201597imn; Sun, 8 Apr 2018 22:22:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EPkBBSf7Bhys2TrfTQrMiP5U8Yp+lIYsjNSIqwhWGY1rIM/70kyhTBT4eVLZqkCJm80W1 X-Received: by 2002:a17:902:1c1:: with SMTP id b59-v6mr37155678plb.325.1523251352165; Sun, 08 Apr 2018 22:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523251352; cv=none; d=google.com; s=arc-20160816; b=iwd7QaQ17eDLe+zcLWY/+y2WLRFO6/CpK2ElWX059B3NeCLGwIcKa+4dunztQ0qhpQ rEWpPbEL7eaGIz/isdE3pxMnKF9pJfzI9NYY4cSO/CpoArToOy43g0rOhwhekUyA69v0 2clD2dS26BIbwSiOvb1aOYZXC29IE/vtdL4VXmRRDp5owj+OO7cnpmj9QUxeMHZtZpbt hBDfgNcFbJ69bfbCWyX3PsNgQwKZmO+ncTL6bDAPiRprly49C146M/VjkMWY6u28oZvo 5LabP4aqg0dtnbDfOwG5JTGUwvpCyOsEfT2xzpcn6DnaK0RC4z4tlyDAsiQdHM6aVKEO Zbww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=vppOMHxeaJE7kPmwu8xO+E+D7hStD9LznryNIRNU/aU=; b=Dh+wA3K++X/uRg24P9ft52JDyeLRVNRidjc74Rq5JhaYTsTWJ5B2G8J0BQwy2f0xjF S3HVJdDIF0tlepUx/S+eH7K5fnVOQmRRNAZ9NFXxcm0u8rv8zk8ghjMPtVF2yEsQzUCi QBQ+KlY8EIKQ9TR5jC6/3IzfHbpJGZr7hjgmPULEVB/6HLnvhJmB4RSSIRpdq+nn8vus YgB1O5f/jDG3uFX0DYhjXDzXNmNcR/GAo0VSjHJM10eHW06qiCIMJjMAGVwXw34L4Xcc rWIETOTDWliumaj5lNJVMUbF1OwPdz2aDVodKcdXjwaXBK8Ebr4ujqCV1BNoD0Q3nkyg /YXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ZGSbCe5+; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6-v6si13075350pll.726.2018.04.08.22.21.55; Sun, 08 Apr 2018 22:22:32 -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=@microsoft.com header.s=selector1 header.b=ZGSbCe5+; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649AbeDIAWJ (ORCPT + 99 others); Sun, 8 Apr 2018 20:22:09 -0400 Received: from mail-sn1nam02on0111.outbound.protection.outlook.com ([104.47.36.111]:52845 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754576AbeDIAWB (ORCPT ); Sun, 8 Apr 2018 20:22:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vppOMHxeaJE7kPmwu8xO+E+D7hStD9LznryNIRNU/aU=; b=ZGSbCe5+xbnitcs40mus2KRwyEE5qB4N0CiSkTiBp0LEReocX2dHi0QuqwzcSH5TEXbWNVQ6xXKJuDI9MFHq7I5xjZd+QF/vLKZ7+vFAtX4wryj5o1/226Ff8uyPuGA3RVlOwqPXE6/bxfdqRLeGmliwX7xnehlCpHEukEkGR1A= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0936.namprd21.prod.outlook.com (52.132.131.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:21:56 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:21:56 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Takashi Iwai , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 005/161] ALSA: hda - Use IS_REACHABLE() for dependency on input Thread-Topic: [PATCH AUTOSEL for 4.14 005/161] ALSA: hda - Use IS_REACHABLE() for dependency on input Thread-Index: AQHTz5h23fyEOLSDWUa5xToBgm0muw== Date: Mon, 9 Apr 2018 00:19:45 +0000 Message-ID: <20180409001936.162706-5-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0936;7:zGu2kj11GY8otwtcIthxV7qXF1ID1L2PhXlRCBCn1B60hvmcM5C1fv5BRrOAv6uYVUBjQAamAYVJlqXnyHI+rDCtY+5pNUujP9zYEGZeiKmNRaOe/EOLoU7QF6FYdLBZnI3STtu7zvatXos41jxZXtRoLNkDooiN62TDamZDi1YP3nrRN9drm6aW1s7IcNYw9/vI509rlSC7zTTStp3ksJdsBHKpqIpU2dYFaoB5wd8Wh1xJb6/i+7DW+mQVrvlI;20:22bUp0p3exV8fCSnr+rOKmyHArrkO5Kw5cEp5IMMOwLA+ul74NqNGTMKuixHwAuiDAKBj8ZRtgVl2csazhK39GNBMQOoYCbg+jun/NfAJKM0D+rIzmCBeF/WBbQTjF6lxaJMcVUKUco3XeA7ykh2eWPWeEWXo5ooFZasjaWcygI= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 456f958e-a3bc-411b-1988-08d59dafe72d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0936; x-ms-traffictypediagnostic: DM5PR2101MB0936: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0936;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0936; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(39860400002)(396003)(376002)(366004)(199004)(189003)(3660700001)(36756003)(2501003)(76176011)(10290500003)(2616005)(5250100002)(3280700002)(478600001)(1076002)(72206003)(6436002)(53936002)(486006)(476003)(4326008)(6486002)(107886003)(5660300001)(54906003)(110136005)(102836004)(2906002)(6116002)(575784001)(3846002)(86612001)(81156014)(81166006)(6666003)(8936002)(305945005)(8676002)(2900100001)(6506007)(68736007)(14454004)(106356001)(105586002)(25786009)(6512007)(86362001)(99286004)(446003)(59450400001)(10090500001)(11346002)(316002)(26005)(7736002)(66066001)(186003)(22452003)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0936;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: vwlbfm8kGgDbc3cu26s2EZ1Q0LSuquVAaaaFI07WfC4wts9LWVuKZdIFVVAAUfxDI3AXL43GAqgQRcTKmImtEWj7rxNtKsWEqhL7wZS98kl+zDkVCJcGPhDDH+QOLIHULHJ8oQ8am+QuaTH6Diwi8QTfQbU27S+IehGQHQpRPtgNbN20z3W1q+czMzOarHNdSOgelyCgA7z/qRR+ANIKne46yAivTCmY6P1uS6266NAQ/L5XYQFrNy2zkdvUUYb19dKoHuh09AVCL6LdFCNKoc1PZYWE/lHlskHBQRNL9i/Ek1H8VTGGyaUgE31/+fWP0eTKc+3E+AGN26zLpC7pwiczAri7r1E/4Yd8y5N/yMgeJ1N42ahaQuZDCFglJOQUAhQynGXdKq2Frond0uiAoloSA2DbfsNn6ccQfyq75fI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 456f958e-a3bc-411b-1988-08d59dafe72d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:45.1553 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0936 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- sound/pci/hda/Kconfig | 1 - sound/pci/hda/patch_realtek.c | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/Kconfig b/sound/pci/hda/Kconfig index 7f3b5ed81995..f7a492c382d9 100644 --- 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. diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e44a9758f2eb..0cf552a0d5c5 100644 --- 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 hda_codec *c= odec, } } =20 +#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_mic_hotkey(str= uct hda_codec *codec, spec->kb_dev =3D NULL; } } +#else /* INPUT */ +#define alc280_fixup_hp_gpio2_mic_hotkey NULL +#define alc233_fixup_lenovo_line2_mic_hotkey NULL +#endif /* INPUT */ =20 static void alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) --=20 2.15.1