Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05481C433E0 for ; Wed, 24 Jun 2020 08:06:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 803FA20874 for ; Wed, 24 Jun 2020 08:06:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="BWIgg6R4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="QlPiw4kC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 803FA20874 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 1964A185C; Wed, 24 Jun 2020 10:05:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1964A185C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1592985985; bh=Lvilq54I0zgkh25sNEzV+PXm8bKsLZMbBop0scFSF0M=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=BWIgg6R4gL0b4UES/edF1tYe+7Mf8+GDY6ReQmuBDWTdqWv4VmoM8NoGUD0v0wYBg YxE373oqLFjsPs0PXFVt/NrlE7kHYQeAcGfliFkpSfnsyUWUB28F66Pv7wQWa2JDAe w1yVfli+xB97/A3Oz5RaUgzbv1nQGic6mJtVlmlw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D7AB9F80394; Wed, 24 Jun 2020 09:50:13 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A0C3DF80234; Tue, 23 Jun 2020 12:29:20 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (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 E1E0CF8012F for ; Tue, 23 Jun 2020 12:29:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E1E0CF8012F Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="QlPiw4kC" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05NARY0X014598; Tue, 23 Jun 2020 05:29:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=Zs/4MpVetYiubHUxChGRHeQ5tsyMzbZZePwRgF6MCHc=; b=QlPiw4kCsOP97VlBtCNStGrWoYJjt6krVNu9USmAh02MhB0L+vp12MXE7KsKwZrChKSq g2E4zUi62+QWeTYoKqCTg6R/5/eynYzm/oOwNwbib7lxzM7gwps9VeJ9JKy9TFtPNI4j 6jowuZjTPykmyYesDJmriYLTA/84NT/4RhKl3xf9iwCBX015wPxY6WmIqt6DHH3sLvY8 8NMABBh2gzoXvZ1fCbG9MYeSIJrGBdvuE6rI5PZVeuQCZFAaWc6sWlfEHINdt+9B4e/z SMg3MGkNLnrT9y8VP+MnLD8owpKa6DWZVjF8fbyU06QfrTpFjT20GhXVmEKzDnooQ/wA vA== Authentication-Results: ppops.net; spf=fail smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 31sf6ebthb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 Jun 2020 05:29:07 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Tue, 23 Jun 2020 11:29:06 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Tue, 23 Jun 2020 11:29:06 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1E6CA2C8; Tue, 23 Jun 2020 10:29:06 +0000 (UTC) Date: Tue, 23 Jun 2020 10:29:06 +0000 From: Charles Keepax To: Kuninori Morimoto Subject: Re: [PATCH 13/19] ASoC: codecs: wm*: merge .digital_mute() into .mute_stream() Message-ID: <20200623102906.GX71940@ediswmail.ad.cirrus.com> References: <87ftam37ko.wl-kuninori.morimoto.gx@renesas.com> <87wo3y1ssz.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <87wo3y1ssz.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-SPF-Result: fail X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com include:spf.protection.outlook.com ip4:5.172.152.52 -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 suspectscore=0 clxscore=1011 phishscore=0 impostorscore=0 spamscore=0 priorityscore=1501 cotscore=-2147483648 lowpriorityscore=0 malwarescore=0 mlxlogscore=851 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006230083 X-Mailman-Approved-At: Wed, 24 Jun 2020 09:49:30 +0200 Cc: Shengjiu Wang , Linux-ALSA , Michael Walle , =?iso-8859-1?B?IkhlaWtvIFN0/GJuZXIi?= , Neil Armstrong , David Airlie , =?utf-8?B?Ik1pY2hhxYIgTWlyb3PFgmF3Ig==?= , Jonghwan Choi , Alexandre Belloni , Paul Cercueil , Andrzej Hajda , Frank Shi , Laurent Pinchart , Benjamin Gaignard , "Andrew F. Davis" , Fabio Estevam , Jerome Brunet , Nikita Yushchenko , Pierre-Louis Bossart , Lars-Peter Clausen , Joonyoung Shim , Matthias Reichl , Katsuhiro Suzuki , Kevin Hilman , Kai Vehmanen , Takashi Iwai , YueHaibing , Russell King , Krzysztof Kozlowski , Daniel Drake , Tzung-Bi Shih , Ludovic Desroches , Kukjin Kim , Ranjani Sridharan , Dinghao Liu , Codrin Ciubotariu , Cheng-Yi Chiang , Chun-Kuang Hu , Bartosz Golaszewski , Philipp Zabel , Jonas Karlman , Liam Girdwood , Nicolas Ferre , Chuhong Yuan , Robin Murphy , James Schulman , Inki Dae , Masahiro Yamada , Mark Brown , Christophe JAILLET , Dan Murphy , Matthias Brugger , =?iso-8859-1?B?Ik51bm8gU+Ei?= , Vincent Abriou , Peter Ujfalusi , Jernej Skrabec , Support Opensource , Marek Szyprowski , Jason Yan , Stephen Boyd , Pankaj Bharadiya , David Rhodes , Seung-Woo Kim , Sandy Huang , Pavel Dobias , Philipp Puschmann , Kyungmin Park , Vishwas A Deshpande , Daniel Vetter , Colin Ian King , Kevin Cernekee , Lucas Stach , Shawn Guo , Peter Rosin , M R Swami Reddy 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" On Tue, Jun 23, 2020 at 10:20:43AM +0900, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > snd_soc_dai_digital_mute() is internally using both > mute_stream() (1) or digital_mute() (2), but the difference between > these 2 are only handling direction. > We can merge digital_mute() into mute_stream > > int snd_soc_dai_digital_mute(xxx, int direction) > { > ... > else if (dai->driver->ops->mute_stream) > (1) return dai->driver->ops->mute_stream(xxx, direction); > else if (direction == SNDRV_PCM_STREAM_PLAYBACK && > dai->driver->ops->digital_mute) > (2) return dai->driver->ops->digital_mute(xxx); > ... > } > > Signed-off-by: Kuninori Morimoto > --- Acked-by: Charles Keepax Thanks, Charles