From patchwork Thu Feb 25 05:51:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 8418991 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 98B3D9F314 for ; Thu, 25 Feb 2016 05:51:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C93DE20253 for ; Thu, 25 Feb 2016 05:51:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B7B1D2022D for ; Thu, 25 Feb 2016 05:51:55 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F1D13266859; Thu, 25 Feb 2016 06:51:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E5FD8265E2F; Thu, 25 Feb 2016 06:51:43 +0100 (CET) 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 E783F265E2F; Thu, 25 Feb 2016 06:51:42 +0100 (CET) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id 7AE8D266720 for ; Thu, 25 Feb 2016 06:51:16 +0100 (CET) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 25 Feb 2016 14:51:14 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id BF269642C6; Thu, 25 Feb 2016 14:51:14 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id A3632480A3; Thu, 25 Feb 2016 14:51:14 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 9ECC248014; Thu, 25 Feb 2016 14:51:14 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id QAG19905; Thu, 25 Feb 2016 14:51:14 +0900 X-IronPort-AV: E=Sophos;i="5.22,496,1449500400"; d="scan'";a="206421037" Received: from mail-pu1apc01lp0022.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.22]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Feb 2016 14:51:13 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WioMiH/7Qwy1yGMEhNcnWdzAoHa8Fh75fjDcUK9M1HA=; b=RbXcMuhogCABgK4+c3p4awCzd2nsN7TLXre3X5dtHXYI0KS9T0OTfnKSTsdMSIVH6i6Jawjt8rMHzGc8UzyduHOAyWuUlY1Tf59Pl4B+JWTuqRwv2MaXiAAcTfe/5AfdnKOh0lasQHw/ZOlz8rB9fAaOg/RY43rnxgCnyg4WWsk= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HK2PR06MB1011.apcprd06.prod.outlook.com (10.161.187.28) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 25 Feb 2016 05:51:12 +0000 Message-ID: <8760xd735h.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <877fht7376.wl%kuninori.morimoto.gx@renesas.com> References: <877fht7376.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 25 Feb 2016 05:51:12 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0046.jpnprd01.prod.outlook.com (25.164.161.156) To HK2PR06MB1011.apcprd06.prod.outlook.com (25.161.187.28) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1011; 2:koMqazrglvzHtB9afQM9YqAgPY2GYmoB/IfirOz1ysGc+oOrRQ5YLYxs1isOCwpQGZq5sXp5QVRavO+xCBXwiiEtNTfo7yYh+pQy59rkTufLlmy7eYtSng5qYZbFFz+Nr0HRIndBcnFgd/bTc+Vb2g==; 3:aXyMw4j7iAB/gDrchxG+w6uPJ+YeE/+0CUiZAHzFw36k6AIkcsaktn0FS0QS05+Z0g8kgspbliPl2RZ9asF7oNufBWrS8wd2Acf0AZ2wuL6xFOB83+oC4kholuFPcNtn; 25:2ExOQDsYy1o9OZD8rPY43dac+l4qdSbWI/mQ6V2e2rgk0Nzgfg70vnDV8aIkq1GBrWwudr1EIL1w3S6A8RNqEsDNgZHp0kzDvvniDtbW4NpR8PFsp51MLy8JKhzFknk4xyp1pIjPtEWXL1Putr4JS7E1FPIcGatQr7E1DtVVuEXbOh7uj3ENAu+HR1IDrwyG6E9VVt+4q6nuhQfwqutfIk2TQESqC7RONgCdkAAANUgmDSbMmlgc0FhRpCw9JtbD+YFpkfUJH/IkB+VTLiJnByVCwHp4B0VjknRSdlsiue7skt3k2lxLNwjGKhAi34ET X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB1011; X-MS-Office365-Filtering-Correlation-Id: fa4645e5-0231-4202-cd3f-08d33da7ab49 X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB1011; 20:dmMW+8nnc1NbZk6RNn//FUUDzTIhSATwMQV42kyoMiCakRAudy/FYgWxF5m98wdnLHJu0HnYZ4WQX4a9Hs5h56cr56HRnXU/158eKqqfZU1kkwKb30nwbM9+CQwK+t0zYOubuGU75JLQ1NXam8qBBtYyLRrHW+pVfcsnZV/CyhKegBKMLGPjs8MFKWZqNO+xHs+bXzb0tfu5yVt34WQYA3bSxT3SfcGVjGp+JRCxiNzdNoAjxzMmc0Iq17/mkuYMzBt7at59OVJ/FBmlzujIFr6m6HLnaLtvHzcVCtk70C5FTEs2LhZZPfpQ5/8UfR3foSx6AcNLKHIuDnGdhVkW1h5gY2uuAKE44wUtIwC3PKMrswRC/8A2noY1KvYmkwJfaLW+z+XxH72/q+JIaU1xPzDug8JLGZS5m5A2C1lrAgmBPnhRo6TmriBgOfpLeXh61MvdNz0yDjG0umZd0F+Ya6m1bOMEPArwexZcsCDt3beNtUKkjlrZhoL56rEGyRUB; 4:XImhQ1foO9r5eb38kwnSw2sl1/hl35Fz8bc+wOq8QQc6nv8advDAsSTSnV3vvRHd/hplaY3QpPAqJjmGNKCbyDuOhXbpBAHqp5GFfgK7j/jE9MhSEnxq4jpGVCq2bpajqr7ih+9vct5PSb3WveWp/7SZtcs4jHS9dZIipwXPZmTg8eBbIZtI5T/qm5IsSK5ZTWDBRMkvYf6LuMXtdbsInTCNXF60ikfLTqf8RC5zo8bywkJ7DbJPvrn1Yo1ZSqZGFXJF7bzALYQxmtBr7TH2RsUk/ajdIBdvySUWuseM/6/SFSqC3pLXp2CdKXHJz8QgtodJH3bkLONBwweCPCSFD5VStcvo/Hm5YSmf7ZHjJ1MlLlnBvyXMkbcbsXgxEZJR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:HK2PR06MB1011; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB1011; X-Forefront-PRVS: 08635C03D4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(83506001)(229853001)(87976001)(76176999)(53416004)(42186005)(110136002)(36756003)(92566002)(189998001)(4001350100001)(86362001)(54356999)(5001960100002)(50986999)(66066001)(6116002)(47776003)(19580395003)(586003)(19580405001)(40100003)(5004730100002)(50466002)(33646002)(23726003)(122386002)(2906002)(15650500001)(2950100001)(77096005)(4326007)(5008740100001)(1096002)(3846002)(46406003); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB1011; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB1011; 23:x9SWCbDrfIxQ2zz/YDEdZ2BRSpTkaQLS9gz8oEZaI?= =?us-ascii?Q?sxnrMn5VQVCOv+6G9twzEIggpFk6aPPngBWPo3PPHoYAwDSai2jTnIdQCx34?= =?us-ascii?Q?xGHunBKBoyyOJf6wj0FtfPpm55UWVIvRebT2LsixQqLyGhbOn/7SPoaA8HzY?= =?us-ascii?Q?GuIfgJd/T/ito1QepXiNiUYzZAbaZUPKdIhztXf8/CmGUlkB2zasxzPyQbk8?= =?us-ascii?Q?iPiHgPgSHXafO/soMpyNbf+vndiaTnF2y0LTMlbN+cvwT2QbNknExiDruK96?= =?us-ascii?Q?6XRGqVZJMbEulAh2KAvg2J5pjUxEAW97f/Ynkdwso5ZQ6MUJlbYobktkgGZx?= =?us-ascii?Q?zmy7IgIKttN5HNIJSO6hCqluNqNmh5fMjtPK1ajiFMNDPsB6zChzQdDMVCXF?= =?us-ascii?Q?Xso+PyP3RfDacO3Eaec9cEGVSeXCXsx/2jjFXgoatghonsVGovxLqvuhXEgl?= =?us-ascii?Q?oO5ZAMbrzGwbe7b+dAnfgx5nYdGiUrwM3evz835Su9fyVARjT1964YRuENZq?= =?us-ascii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Oyc6EfojDOOuskRbVP2hmBmHnjZAvipW8D265yRY+o= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2016 05:51:12.5070 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB1011 Cc: Linux-Renesas , Linux-ALSA , Simon , Liam Girdwood , Laurent Subject: [alsa-devel] [PATCH 1/6] ASoC: rsnd: don't call update callback if it 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" 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 Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 21e13b3..769d34c 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -927,7 +927,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl, } } - if (change) + if (change && cfg->update) cfg->update(cfg->io, mod); return change;