From patchwork Mon Oct 24 00:44:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9391279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6CFA607D0 for ; Mon, 24 Oct 2016 00:46:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB41F28AE0 for ; Mon, 24 Oct 2016 00:46:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DCF328AF5; Mon, 24 Oct 2016 00:46:59 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38B7228AE0 for ; Mon, 24 Oct 2016 00:46:57 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 62D4B2667A3; Mon, 24 Oct 2016 02:46:56 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 127CF266623; Mon, 24 Oct 2016 02:44:32 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8930D2666A8; Mon, 24 Oct 2016 02:44:22 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 4E53B266621 for ; Mon, 24 Oct 2016 02:44:15 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 24 Oct 2016 09:44:12 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id E096740B5D; Mon, 24 Oct 2016 09:44:12 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id CA94580086; Mon, 24 Oct 2016 09:44:12 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id C69268002F; Mon, 24 Oct 2016 09:44:12 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id KAB18766; Mon, 24 Oct 2016 09:44:12 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="223158880" Received: from mail-pu1apc01lp0017.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.17]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Oct 2016 09:44:11 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pqu37xR4kWSKL+xU/Q8qA9D2ypdBag3hB2YaFUC1LqU=; b=CNP6aNdCMukjEa+NW3pewic1BJbo3GUJep5KvLHe+4f5gQrhYmjklVNISHex+rdlkYEBhMqPRGcbMwwMex5gbchVkUOiRpOxEbf8Cgb22pGNUHywsBdi5gbosSvMe4scLVRr5VDxnaoEZ6b6+8nMzN2x+7x+GvJG/+kUrCe0Qeo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR0601MB1455.apcprd06.prod.outlook.com (10.169.106.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Mon, 24 Oct 2016 00:44:10 +0000 Message-ID: <87pomq37qg.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 24 Oct 2016 00:44:10 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0032.jpnprd01.prod.outlook.com (10.164.161.142) To SG2PR0601MB1455.apcprd06.prod.outlook.com (10.169.106.21) X-MS-Office365-Filtering-Correlation-Id: cbe08fb0-b345-4ae6-597d-08d3fba6de89 X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1455; 2:ne6rfxRPPeFeCu5NW8F6Eed2iAX5Uc64ZRcmYfZq4kSCk7NNhRFklqmSYcWZJXuY/9doTVWFYOiSOEhid7+6gELUOcOLkwv99qhFZwyK66Npt8UdW0KKfzePA3R6in8zEm8gMffdMcWvKKjRRMRoCG8EdJJBoVE85ZXoYfDYx0fvTt5SicejZCDdLHyymvIESv2i0erIkSg5YpxVlJ/yAA==; 3:ZKtDtHjaSoMNFOq91d4n7JNKf1p6PNy8zEKLJdysCNotwYiS0HO/n501Qy/N9XQDf3lUzMIoJAvL69FgsUv31wRpDoktzRfDe6qxbMn4hKqiLFR3ahcBnKQhUwCjBlEoeiXTVNr3rE3+fNMFOEyp3Q== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1455; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1455; 25:1Ggnxjygcsi3swH2x/OiP1TeS0WlQqtw/SMnxaYRwzVMv5AAFjKLTcPlb/tT/j7IosOlF7+/aDcOM1m+Kr7I8oav+uY+tlNUKyYUvE8a9tCQZyprgPrxCxj3rY3tMtlLntK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udYBO2h3WhlVTzVBB+6oq5QHDtE6MD6LZQRl86v0W1RU8FkzrnJyaMhYxCPNPk1MuDdrec9m0T+vlIEsGFKJNqDW8xKDgtjXuaMCFjLrnVOnX0wiNw1rA30mg5a6CJRZoA1toV4BkMbZCgpPVdNOCVeJstl0bkyEsaU7tIRzz/IybgawbL6r2OFkLZMnJFHsLgKnnyqKo1LuxI3IHEs256GaLLNBQO1RaqcyC8X0UUYuEpZ+L/iOY+jaKzJe6qvCkphx+G/CPlNgrnScFBwBQLw5MetaEPsSzTufULRT6IlUwF+Ue5jZ5MrNTvPY5rxpe9t6g57cQfIGlwo1K8zIve9WjSIWBVQtPELOT5i+f5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:SG2PR0601MB1455; BCL:0; PCL:0; RULEID:; SRVR:SG2PR0601MB1455; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1455; 4:FWCaSYtUNWp+EqW8LZZ5oVqT6q8oZAemkuyWpkp2QCnQDgcDOq8fXZxM7NRvTXODaSKw+v+fErBwJH+t6xugnIrI2BOXvFqUdrcB8s07gjVbFZsgXvz5Y6C21314wkFSuFaDW7YmkX/tM49HgByMUd2Ul7x0J7bCO1yChJ0C9aNK7OgQ+U9slfkcIL9U1xH/QMV/520pDcEXrBS1oAx56JwFYEyDDc8YQB3LWL+OWGXekxr+C/3x41g/e35MrCmGHXJ19e6DznmzBBxCoLojcVnSRI2wgjybHv6vMWLj5upKINymdI+kYGAoLUEe9HS+rl6Cjsi7tI8CONxwyfV9LQplq3avjJolH05hhRR86Rag/Yibi8Ncp6fKiWJtBrE6gBlzGhq8oG7lgKhUGipohVGAc4QA54MKFo2Q7D7tEvc= X-Forefront-PRVS: 0105DAA385 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(2906002)(66066001)(77096005)(4326007)(92566002)(7736002)(47776003)(8676002)(81156014)(81166006)(36756003)(7846002)(101416001)(105586002)(83506001)(86362001)(229853001)(305945005)(54356999)(5660300001)(6916009)(46406003)(110136003)(53416004)(50986999)(106356001)(97736004)(4001350100001)(6116002)(189998001)(19580395003)(19580405001)(586003)(50466002)(23726003)(3846002)(68736007)(42186005)(33646002)(69596002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1455; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1455; 23:9Ad9BIEL0v0/+tfQLHISv36F+GKcYvqf+FkT0qS?= =?us-ascii?Q?k4DFJ40j1SRjtrCoaYUrwjiSSZmtLdgQ6yXU5ev8goybacoI/lBGh6wiow+A?= =?us-ascii?Q?nrZpDudw6OgN4gPSzqVPnLP2o55TaD1Un6X053aPVNmgI0oqpSFvCE+z2Gzf?= =?us-ascii?Q?SpfwP39st8D+pLXt8xOHVDG+ibJCCAkzj4ossUZymPfqR8Fv3rg0ZV7QqAAx?= =?us-ascii?Q?n0X1wXgK3qr7yD1PvlRsxcgwKhVRfZQF7dBrchSA6gq9Q20CrmXd7d9EUDTN?= =?us-ascii?Q?whzRH8/xmPPKyTtHAtizKEP+D1bIliL0mw13/+Vqy3IhbD03OGwQiE9DZUuL?= =?us-ascii?Q?DcOtQMfXgEqAOa7itrbilZNBPjGRrxCT3RyyxtGFULHpEZJZqg+LWrxWuRrx?= =?us-ascii?Q?x3vBwuRyTRrSgVYSqq2PdubCa/TuK0Z6gqlzpAe7Ur4iFhxQf9ibh8fUSccq?= =?us-ascii?Q?+3XE2GFUg72+1nksGUJgNAoW/RQqTdsRzCqQNpAKiCTmCWlrZonMm9AFLkoL?= =?us-ascii?Q?xUq3cwrA9hlKFvU0qh7hDRHnNOEFA4Xw5VfrxFaTkXfY7xe9nxCuZCW5YCOO?= =?us-ascii?Q?y3/UDRdGICKnh7r/6ASHyNZj8kARBMyzMkZhHJcb4eipIZ3G1QxYkT7ktVMg?= =?us-ascii?Q?7+yomVx3dPNfEVXBDljpZK7zFtUNXYozBCIoZstzSXjOCuasAw4SH9dwcjME?= =?us-ascii?Q?hnsghyWhsinOZqQYPjnE7RhuqFtoI8t2YE9HNzO4beyW2SItvS3k979KEgwT?= =?us-ascii?Q?FW9Xx3XtFd/dyfGr197MiZH4xDeMb2uE8CgS2S9Ltn0Wqq7z2r01RCml7c2c?= =?us-ascii?Q?cHEQR4iyKdCncY0uUhJJvGgmXUftBvSnYi7/q7n1T65ODsyfitLtsggBekJB?= =?us-ascii?Q?jOYgmY+HBSeJgV5RF2DvMHONN8PsSdf70b+OgTLbWEVGgXKrNyL/UcHzmKHc?= =?us-ascii?Q?dvTedFBxyfvpIucRmUa6zYbTkPQVZo9pMG7j0e5aWrqaIg+46vmmPzRA9mFB?= =?us-ascii?Q?R/C7bvjPGTjyZ9HZCRwoZH1M1kpXmb+/FDpeIzTeoGaRyRRRSJVrDu8SwZS9?= =?us-ascii?Q?FKbODv1QscK6E7K1AQ8CPAT7h7EPWKXqfdr3QykQHwz88n36hREntg+jyuPV?= =?us-ascii?Q?iex0fGYzxOZsXlOAwqBwQBa5PB/VhjUkGiIGl45qzVUURfxL3T6didw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1455; 6:Kqxh9udx3Rb+cb9kJYaaZlVlVUR8kEF7TnS99pgvbtn51WIkyOvVkGokypfJ7SQEr2X6hoeqlUR/Dt3pNeOjRCG2W0aoc5KmtpTImp2rwPArsxwU66TOF4J14bw0RjwsMELR0sQWoXDumNpPcPXum6ykBHeFxAsR9HkE2raVnKaSrwNa4eVM5pbE8rd25i+HxSRJvUBKoreULcwWlw6OqUxAsTX5QrFo4wf6Ip/ianH756cdqVJc4cf2twoyfBM7xbfmh4cCwA8wTltnE5kTzSlvoaSmFIinRVm8u9NdZWPyP2m4Ma3jsZRGBPefhlWDdWN93DJOFGCPWLRYUYWLUQ==; 5:yDTGhaePKjNa2+cPSH6v3shjn4bPP7hxSbqUUhgbBEXK3RTjEqx636jOvMWfw++l3KFsVM3NfoGdrUHjxBMuWFoP/uQeEdKnUAQj3J2orAP28rd4n6yH2thP0DLeuhnrD+Dgaq0p6xSsmRcsS7wIGQ==; 24:uQavQAFpGiRKwN3SR9w/1ex70WASY3VGqRcE+aeixPv7MYf5OHWpVLT1/SmKPiTLju0qzaVUBfrMv431YsI+gYiLbp2mdIcDhMjbsdI+zRQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1455; 7:1jEi7s8X5R91n1Nj0gWQel3be90ejaRcmQxKBkZvR+6cJg8jqSWkTgQUx1KX7mPvMKh8FvMgWyrM6Ll7BlDwEXegKlv2yzZa7zBCYswVwECpylTq3AWnLNsP64KGdtfQYYsWIZ/j7Uxh8NLvCSEffkVUYRdkdpwWnBjPJVdhiwOSCU3xsRPd01b2X8SAJN84HVN7yIGx7NVPv5dMO/Hf1p6bPdgmt2OKcZv8srtaynOod1hOo2BwA5pBSuWjgIg2VvddPpBlN08lfYDEciAeI+AZxA/dKByuOOsLMe5nRd5JjVuPq9ogt59bl6ABMFwcHhOgvVbsRZ7dRokWmbsF7aB4f/XX92Rd2s2QKS+GtZw=; 20:+e5VZa8EieOItHMb/n844X7Pt4DV7GHOAO98BMoK3NIwDSON25sS7FqdfMI2gvatJOilangPUnD0DTQbV+28X/FaYpGHffzXgL4m+GaF51Vdbz4c123taNm83an2R6oLUWy9tEfrZEviDWMhbZXP7pCNsiS7hesidgfmKPll7rE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 00:44:10.1154 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1455 Cc: Linux-ALSA , Simon Subject: [alsa-devel] [PATCH] ASoC: soc.h: use bit field for playback/capture_only X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Current snd_soc_dai_link is already using many bit fields. Let's use it for playback_only/capture_only too. We can reduce struct size in certain environment. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index a1b65b2..f9dc828 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1029,13 +1029,13 @@ struct snd_soc_dai_link { const struct snd_soc_ops *ops; const struct snd_soc_compr_ops *compr_ops; - /* For unidirectional dai links */ - bool playback_only; - bool capture_only; - /* Mark this pcm with non atomic ops */ bool nonatomic; + /* For unidirectional dai links */ + unsigned int playback_only:1; + unsigned int capture_only:1; + /* Keep DAI active over suspend */ unsigned int ignore_suspend:1;