Received: by 10.223.176.5 with SMTP id f5csp974969wra; Sat, 3 Feb 2018 14:55:15 -0800 (PST) X-Google-Smtp-Source: AH8x225/IOsm8mH2h9ZS+Yckc/hya4HMjm9M4EIHisLQRrxpvsxa8xtMPzRllpLoW1Pi3XOTCeFD X-Received: by 10.101.77.140 with SMTP id p12mr34246940pgq.195.1517698515820; Sat, 03 Feb 2018 14:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517698515; cv=none; d=google.com; s=arc-20160816; b=0DV2uc9zr3TWHHRC7N1jdflJQc8hsG7W+TBGjBPmle2YS7LW9XeHGem7gdoyV9Bq6U ZRxTQ7NrD87aTe75UH3/+kdzUbngmYuU7oniqm/LS2lxhALXSw9L0+D2x439K50rero6 UPm871MYmjThrfAkS9mebr4L92K0te0wXRf+00T6ean2y/MMyCwA3cM7yQGEuAoNB7tm VcGAiI5+wvHt8prQl1MGCuq5ZaAEk2lMA9HfKjUGMLlUbNod9qmpw9165mjUSjf/tsgT P1rLPdFjfO0zRIzC/YYQh8Vr4PkQvWhXHdWqipVwiLXquGAS8LGWYYvjf+ra4eBzJuVR J/IA== 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=G31CAzKZzayTLbyAooTM2UPP40DMG50eNo+TTP4UjU0=; b=tvZjN9WtIaDAZMOiM12KjCkVhJ5sCY8oTTj9qbv4cDHlaTbm/BWAFy/rd+J7phO5YO GQVkLlOtTmBL0IJhpdvmsrycxiK+KblFaS8EY0Wt4wzE3dgqd4RjniWOfiD9bJXwILfO utIKeaZd41xVW9+247YLu/a6gKBX3BFrUQjyiXOKQZGjz+HkmJOJBL9XIh5Q7gf+aofR e22OVmZI2RXQGmv5j8Hd96q9oWwudYEx9kNpR83tdl/s+uRZvajxFh5Ix94l3Nthp0un TT5oTcPxOsANh6qiMaUT2/YnmNQZmsWD7s5XLNt73dNhDVh0Trp4KsioyWfbgrjQekpT 1eKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=OqZ8LlcU; 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 v35-v6si4401630plg.724.2018.02.03.14.55.01; Sat, 03 Feb 2018 14:55:15 -0800 (PST) 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=OqZ8LlcU; 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 S1753089AbeBCSsv (ORCPT + 99 others); Sat, 3 Feb 2018 13:48:51 -0500 Received: from mail-bl2nam02on0134.outbound.protection.outlook.com ([104.47.38.134]:35168 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752918AbeBCSBb (ORCPT ); Sat, 3 Feb 2018 13:01:31 -0500 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=G31CAzKZzayTLbyAooTM2UPP40DMG50eNo+TTP4UjU0=; b=OqZ8LlcUOfhUafsDSC+ukRGM05sAWneP3Gq3RrEA5k7jfL36Xewh9yDgbC31m0H+Z8WgZ5ujVsdNUV1j/PoXeURdQ5sN/2sglteWfPfHcLnKbGXerOOHp8HV9TVa7oNQQi4mHGbrL8c9GHQMRfnSYoSbpLJ718fY2w6OSAW2vFM= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1090.namprd21.prod.outlook.com (52.132.24.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.506.1; Sat, 3 Feb 2018 18:00:44 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:00:44 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Abhijeet Kumar , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 029/110] ASoC: nau8825: fix issue that pop noise when start capture Thread-Topic: [PATCH AUTOSEL for 4.14 029/110] ASoC: nau8825: fix issue that pop noise when start capture Thread-Index: AQHTnRjnIdl/Kttc4Uy8OruAwVGxiw== Date: Sat, 3 Feb 2018 18:00:42 +0000 Message-ID: <20180203180015.29073-29-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-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;BL0PR2101MB1090;6:5Kmqj5zWJh5q/ad2nIeen+8bhWPOCUF4y5Dr3+ILE30U0LNxlsNjVgqXMuNU4FYCohwfanq93E2XVHX03ZBOqjY0buNuK21HRHqIMULypBhyABaSFDIDxYzP0gg3ogUmheOBpNqj2nn7BnyjE9HPujD38k1No3tkeSRU2DqqAZaVAUWb3rij8iq86TT5bQIhLYeTeF0PhXzdbrk8AuPu7EHC3NjcoyrtkECtzHXeq0kHRCmgNB509V7A+1ammv4UjpjwVdH48onbIzSGX/D+uSQ6HVm6XYEoRvwib6jjD5bO2Q3yy0Tae13ANNTv5BSWqO2jo2LnNQq/o6uO+AEJ5nWZlN6uuHF6ql+5SQLA0Bg6vROvt5iValmPYmI1ou3F;5:GSKYyhkMlNk3GcsDe50kUs5fYnL8VP/JWa6rwGgRuHJKqLEX5v7HU+Dv0P2qYALnPTxG3J+JPQie8LejNNpaD039aVu4ca1jJJHZfHuH/LfdcoTCFodPEJe2YYgLdRaccUsvhr3aXV5X920jRDY1lT1Z28EUbRz/5GcAJTqYzCc=;24:2xhqjBJMWf/PTO2PaPZxMb/Jws6IhCYi5Y7gbuj12KDD7l5T8YWzZpyFWNoFR3OU2BF5DRf/rlWkvOrvI0wBSzH31dnd7GSTgV3pmVT0rYA=;7:LGSpdY+LBvbHVHPEhh6ikc26ovDJ24ToNeyfBcq50/7jug6waCImY7xdyABiO2BHTHDU1UZzjd8lKa7HrSgr7LYRmSJYZvPeq1u0RMHiJsdYmRQ5S2WDQQJdV+11KY23z8BuQ8br9jHdqVpEh9RVWQ5/c/jlwv87mwWEpej05CcJe/7FPc4ITYutMY51BXqMcCZsTToLqwc5C4XL8iLXVaJwAWYsFSDuM9QTbJbnGgfrUGQIuakM+M3eV4HqDNpf x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ca3b4e2d-227c-4993-2c53-08d56b300bd3 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1090; x-ms-traffictypediagnostic: BL0PR2101MB1090: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL0PR2101MB1090;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1090; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(396003)(39380400002)(39860400002)(346002)(199004)(189003)(2900100001)(5660300001)(316002)(25786009)(4326008)(14454004)(2950100002)(478600001)(107886003)(72206003)(22452003)(10290500003)(186003)(3660700001)(86612001)(76176011)(86362001)(53936002)(3280700002)(106356001)(6436002)(6486002)(59450400001)(81166006)(81156014)(2501003)(6506007)(97736004)(26005)(7736002)(6512007)(6346003)(102836004)(105586002)(68736007)(8936002)(5250100002)(305945005)(36756003)(1076002)(6116002)(3846002)(8676002)(110136005)(66066001)(54906003)(2906002)(10090500001)(99286004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1090;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: hO3mubK12YRPhtkCPFiV4BeABHe12mEGmeJumzSIdtERGgdxvCrsCSVJ7y32U4jfcQuGC/y6kgnL06qRCL1cZw== 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: ca3b4e2d-227c-4993-2c53-08d56b300bd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:42.0659 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1090 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Abhijeet Kumar [ Upstream commit d070f7c703ef26e3db613f24206823f916272fc6 ] In skylake platform, we hear a loud pop noise(0 dB) at start of audio capture power up sequence. This patch removes the pop noise from the recording by adding a delay before enabling ADC. Signed-off-by: Abhijeet Kumar Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/nau8825.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index 714ce17da717..e853a6dfd33b 100644 --- a/sound/soc/codecs/nau8825.c +++ b/sound/soc/codecs/nau8825.c @@ -905,6 +905,7 @@ static int nau8825_adc_event(struct snd_soc_dapm_widget= *w, =20 switch (event) { case SND_SOC_DAPM_POST_PMU: + msleep(125); regmap_update_bits(nau8825->regmap, NAU8825_REG_ENA_CTRL, NAU8825_ENABLE_ADC, NAU8825_ENABLE_ADC); break; --=20 2.11.0