Message ID | 87a8uxvqp7.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5cbbadd3d507eeb7711266e3932f4c427cbcbd61 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DFEF1C05AC for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:40:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BB4D205FF for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:40:32 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EBFEA205E6 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:40:30 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6BB9626598D; Wed, 15 Jul 2015 09:39:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5C3C62658E7; Wed, 15 Jul 2015 09:31:26 +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 295FA265D2B; Wed, 15 Jul 2015 09:31:25 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id EAA9A265DE5 for <alsa-devel@alsa-project.org>; Wed, 15 Jul 2015 09:23:22 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 15 Jul 2015 16:16:23 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 53EAA44F63; Wed, 15 Jul 2015 16:16:23 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 4EC441806F; Wed, 15 Jul 2015 16:16:23 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 4AB811800A; Wed, 15 Jul 2015 16:16:23 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id SAP01761; Wed, 15 Jul 2015 16:16:23 +0900 X-IronPort-AV: E=Sophos;i="5.15,477,1432566000"; d="scan'";a="191576469" Received: from mail-pu1apc01lp0020.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.20]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 15 Jul 2015 16:16:22 +0900 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB0602.apcprd06.prod.outlook.com (10.161.10.152) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 15 Jul 2015 07:16:19 +0000 Message-ID: <87a8uxvqp7.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> References: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 15 Jul 2015 07:16:19 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0021.jpnprd01.prod.outlook.com (25.161.131.159) To SG2PR06MB0602.apcprd06.prod.outlook.com (25.161.10.152) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 2:qcupAU9r7CtlR+u9MfGCiihBla1rA+42dtXXk4MzTFyPwYuG1imE8ey/WxhSweMh; 3:whtfhNQkPfQNVIjhElLBSshSusDGZ1n2W8r+NDEG3AZV28PMZoeSEAL3/v2QONVHWtrJdnMKZoiiJgBIr3sOhx5CAUhEUHTusqz6iw0sU0xrOTCQIidr1v863bOWl6nLJNGRXmQ6BfNtvpNgk18igw==; 25:zXiCm+RKXXGzCDb49RdGUpN+QBc8LH14ANQgSIHQCw3vkzjs3WQmEDH7TPLtrYXlBh+pcVs9lf+JUR752fEY3pwjSm5swgaj0BNaTqzIrtLtbnytt77KeIDEUuwPmRPpOqEwbOLLjGzxFoQByy1FU9mPGhv/bEUIj8DyEY0Db4cW/2EOxn2RAxpbaMoEowKi7y9zO3/cIRv/WQTZcmzzBghRxF9j5HKDu3NfKOF3EC6aKNpNqmUFzMDSBiwWWZqMBkfzOSpAekA1ukTMc/kCZw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0602; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 20:LwDqGSY0HbrXMtbCRpSicvsvPLdCY1JJ3fD7FIA2BFlsIjs9fZTnyZ/0M6REDZsaUjMy9vEnZkMKTOLYs1hpsmtJHJ/hreYub/GEHFvkX0NgktTDkI6QeVeHFnsK1hHOrU9JzkQmRC/zT46M54G1uihgBHfIOFiKY3TzV07NzpZ/NsT3v4S/i+sGJmf2gPjJLe6dpoekzUKdGOxS3NTsdTkJzuIneOnzpSSIn3xfbQP63tDx0Vxca6ynbYM2dtYYoeN28nruzuNwC09Yj7vRLGsnYTmL/+0I4xkdOt/QHB5nCH82JW3xx6jsbjDymaLB1jUP9KzctWULBRLsPfBAkO3YoT0+XlPcevDNwh6p4Usa+X8fKEtkrPYhpAAeLlezpUsc3s1BbTCG1kKj9a2oBavO4tR/QVR524wYXkUC+wT4MOLQ11MPqHoqRLl2jSrCOHBZYFQV4+Qf42S2z8RSb5IgmcUCF8HSFW/uidtUCEtVj5/e5mu+kE5dyqi8Zw5O; 4:W3DxH88wom+FwbY2mIcZ6sbLME+Zz1FYRIkX8DTUiKkL5MZ+lNmGZ4S6n8I9ePZCJMV+RiZhcV6Ds++p+G7Xb2XPw5AMxQ+qKq+83KFdcdzEqdl6+fSURyf0NknTQ7cxzzIrlbvNuAcfxip67nNQcJaGLMa+g+uOlaINdXsfTCS7I1Ob++oW7apJmzdZxzTbkVFl2PKfIX6NS6smpO+ZPhkpCG0F51405xWob0KF5b4ZKlCz0NlmBmJ8B2VnVgtqXeCJsQ6t+SGVypPqnGeDB6fQEu4lXfw/oxu8g6aiQ6o= SG2PR06MB0602: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <SG2PR06MB0602834882BE1674EDB0A5A6D49A0@SG2PR06MB0602.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:SG2PR06MB0602; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0602; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(107886002)(77096005)(86362001)(66066001)(4001350100001)(5001960100002)(77156002)(2950100001)(36756003)(122386002)(110136002)(87976001)(40100003)(46102003)(50466002)(19580395003)(229853001)(92566002)(47776003)(23726002)(76176999)(50986999)(62966003)(46406003)(19580405001)(189998001)(42186005)(53416004)(33646002)(83506001)(54356999)(21314002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0602; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:; X-Microsoft-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mg1khmcQ8AS7E2Fc+LcUvDuQqh4nAyuzUYeCkN+dX2myfG6xp84OjOBnQsz2uRcRqcKeC5gEVg==; 24:y6itAxIL6/NcVghwNtCaT31UUgvHkyHVG8I40qbRfbWE9Ww52P5HD3DGpDMocw0h4ZMqHor9Ks85T5Otvuf7vMgBqVHOTu8ll0YkxZBYwtg=; 20:wcdZa3JIJmRe+93tSLhYTQxLMi5cBBuvhvyGWDjMHvemVojjrznydiSkaJcy3mA/jzzaNVrzv1MObu+zQE4HnFvigWUWPUS2nqI9jpoNAExUetrktxuBXxHMtK8LtrNEI481D679t3k60RVwF3xOVnC0lvHfZ1ZSG96jwfyNW3w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2015 07:16:19.9059 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0602 Cc: Linux-ALSA <alsa-devel@alsa-project.org>, shiiba <naoya.shiiba.nx@renesas.com>, Liam Girdwood <lgirdwood@gmail.com>, komatsu <toshiaki.komatsu.ud@renesas.com>, kobayashi <keita.kobayashi.ym@renesas.com>, Simon <horms@verge.net.au> Subject: [alsa-devel] [PATCH 27/35] ASoC: rsnd: add rsnd_io_to_mod() 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 705e66f..5f5b8b1 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -348,9 +348,10 @@ struct rsnd_dai_stream { int byte_per_period; int next_period_byte; }; -#define rsnd_io_to_mod_ssi(io) ((io)->mod[RSND_MOD_SSI]) -#define rsnd_io_to_mod_src(io) ((io)->mod[RSND_MOD_SRC]) -#define rsnd_io_to_mod_dvc(io) ((io)->mod[RSND_MOD_DVC]) +#define rsnd_io_to_mod(io, i) ((i) < RSND_MOD_MAX ? (io)->mod[(i)] : NULL) +#define rsnd_io_to_mod_ssi(io) rsnd_io_to_mod((io), RSND_MOD_SSI) +#define rsnd_io_to_mod_src(io) rsnd_io_to_mod((io), RSND_MOD_SRC) +#define rsnd_io_to_mod_dvc(io) rsnd_io_to_mod((io), RSND_MOD_DVC) #define rsnd_io_to_rdai(io) ((io)->rdai) #define rsnd_io_to_priv(io) (rsnd_rdai_to_priv(rsnd_io_to_rdai(io))) #define rsnd_io_is_play(io) (&rsnd_io_to_rdai(io)->playback == io)