From patchwork Tue Jun 25 07:49:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 11014997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1623924 for ; Tue, 25 Jun 2019 08:04:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A495F28686 for ; Tue, 25 Jun 2019 08:04:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9932428A04; Tue, 25 Jun 2019 08:04:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D479289B4 for ; Tue, 25 Jun 2019 08:04:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 322779F6; Tue, 25 Jun 2019 09:53:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 322779F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1561449271; bh=j6+q1dOr0DHiY+JDNp0oUhLhvLjOYoZKKOLbmrOUWs0=; h=From:To:Date:References:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Z3HTsAGAJvc2LtieE1iXeCsY5pJdxlBNH2OUszyj10IaAXbe4i2cu7zW7gsXeDygA 4coo8V0iJXj6WL1apKhDGIRrUsyLWya/ykjhLb+yfy40aTlWnKyKQOPojJbUjgSxWB rN/k4lEuhIjp8Eg086Fn7bH1KP4eCE/NaRvA+ir4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 14714F89745; Tue, 25 Jun 2019 09:50:08 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7D091F89731; Tue, 25 Jun 2019 09:49:59 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140137.outbound.protection.outlook.com [40.107.14.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 83CA5F89716 for ; Tue, 25 Jun 2019 09:49:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 83CA5F89716 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="CPcPXxyr" 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=dlrYSI6NJNMzc5F5VtbWjDtAr+NLewjZB+1Lvsa2+kE=; b=CPcPXxyrd8YvBJmlSclq/cOfzrZG7qj8kIldUHV/tJBn+r87zfULZe3Xic8bp82q2s4DuWH7wWX1qf/DsW5HnnnYPh1YQN2r8QTB1nDaa6nqwzpo9xm9BY/XVI8uH6H3Y4NEX4fLMFybkdzc0+HmiFpEkdW3zOp6M5+E7lPn8PI= Received: from AM6PR05MB6535.eurprd05.prod.outlook.com (20.179.18.16) by AM6PR05MB5352.eurprd05.prod.outlook.com (20.177.197.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.13; Tue, 25 Jun 2019 07:49:54 +0000 Received: from AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::2c23:fdba:9ce4:7397]) by AM6PR05MB6535.eurprd05.prod.outlook.com ([fe80::2c23:fdba:9ce4:7397%7]) with mapi id 15.20.2008.007; Tue, 25 Jun 2019 07:49:54 +0000 From: Oleksandr Suvorov To: Fabio Estevam Thread-Topic: [PATCH v2 5/6] ASoC: Define a set of DAPM pre/post-up events Thread-Index: AQHVKyqTBIBQWMm3EkqLR+kyuDcDbg== Date: Tue, 25 Jun 2019 07:49:54 +0000 Message-ID: <20190625074937.2621-6-oleksandr.suvorov@toradex.com> References: <20190625074937.2621-1-oleksandr.suvorov@toradex.com> In-Reply-To: <20190625074937.2621-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR06CA0099.eurprd06.prod.outlook.com (2603:10a6:208:fa::40) 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: 6672e5bf-c7e1-4735-05fe-08d6f941b60b x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM6PR05MB5352; x-ms-traffictypediagnostic: AM6PR05MB5352: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1227; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(346002)(396003)(136003)(39850400004)(376002)(199004)(189003)(26005)(5660300002)(1076003)(54906003)(71190400001)(1411001)(71200400001)(2906002)(4744005)(36756003)(305945005)(86362001)(53936002)(6486002)(8676002)(478600001)(6512007)(25786009)(50226002)(14454004)(6436002)(6116002)(3846002)(7736002)(316002)(68736007)(44832011)(486006)(476003)(2616005)(66556008)(81166006)(4326008)(6916009)(256004)(66476007)(81156014)(64756008)(66446008)(8936002)(66946007)(73956011)(386003)(102836004)(6506007)(52116002)(11346002)(446003)(76176011)(99286004)(186003)(66066001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM6PR05MB5352; 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: zmoKYidnks2WQtSDY0VwOyWRoB89F5I0H60ctVz4NnORnDeZRkS9onWfGrRrwS/ZkN+w+B6Y1zcI2lqTV1EqNWn/H2XJ6PDIxSGrVAczs1chq/xOsXIaWQY0jhZFOIXGFHZekDUr2vgju2XW4+mrTx96d3YvZ5OEJoJgTCmPDUJX8WhQoDPZpswA8oYycFvRC51LGlXOMn/wunBJEabrObO6W45XPig7yB47eeVtZQmMaTTT6NSeCIL5VsdmClsYUWM/6ZGFrO9wAL8+etZG8c+HZzvIQE5MTmDghFGt/jgLQ22HcvPUmny1bU3zWby5hdHyb9Jk4gtj95sHhQs8xBIc6ZGewW+50W5wDmgLVhXEuJNDfkLa3D/7v2VLv+1YSQbJH5iwdQju0EP/fiw2Pbg43O5JZBFwEZbVO9z4kOM= MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6672e5bf-c7e1-4735-05fe-08d6f941b60b X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2019 07:49:54.3629 (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: AM6PR05MB5352 Cc: Igor Opaniuk , Liam Girdwood , Marcel Ziswiler , Takashi Iwai , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , Oleksandr Suvorov , Mark Brown Subject: [alsa-devel] [PATCH v2 5/6] ASoC: Define a set of DAPM pre/post-up events X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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: Igor Opaniuk --- 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) /* convenience event type detection */ #define SND_SOC_DAPM_EVENT_ON(e) \