Message ID | 87y4ihvqym.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 72413c107e81386a7da438bcf888ee2af5d3b72f |
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 C68FCC05AC for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:15:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDC6F20592 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:15:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C316F204E0 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:15:16 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F0711265A03; Wed, 15 Jul 2015 09:15:15 +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 50658265872; Wed, 15 Jul 2015 09:12:30 +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 E5BD7265884; Wed, 15 Jul 2015 09:12:28 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 25B6F265872 for <alsa-devel@alsa-project.org>; Wed, 15 Jul 2015 09:10:47 +0200 (CEST) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 15 Jul 2015 16:10:46 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id BD12042411; Wed, 15 Jul 2015 16:10:46 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id AFD392806E; Wed, 15 Jul 2015 16:10:46 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id A40942806D; Wed, 15 Jul 2015 16:10:46 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id SAA24710; Wed, 15 Jul 2015 16:10:46 +0900 X-IronPort-AV: E=Sophos;i="5.15,477,1432566000"; d="scan'";a="190394487" Received: from mail-sg2apc01lp0247.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.247]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 15 Jul 2015 16:10:44 +0900 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB0600.apcprd06.prod.outlook.com (10.161.181.149) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 15 Jul 2015 07:10:43 +0000 Message-ID: <87y4ihvqym.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:10:43 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0024.jpnprd01.prod.outlook.com (25.161.225.162) To HKXPR06MB0600.apcprd06.prod.outlook.com (25.161.181.149) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0600; 2:gdKhLqFB0YB7qdfP/wBfRtJ7pDSnO7qXBnwKA5lPzfzPYUzbQ34Pig8K/iviE24n; 3:YwWe8jeR+/T0u/Dw16C0f9Xwnyv7T6Ix6Tgv0JcFHSwd3vtHTRdWCyaX11PfTWidd47gte5I2MxcrBzlJNlbAvzW0lTMpqiE0qrFb/RUJGDuci1ITE5gHHJF44nlreFLoO2t/U4cb9u0NFOXsTe6EQ==; 25:PIJAcSX/Xd54y4ClV5kFrx6P6pGIZHbzvEs8XFTGf06vLCxLLTej0eaUuJt39ZW3eZfkU+Blyhjlx6AlEZ7S3o0S1pUj/9qeGovSEvZcHVPf1HkA20QMQnSAhN7HYjk5lHzKmkoh+S0kJtLnO9RFpnFpAgYbBqMWuMgdlYh3wfoM5kJe2ee5YoyHwdcHHp9f6w8bLMR5XMNnQW5gtr5AomBfisvqB4pvdVr5Y/iwGM09DGKtzpXgU+gXsUf32Lm6aYi8JgjPMpLxQn3vAABLgg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB0600; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0600; 20:1uQuLngC9v1t1NsEkmP/poH51Zbmoaj7a+mXv/H207aMU0DW7JzqGiUNJU1OokKbmoFnVtvXNleq8v0HPBUeT/hlI/WCqtqfDxncCB3T6st2lFhjbtTtZ7INvkbjh9HfG3sSah2u+4ji/gt6mqiMNR62m31bVwOE/MhaK4LJSXQBs2c216Ygvf25rBLN6nHCX9Pi0oiSpgVnQNcuW1EzKTN2+fqA3BRVi2mLgSbKa6NiCLhxwwIg+Uqa73iNRf4t6WJic793y3MHPl9rimpvEZ0P3idGv/yAkY9u0x4uXusi9E2ku4rZ39pA+/LhO4qDm45x8WZm58KVmJRywEsG+N6WxH1BaKMz6RjYn4MH+nTP8m0mO0gZD032pQn2iLeVLuJF8gxVw1gkRNtkzwjJoJUrJUKehCDmOyFctK4wkIXCxtra33w1CmB1CjySTuVOWhMbsVz2yP5nsHiHfgV7DOKkXcbax1pguVobBbQMuOkuck9Y4okn3TaD9nu4Ggod; 4:7XI8DuNA/T84CagHe+8NehuvaJ5RapIecBf5gO0SkzDPAq2pDH1cqGRBfVRO7D+jqkgha4Rwh66lm53tWT3MbngRBhRsYB17+pIaB2Rxe+hH9VPBZES3SgdeA4R0EtDGLS3ZMqh/z5TvyCliK6M3x1gB54bIy6ejw+KSysXeX2wZFRSL5mAPebzrXmIpKKq2E3XyMlAgNLHciKnZiS08rOzeqPjQTjID1MiZDsBpclOpWz9mH1OQtb/qzRUG/A0GXiz26dww2D9p9PzqYLxxS+jFyT51wFfZJhxSXBdsOZ4= HKXPR06MB0600: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <HKXPR06MB0600D8614E2997633E14D12DD49A0@HKXPR06MB0600.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:HKXPR06MB0600; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB0600; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(36756003)(54356999)(66066001)(46102003)(77096005)(33646002)(2950100001)(110136002)(76176999)(4001350100001)(107886002)(53416004)(47776003)(83506001)(229853001)(50986999)(46406003)(5001960100002)(42186005)(92566002)(19580405001)(23726002)(189998001)(87976001)(122386002)(19580395003)(86362001)(50466002)(62966003)(40100003)(77156002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB0600; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0600; 23:f1KxY7j+qBP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YZMYxLaJh8VwKGw1oUNbxIMa1AhBFXlA==; 24:i7nZCHChkjW23cI5JSDm1sRu8eJ2BYGujsD0mgpI7XrHRWQzDCXp+ij2RlPAy8goZhT6HkurO1J2QCxS5Qgc9Fph9Ussfc1U95xtLNUFQOQ=; 20:QoLOzdkjhCR2u9AOaIr3P3/+V+LeG33145mlcTwdzLSoWAS6rmUobZiOzFGUClDcQg1LIQ1kmM2lfElR0zQ7e2EhGZ9y0Gq2EenTt2Z1ZuSrDLKhiSu7q/3eqijgYCKcPa3wB68j6SlfLIMfNbh4SU+JLuFNernFC3UZzsY1mdo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2015 07:10:43.0777 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB0600 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 10/35] ASoC: rsnd: rsnd_mod_id() return -1 if mod was NULL 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 9ecd151..46eb4da 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h @@ -316,7 +316,7 @@ struct rsnd_mod { #define rsnd_mod_to_priv(mod) ((mod)->priv) #define rsnd_mod_to_dma(mod) (&(mod)->dma) -#define rsnd_mod_id(mod) ((mod)->id) +#define rsnd_mod_id(mod) ((mod) ? (mod)->id : -1) #define rsnd_mod_hw_start(mod) clk_enable((mod)->clk) #define rsnd_mod_hw_stop(mod) clk_disable((mod)->clk)