Received: by 10.213.65.68 with SMTP id h4csp2175929imn; Sun, 8 Apr 2018 21:43:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx48aTjgyt2up5c1OYCbqBGzPgBRFk/vufGXNhi5OgISnJVawpzr03aCtg+Vr5g54QatER7b0 X-Received: by 10.101.68.205 with SMTP id g13mr4134598pgs.387.1523249037447; Sun, 08 Apr 2018 21:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523249037; cv=none; d=google.com; s=arc-20160816; b=QqCpHRNPxhX5s0BnRbNxR0qATVxZe2c+vzkUt+e2YH8ytcFZdZQoHlHkoQzUAW5uWO 3MoIWCGCbbyHaSUnpPdlLI5spB59z1V9rCBt6Cb6W9F5sXNxyXSoQovtwFoxiPEMh0sG bHNZFNCxHIK5yorMP/cBom4BeTOslKRVViSyl/qfuAUfbJMOjRqSe412qDXOEHzK55wu BDm60oJUnVIIZugx4rTUkHS/euIYFwdI6gKjMX1ZSlo8RCZkfZq4LitH4STlFK6KF1Sf 68wj2GMPFtOWQs2rd15cBRF8jqkMQpc9XaeuqEfOdTn1fUlEHxxPt6jvFKxMYKqZ3DdI AMIw== 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=FGiqpJ9VRDAoVVY8PtSlLouaRGG5R1wqyT+QhwWyhdk=; b=HO3xjTpjrkrQsCh8jwitbc05oWblAOjeyz4F5MH3GznOk9LpOAactLr/P86aTWZnbF 5Gz9PExvSWjS/OgXoZ69V3VvE+fhn79+QtZZE1ikrRu7P+ZmIIVLzIjeW3yBacxzYqYI Ljkgdx7My6Jm28OBdhInPv0pjTU9MWXKFn1VsGac3k/LAt/XUZxoUhssJIHv4uDkE9Oa e7Z30cKqt1cc3Y84ObwVD8kKFhNV2do3S8K0+QQf6cmd1C+J67xh5G9MOByqkrQxsEik O8oVW12u45iIfSiJ6FYc/5YxHkNJnNm2CmZULyceUYLPBrZc5ray7G7I/eXUTe4FpSYn I3KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=ZBSP6UJf; 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 e32-v6si13981373plb.135.2018.04.08.21.43.20; Sun, 08 Apr 2018 21:43:57 -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=ZBSP6UJf; 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 S1752985AbeDIARA (ORCPT + 99 others); Sun, 8 Apr 2018 20:17:00 -0400 Received: from mail-cys01nam02on0097.outbound.protection.outlook.com ([104.47.37.97]:28800 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751775AbeDIAQx (ORCPT ); Sun, 8 Apr 2018 20:16:53 -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=FGiqpJ9VRDAoVVY8PtSlLouaRGG5R1wqyT+QhwWyhdk=; b=ZBSP6UJfKjAedmZpedIBFwNz+dfMGqPm0EtH4kFpoAq2kkQ9zFaOn9vm54oOiQ7GTfmZivXDtpNTgl9EkUPEKIDROcK/+F2t60yo1kWyz8QFHSsXqPumE5KoNjSTsRM8mgILrP6NAwVCjBMS46tIC2OCRZxIHfpLAQ+ad5YtUn8= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0968.namprd21.prod.outlook.com (52.132.133.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:16:50 +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:16:50 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Takashi Iwai , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 008/189] ALSA: hda - Use IS_REACHABLE() for dependency on input Thread-Topic: [PATCH AUTOSEL for 4.15 008/189] ALSA: hda - Use IS_REACHABLE() for dependency on input Thread-Index: AQHTz5gNgehGKMwriU+JFctgA9+0LA== Date: Mon, 9 Apr 2018 00:16:49 +0000 Message-ID: <20180409001637.162453-8-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB0968;7:BqMMEGsU9c0ro/sH1iMBJwvKUkcx1emtPbVN5pYAWrO8dAxyuNOtJmYPy8QDV+ZLnh5jI0P7BEww2zZjKra+9i+zuPQ98WrE0tHKF2UUVzSKKnAg4J7rpy7fW72oxaregqtrzQOeMrH69jIqAnlQo8eTjkO9w/yuq3sIZ9Pmo+VQ1h5mxg2gSVUjBn9j5+31YRwfhMqScp75WzuOVhqPoK6MD9T+wlcLGfpgFBJSrkAfrTcim9yoXiRXwcw+hIfm;20:6M7mmqhxtZpCKZ4o/N6WVtKlQ6l5fWw7+dfs7e5h/CMW1Tm6ae1YcxvcFQB/PyA2LiZ8uZSmGQoQWu7gXjZMAls1wKr24jM/P8IWL4vShV/2/yjwRr2ue/BuDURr4/+x6w8zL9l9RxLmXjCeqCSd6rgFE7y3qQurz+498dWWY0c= x-ms-exchange-antispam-srfa-diagnostics: SOS; X-MS-Office365-Filtering-Correlation-Id: 514a2d6c-5ace-42f1-843d-08d59daf3085 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB0968; x-ms-traffictypediagnostic: DM5PR2101MB0968: 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)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0968;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0968; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(376002)(366004)(346002)(39380400002)(396003)(189003)(199004)(6486002)(53936002)(107886003)(81156014)(36756003)(10290500003)(6436002)(81166006)(5660300001)(478600001)(8936002)(8676002)(6512007)(106356001)(105586002)(5250100002)(2900100001)(7736002)(305945005)(2501003)(10090500001)(66066001)(25786009)(476003)(3846002)(6116002)(186003)(2616005)(59450400001)(68736007)(6506007)(486006)(14454004)(86362001)(99286004)(26005)(102836004)(22452003)(76176011)(11346002)(2906002)(316002)(3660700001)(110136005)(97736004)(86612001)(3280700002)(1076002)(4326008)(446003)(54906003)(72206003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0968;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Krf0V7kuTBoRBJpKlxGfKbcrxWDSMoZ12X4ymYMeR34UH2oqMpeSK+05SS8gMqZEOPBbv09N1+KrEi2d7rrnYPHAMJ+Kw6xK45yvBjhTsSpRbX9GCbc/NMa+tc/d7uiaphDza2tWnGh1zzjv34DARqg/MwRjpKngMktOexfnZoRtoT94RVmIFxFL94NQao73HVMnk9dDNfDI/8K3pOcL13LWohaFkHdlHfYOBMTCWn5TWUqH3SMft1swD5gFBuBiwjtLMg6Afax6PjOeqo6wtxgwCmkc8RiOJBvd0a/hcVhtp1QqtHiyEkvtYJaX2JH4L3LrbRj63balzl4+1CHo14aKlWFrird6lrHqct12nrfWHoiFgUiUr52+hlPDGQLMHpal6XAJG6RJvVl1qKwMOWqZ1ZWpoNUk5s/krBYIN5c= 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: 514a2d6c-5ace-42f1-843d-08d59daf3085 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:16:49.9499 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0968 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 206774703a33..ac7ef3957159 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3744,6 +3744,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) { @@ -3876,6 +3877,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