Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3754180imu; Sun, 11 Nov 2018 23:08:59 -0800 (PST) X-Google-Smtp-Source: AJdET5dkiWYfHd4RuvbjcIsNY4ck3XfjrkcBjuikZkiOPrp5soA/coAQy2Gamzjw1QyyTFdl3saT X-Received: by 2002:a17:902:a987:: with SMTP id bh7-v6mr3025036plb.46.1542006539429; Sun, 11 Nov 2018 23:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542006539; cv=none; d=google.com; s=arc-20160816; b=0upCqjj2ap0k9zPw0nUWw3JdtbhST21Xs7kps7aHQRbkRFXF3afOJ6lUO9WeoGNdcX afiZ7dFWrgBTE3TQ+k74/2rmXtKzIGbpaojSnbLzKuOArVOL7Uo4QDLQSFWYdzJtEvuJ kui82367L1xQBu6VPhbM/iuFHPlNhJm6iA0LpK1pfbAlraXE0Co7/y+xOnX8oQXwB2iF +PJ7qxAz8a3oFDE7oi3oMWEJCWv5W1Z6/rhMoRfspb2LagefYbZ9qnKoTsIV98/rLE7J 31Vw5vBwC8fH2E8kMQxdkMcmhZXpLr0gC37fVJkudebRdMGUURc0D0ENiUy0EM8GiF99 E+wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=tx9b8bZN6yl+ZRYOm3qj+jX8l36IWxPic2FouiRy1dA=; b=1I5JSGlUlN7vVvsWY1ZFDvd9B+tPBniDjo/4nSmM1HydVCCm9yycGBPF4oyYfBcA0k xAvkuXs5os2mjJtch6OwOP+jcVEyJNpvP3t9MF7VImKScfFl9Dyn24d7Ow2WUxQQ5wEa ztdkM0XEF/mn9igtzcTdrKwMjGYoRfSzzQcCYQbndOVmHLPTyhgNRHJfsUNLVmh7DZBD PhjUpDB/1nRbX076SF9SD09Uh5RbKxBFLJtrIMyzwJwjGSQ+hH81OWuIJBRKOGHx6QcV 7eCjv/tzBOQKuZuz8DkdsGU+yNWlsV2Tg4JG/nEqdvJ97ymhLlXeQIoyB6kv3D4YT09Z l/9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@birdec.tech header.s=default header.b=BnNM0rjs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si16544850pgm.432.2018.11.11.23.08.44; Sun, 11 Nov 2018 23:08:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@birdec.tech header.s=default header.b=BnNM0rjs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732070AbeKLQ7K (ORCPT + 99 others); Mon, 12 Nov 2018 11:59:10 -0500 Received: from host.euro-space.net ([87.117.239.2]:56309 "EHLO host.euro-space.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729816AbeKLQ7K (ORCPT ); Mon, 12 Nov 2018 11:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=birdec.tech ; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tx9b8bZN6yl+ZRYOm3qj+jX8l36IWxPic2FouiRy1dA=; b=BnNM0rjsPcrDMMpL/gDRRGVHFR s3P4rY0nszykA0Emnk6taZioIzGMJoXrbWozV9mhHlJTP14HoMwv5JrcsH+9BS1RpyxoDLj6MFwnL ALBOEP/vE50V3YaeOwBcXSzVSEPoSqpmax8ffZSxS1YiCDleZKhqoWKMa4iXawnwuicgh46wjXJnb i47kbQ1BOm91fEe1+zdxazxjHeuNZMY6a1BmWdU/ANMne1qtj60I3oieOKhL5DTXJTUtieNO44+hZ FAGZmeRmxwHCt/pL/uR7Gexqbtw9c4CAVj+W82/KSBDCBfI+db8CsT7LVB8SSaIH+PgynGmIoCbMv vn/Arg1Q==; Received: from x4e33ae63.dyn.telefonica.de ([78.51.174.99]:51016 helo=gentoo0.localdomain) by host.euro-space.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gM6JT-0002vg-SQ; Mon, 12 Nov 2018 07:07:11 +0000 From: Kirill Marinushkin To: Mark Brown Cc: Takashi Iwai , Liam Girdwood , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Kirill Marinushkin Subject: [PATCH v2 3/3] ASoC: pcm3060: Rename output widgets Date: Mon, 12 Nov 2018 08:08:34 +0100 Message-Id: <20181112070834.16979-3-kmarinushkin@birdec.tech> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20181112070834.16979-1-kmarinushkin@birdec.tech> References: <20181105112036.GC5365@sirena.org.uk> <20181112070834.16979-1-kmarinushkin@birdec.tech> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.euro-space.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - birdec.tech X-Get-Message-Sender-Via: host.euro-space.net: authenticated_id: kmarinushkin@birdec.tech X-Authenticated-Sender: host.euro-space.net: kmarinushkin@birdec.tech X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the initial commit [1], I added differential output of the codec as separate `+` and `-` widgets: OUTL+ OUTR+ OUTL- OUTR- Later, in the commit [2], I added a device tree property to configure the output as single-ended or differential. Having this property, the `+` and `-` separation in widgets seems for me confusing. There are no functional benefits in such separation, so I find reasonable to get rid of it: OUTL OUTR The new naming is more friendly for sound cards, and is better aligned with other codec drivers in kernel. Renaming the output widgets now should not be a problem from the backwards- compatibility perspective, as the driver for PCM3060 is added into the mainline very recently, and did not yet appear in any releases. [1] commit 6ee47d4a8dac ("ASoC: pcm3060: Add codec driver") [2] commit a78c62de00d5 ("ASoC: pcm3060: Add DT property for single-ended output") Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 5f479aa61097..1dd851a7b43b 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/soc/codecs/pcm3060.c @@ -198,20 +198,16 @@ static const struct snd_kcontrol_new pcm3060_dapm_controls[] = { }; static const struct snd_soc_dapm_widget pcm3060_dapm_widgets[] = { - SND_SOC_DAPM_OUTPUT("OUTL+"), - SND_SOC_DAPM_OUTPUT("OUTR+"), - SND_SOC_DAPM_OUTPUT("OUTL-"), - SND_SOC_DAPM_OUTPUT("OUTR-"), + SND_SOC_DAPM_OUTPUT("OUTL"), + SND_SOC_DAPM_OUTPUT("OUTR"), SND_SOC_DAPM_INPUT("INL"), SND_SOC_DAPM_INPUT("INR"), }; static const struct snd_soc_dapm_route pcm3060_dapm_map[] = { - { "OUTL+", NULL, "Playback" }, - { "OUTR+", NULL, "Playback" }, - { "OUTL-", NULL, "Playback" }, - { "OUTR-", NULL, "Playback" }, + { "OUTL", NULL, "Playback" }, + { "OUTR", NULL, "Playback" }, { "Capture", NULL, "INL" }, { "Capture", NULL, "INR" }, -- 2.13.6