Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp993957ybi; Fri, 12 Jul 2019 07:58:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5x/9mlonZmawutBUTm6MPBzyYduXDw1fJUxM9rxDRVYM9/XC77CegVFs7x6ok2xOeubQW X-Received: by 2002:a17:902:be0a:: with SMTP id r10mr11318027pls.51.1562943502323; Fri, 12 Jul 2019 07:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562943502; cv=none; d=google.com; s=arc-20160816; b=Jb+5OVwImCjB1f/9P8kYr5cuaEG9E66OxUNBrP9oxeE1vCu5GvF+3GFrD0WItne/Cs zhyb99kZgtbv7wcNx/sRSvzGeG05Z5wnLEIYPpODv9DHhnJeqQWE0+C+TaPTdhpzprqE 7NMulTD8xiSYGQjYtV8uNoFgjNDJ6A36pXPLohhZ50XyLkbTv8QtEArS6LRrqWSzGSBK GCvzkcBBvYaew/Ko6aDdnLjpyaW/eeP2dG6z32H/IwZJ39hKNSyNTd9HOxk96V0cjsDN JtpN6T2Z/Ntj6JzF0HvaF1G7mUvhCiFakowUEKz9jDwqGHvcyyrUQKpL04/OKQiE1RP1 5BBg== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=LmtaRo+ExGvXgwTS1LST4pXblnna0kkS9oVAaLkPlQo=; b=GxbLTGD4QBIAQKemqdC6Vt4jEpDL9fVKohKFdV7kDbgyldq9FzYytcUgBOJ8E6eB+Z v7gjecjCVPkgaVTaaN1Y/oMXoAQczuGJu5k2e0KJKtalysZpKpdANIstmGeYxt5X7KH3 p4l76eoXNoHKyKDdfjAyqkDpgYLPtOnqVWc9djZtL8ObVIqbHEvENkOG5ydua0g7Xgjc KHWXdpX17l+8v2ICz2HpReYfPJq6mPLzTt2BTI63zQLJN2Z1JQvIekRZQEn39o1R+jN4 QJjBuzblQ1Gc2EB5r5zTat4DwSXBfJJk+xgtRY+d/MezvZ1AzeGLNMdZQuRPMLoRhDb0 HcAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector1 header.b=lbw0XFBK; 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 g98si8382213pje.92.2019.07.12.07.58.06; Fri, 12 Jul 2019 07:58:22 -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=lbw0XFBK; 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 S1727455AbfGLO4T (ORCPT + 99 others); Fri, 12 Jul 2019 10:56:19 -0400 Received: from mail-eopbgr00131.outbound.protection.outlook.com ([40.107.0.131]:39750 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727380AbfGLO4O (ORCPT ); Fri, 12 Jul 2019 10:56:14 -0400 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=LmtaRo+ExGvXgwTS1LST4pXblnna0kkS9oVAaLkPlQo=; b=lbw0XFBK1wnieYkKwDvT/IXBEgo/WkcZtvwxxvFBGVAeqQEpGfygBgxpohv4ExX2CUPB5CkRRIS8aJO9IntQ22bXF54bf7KNRelKAUtd5XneJI8Yn8JdUqJ3o+cvpBvHRPoMZhi1C2is6W2zcjWyLw5cSAX9S6QQJ75rNxC1t28= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5508.eurprd05.prod.outlook.com (20.177.119.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.20; Fri, 12 Jul 2019 14:56:06 +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.2073.008; Fri, 12 Jul 2019 14:56:06 +0000 From: Oleksandr Suvorov To: Fabio Estevam CC: "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , Marcel Ziswiler , Igor Opaniuk , Oleksandr Suvorov , Jaroslav Kysela , Mark Brown , Takashi Iwai , Liam Girdwood Subject: [PATCH v3 5/6] ASoC: Define a set of DAPM pre/post-up events Thread-Topic: [PATCH v3 5/6] ASoC: Define a set of DAPM pre/post-up events Thread-Index: AQHVOMHu58gu7Z1sXEawL2V8p9gffg== Date: Fri, 12 Jul 2019 14:56:06 +0000 Message-ID: <20190712145550.27500-6-oleksandr.suvorov@toradex.com> References: <20190712145550.27500-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190712145550.27500-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM4P190CA0024.EURP190.PROD.OUTLOOK.COM (2603:10a6:200:56::34) 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: 19715c05-5ce0-48fb-1752-08d706d91126 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM6PR05MB5508; x-ms-traffictypediagnostic: AM6PR05MB5508: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 00963989E5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(366004)(39850400004)(376002)(346002)(396003)(136003)(199004)(189003)(102836004)(186003)(66476007)(52116002)(305945005)(26005)(66946007)(64756008)(66446008)(6506007)(5660300002)(6436002)(86362001)(478600001)(1411001)(66556008)(53936002)(8676002)(4744005)(386003)(7736002)(316002)(76176011)(66066001)(1076003)(6916009)(54906003)(99286004)(50226002)(14454004)(36756003)(71200400001)(71190400001)(68736007)(6116002)(3846002)(486006)(6512007)(2616005)(6486002)(2906002)(44832011)(11346002)(446003)(8936002)(81166006)(81156014)(4326008)(476003)(256004)(25786009);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR05MB5508;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: Yp/S9zrAq7GkLEFXHx4zjrjlmqe+vLdyBJcKq1rKZE6ZG9cSoXZY6OW2W1VaGDP0w/WufaZk1TQ1PpTtjzCNs3hn+Z8ApxnNSkw2wkCDFBZnV1wC+EZX+zw0PbpYkZUbHNB//OMOhLEmS0NYYM5AQ3vnxVry2gVA2nREBkBaCFZxkLo6OirqX4GAXqvUIrSzQfCCBcJi8ntvIhsjZf/jZTtEeNo+qxKujhesZOBR3rlTHS3lMB8AylGa+lpHTcCmxJuY443pfbf1NzqABtYqmYnNFC6Pc1/MA3lcHODFlHny6O6+eUSSMyRzVyvilqVC3sSktT5TrW3RJ+3ObmOkNf451s8VJMB2IBP+NveXfX4oS6t0o9M7u8R4YDSYJLS1vXM6C19VV6EmXKTQIufeIIynZ2ZzNyQJsw0sOE892OI= 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: 19715c05-5ce0-48fb-1752-08d706d91126 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2019 14:56:06.2782 (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: AM6PR05MB5508 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. Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk --- 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 c00a0b8ade086..6c66941601307 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