Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3426173ybi; Fri, 19 Jul 2019 03:06:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMI8NMKhct/MmulgF25yGIfwEpHj1M7ZP1kcmbrF5cUH9yj1azr84lRqfxh8XxZZRjLCg3 X-Received: by 2002:a17:902:e20c:: with SMTP id ce12mr57763317plb.130.1563530776291; Fri, 19 Jul 2019 03:06:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563530776; cv=pass; d=google.com; s=arc-20160816; b=e2W1MIBVT4/tpKRUheljv6Ntvt18OvCwNnDxdZIJ4LqP8UQj3XD2TUaEnP3RQZEKr6 SQSf5ggTpaN3+WeocqyYvYO0FxSvYkhNn9AWG7c4qlcDY2J7teMrmwNHDgFoPKz8Q8Sp ClSanR3iG/lx70Qk6P7E6gAcQIx8t+7vno7hlYvdYeSZdyRGw7efwp5LV8eOyjV2SRod GJGr3jy0CB1PgeOhtwTHYmmuVl6CgomjZipol25NcKmQ4bsifY85qll68fgOuMxG1tGr f2+gbqbM8SWw7c7S+dS/FVldxvtxTWG7RGBALq3U3Dyz2w7T6hG9J6862/IfrffyixjP mAag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ieb5Ti26ow//xiXteGDsBj+wWxgrCMJrmTZW/OEQ5us=; b=0Gpleox0kZ1KNTLE/hBT4tYO3+7t4wnxUs6kW82WBv4UBwY5jn0jseRKIf0h0ci4RK 2R5oEMi0k2smdav4qNr+2/HyDynkNKhfmOfCP8hNelKL71uEAMIuAca+GcRzSpqMxbUp gTKqHus/ArmY+0PGhRXIpmWJEl7lVaHcCfmQzPd7SZYwyUjhQowHwcwYHX+Bd6p9Vyy6 Y4+4M7TM80vGv6Oq14TOCa7fB39Wf+HxvwiH49Dve3PRM3OV8KkygpIc8166AXYVwwmq 8lGns3HloSRQWd++mn6Df8EnNo7YgLOIaOy6sV8Ho3cKxEsmrvp1qkjiK0bmcfsjWmcg 8p4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=O99xRJnL; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si550619pgd.247.2019.07.19.03.06.00; Fri, 19 Jul 2019 03:06:16 -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=@toradex.com header.s=selector1 header.b=O99xRJnL; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727527AbfGSKFg (ORCPT + 99 others); Fri, 19 Jul 2019 06:05:36 -0400 Received: from mail-eopbgr40092.outbound.protection.outlook.com ([40.107.4.92]:10046 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726076AbfGSKFe (ORCPT ); Fri, 19 Jul 2019 06:05:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kid0XsvvrbUFA0wEqSmqgkmB5/zZpfqH8qLSmBt2x9NdiruTEsumGaQh2N7V4O9EANARKNXeYjxyQXuTrGyEi9iyTRbm7LDDh//2uCgxN4X4hDQiMLyfy9c5xu/xUbJZNHcY7Z4QQFq/rFjTZ6WYWGTCIuLUqWy3VCDWMQ4/Je7R6YLlynMTcT4iAM8Uvuk3ChbdkjltfZ4eGZoDwLpv2o8hlxeUiUzyJGg7l3WQlhhTVpeJ0z3seq9NXo3rHj52xpDrUxTXczG3xEmyGlEOfk4k2QKUoekVsjAkMPT3+wwW2fzcy9LHzIsOKGAVMhZFbmEET66+/iDiLmhlk59QLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ieb5Ti26ow//xiXteGDsBj+wWxgrCMJrmTZW/OEQ5us=; b=iVREeaIbWQGKF27hM3Bl7Zvqim9mo2GFGw5QfKQ1PQhc/9s8epcB0eYntQ7xZVyUfibP6LJ3xXxTjPGMAR0cBNvGp6MB7HjVeOSul46UlVloLCj2l9ZzUAgoTxvrVtgxgHPX5t/YCSr9fJN6OwDY7KHMwVVeVmFYHqJ7jH/3FKqyZwfQfC0cm4vwWbwLmf6Ui01TJ3BBFbOWxeOZuE6AkWZiHUNlNIKCQ4ky0CXcBznjQwjSjJwjIsaKbXSuTy2KpELzPJTZ+OK70mbyT1CvUbOEFLBbUb6RW7jQgadL71E0k+wD9P1k1Gy8y464EgW87cFkI+oPHI83R3nCeZfOlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=toradex.com;dmarc=pass action=none header.from=toradex.com;dkim=pass header.d=toradex.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ieb5Ti26ow//xiXteGDsBj+wWxgrCMJrmTZW/OEQ5us=; b=O99xRJnLed/FC3fua5DQZyFM+sekzTVl65lI7prQJrF8XasxCN0mlaYY4b8YXtLaHr8rcoqz3LIoqZ2h5nPFgOqVufCtIi4Zc79ankuNWDtn4PLVEdYHnPAYYaNY9/pIfz4cVGOMcfWB9jG5U+p4186CcBOK7PyMkLZzTAfWjL8= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5925.eurprd05.prod.outlook.com (20.179.0.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.14; Fri, 19 Jul 2019 10:05:30 +0000 Received: from AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9]) by AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::c860:b386:22a:8ec9%6]) with mapi id 15.20.2094.011; Fri, 19 Jul 2019 10:05:30 +0000 From: Oleksandr Suvorov To: Fabio Estevam CC: "linux-kernel@vger.kernel.org" , Igor Opaniuk , Marcel Ziswiler , "alsa-devel@alsa-project.org" , Oleksandr Suvorov , "stable@vger.kernel.org" , Jaroslav Kysela , Sasha Levin , Mark Brown , Takashi Iwai , Liam Girdwood Subject: [PATCH v6 1/6] ASoC: Define a set of DAPM pre/post-up events Thread-Topic: [PATCH v6 1/6] ASoC: Define a set of DAPM pre/post-up events Thread-Index: AQHVPhl+TquGY/9OqUqqRqkRBZjHKw== Date: Fri, 19 Jul 2019 10:05:30 +0000 Message-ID: <20190719100524.23300-2-oleksandr.suvorov@toradex.com> References: <20190719100524.23300-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190719100524.23300-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM3PR04CA0149.eurprd04.prod.outlook.com (2603:10a6:207::33) To AM6PR05MB6535.eurprd05.prod.outlook.com (2603:10a6:20b:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [194.105.145.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3ae0a2a7-da88-44cf-bd6c-08d70c30a15a x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5925; x-ms-traffictypediagnostic: AM6PR05MB5925: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 01039C93E4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(39840400004)(396003)(136003)(376002)(366004)(346002)(199004)(189003)(14454004)(68736007)(8676002)(50226002)(6486002)(8936002)(54906003)(305945005)(7736002)(71190400001)(71200400001)(6436002)(81156014)(186003)(99286004)(66476007)(66446008)(66556008)(64756008)(1411001)(81166006)(2906002)(476003)(36756003)(66946007)(446003)(256004)(6512007)(86362001)(6916009)(26005)(478600001)(66066001)(11346002)(52116002)(53936002)(486006)(76176011)(2616005)(25786009)(1076003)(6506007)(4326008)(44832011)(3846002)(6116002)(316002)(5660300002)(102836004)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5925;H:AM6PR05MB6535.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9kKUjNCnUHcCg3f+3fK/NNt1/GYnQ03PCdXzRHrTAxGt90mocttK2Av4yRPQAt9YMGosTWfmqD18ZHboEJALVjDo3liFzPX43fGi0ZeSAxBqK9VgZ//dUWYBPRqWx2beEhGqFdBWATEIc66AqY2/eKZ6q7iJCajw7D5yv0X1Zi7eB+5gKoeiEHc3/ycBiCE7zvh2ITdliG3DBB58aNqAKCgjnRf1VtRQIfHuH93WkTH5YjY5pUsZsSPN+CGQQ+LvAzk5qQEJ4rfo1V9TieIDLUB1qSS2RCzzVC8hneULtsud+SXRgsvtswW1V6xRdwL3EBrLDTYDUAcYNi6DkVCxPZBNcN394RItGSogGKZtRbggxlDWSJRycpALz1Lq9vuzSdOF4c0IP0ND44SCVfeZ32FbduvEZrW9gTlsUbFNyFw= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae0a2a7-da88-44cf-bd6c-08d70c30a15a X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2019 10:05:30.3035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oleksandr.suvorov@toradex.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5925 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Prepare to use SND_SOC_DAPM_PRE_POST_PMU definition to reduce coming code size and make it more readable. Cc: stable@vger.kernel.org Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk Reviewed-by: Fabio Estevam --- Changes in v6: None Changes in v5: - Add explicit stable tag Changes in v4: - CC the patch to kernel-stable Changes in v3: None Changes in v2: - Fix patch formatting include/sound/soc-dapm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index c00a0b8ade08..6c6694160130 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -353,6 +353,8 @@ struct device; #define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */ #define SND_SOC_DAPM_PRE_POST_PMD \ (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD) +#define SND_SOC_DAPM_PRE_POST_PMU \ + (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU) =20 /* convenience event type detection */ #define SND_SOC_DAPM_EVENT_ON(e) \ --=20 2.20.1