Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp106345lqg; Fri, 26 Apr 2024 09:58:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXB1afCWDcPMKAu4NSKguEKg3mTztO56+om99jM02LJNV19PLmsAodexgI3FeFb7e17XlQmjRktSKZYX/2SFjSnMK7yxk1AN4uvwl1H4Q== X-Google-Smtp-Source: AGHT+IFz+Xn4eeIDKxNahERwk4xHR87R6721ZygMts45a2mCfb+o83HupM3t974bTrzIyWTGMRo5 X-Received: by 2002:a05:6a00:c86:b0:6ea:bd59:9389 with SMTP id a6-20020a056a000c8600b006eabd599389mr3654981pfv.8.1714150733648; Fri, 26 Apr 2024 09:58:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714150733; cv=pass; d=google.com; s=arc-20160816; b=iwNRhEzXmlJXSBsRLehTo/VCaWjMAPGQZQwrCgoe7Df8GaoU/MiAOIEjtr02D0wpe+ yjDzeacJbwU2SdwqKnJ/qRp8mNuvoVAFdkJTN5o4V01SrTmsXBZR6DhIdNMdlAgsgipj /rKHES8EStbV667IPXBi+rgI5NpvZOhokmrVFIfgNW73snqRYSxDP811dkzeH6TyCtON F7ES9i5r/YvCRjDwRNwByIrKuV0TAbvrajsax6zmESJO2e/521bThewCOqvABlZwaG9a P2E5pzg+yaMFOccGOww/F28LPRvdVFWkAnGnEtt3237TWIeyKvo71oUCSFdLoe8rPUnS z1Bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=usivvK38WjvktYZbpdXlYorFChab9V2d8xiA3hJZNWc=; fh=nltZftsxQXuWoLpedj6X+btMoFrrKx13QYCe+HaZVzI=; b=lz1B6rgOG1H4tWa+Xwp5582eFziIBu+407032Izo4upfw5iZRkkmtfpLmVz4yGs8MT NoZM8oCiwCMxUuu6LjESLHnaHWUhScm8qUZw/RX/SuvRoWpngLtlJHK0eTBaxUw8iCjp 3uMKymOtYQpEItwrz/eHFSLU8cj75ynq+Kv7OjjK/oszPVIUBTu6feMXpojKjeGkAlXX 9/Z9IcJE+MIv2pvE2xDEz6LYSQV6MrIDomqSZ2Ol894doXSEkbM0VKd3Q4RlGyIAD0VO 0nMhIcboXfTn+yTtkXYU8jufVyhHeCc9DT13Rxs1/tZEiM9tI2ksowQnYsKAZ08Io2BC ImGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ghnuW8yd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-160427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le14-20020a056a004fce00b006ea8ed74f58si15595066pfb.317.2024.04.26.09.58.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 09:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ghnuW8yd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-160427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BB6C281138 for ; Fri, 26 Apr 2024 16:58:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CF5A17107C; Fri, 26 Apr 2024 16:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ghnuW8yd" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DC7A16F914; Fri, 26 Apr 2024 16:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150619; cv=none; b=d9IIGYXRQue+DztGWE0H2ZuYD9h9VZtUESKkhT03kO603yuvLPIl3Nc9kXrecFufDjmnEbQ7pI5IAaVNzLnLfygZGxIxny+DvUwTXK6k4B27WaiVn0Eqv1uhq3hQzAWapJcxZJEUy67ff8kJgoPfOE52Ops81mJ4YrX7QtmhpAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150619; c=relaxed/simple; bh=/jnaUB3Eb1FdwMsrUXBpAK6Q7IzWpVBENDZQ5igeM7I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HwHSbUyKxsMyZiPBImB+M8FRV5JYmwgh7IM6v24GVJtiq3qiqc8AK6x8V0wik4C0OeztD2fGybv7nkC5e+l4yANO3G4V/sEic0lmzLRDl9VXir6U1nra26zzrB9XeZsFchKYOOKU+SYq3fN1Y7K2FMb2touiXyNt4MCk+DkJzbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ghnuW8yd; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id E0A8DFF80B; Fri, 26 Apr 2024 16:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714150615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=usivvK38WjvktYZbpdXlYorFChab9V2d8xiA3hJZNWc=; b=ghnuW8yddFB5QeT64qP1THlBFvvFHnib3MohbVWg3GBJyymnSPlCdGuUPNSTW/HydQf9n+ W4a2jQEhK/hU090tJ8CUAQLkJXDJOYlgJMj//OtNZCuxsue4tiRJ4wstUIiLnWIc1Hqe/R I+hRr0UVqAhD7XEwOXmfDT1KcsZtMyBSa5Pia+neDpAG0KRCwoJ9mbXUoqVdxkX/Hcw3bx L5q3/PH2/8Kp6VNf/cdDDq9oCxPXCdHYSA2919fT46ABrsUGU2VYn7AC9kk9FicElV0Z26 Js3R7Rpf86lzokAMjZLry/Yq5jqkLSzAvOQgx85hfeVC8HT3drRVR0UB+EXF0A== From: Luca Ceresoli Date: Fri, 26 Apr 2024 18:56:43 +0200 Subject: [PATCH v2 10/12] ASoC: doc: dapm: improve section "Codec/DSP Widget Interconnections" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240426-dapm-docs-v2-10-87b07547eb5b@bootlin.com> References: <20240426-dapm-docs-v2-0-87b07547eb5b@bootlin.com> In-Reply-To: <20240426-dapm-docs-v2-0-87b07547eb5b@bootlin.com> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Jonathan Corbet Cc: Alexandre Belloni , Bagas Sanjaya , Thomas Petazzoni , linux-sound@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.13.0 X-GND-Sasl: luca.ceresoli@bootlin.com Improve wording in a few places, cleanup ReST colon syntax, remove space before colon, and remove the "codec" parameter in the parentheses of snd_soc_dapm_new_widgets() (there should be no parameters in the docs, and that function takes a card, not a codec). Reviewed-by: Alexandre Belloni Signed-off-by: Luca Ceresoli --- Documentation/sound/soc/dapm.rst | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Documentation/sound/soc/dapm.rst b/Documentation/sound/soc/dapm.rst index 2831b00ae4e2..6096334226c0 100644 --- a/Documentation/sound/soc/dapm.rst +++ b/Documentation/sound/soc/dapm.rst @@ -307,25 +307,23 @@ This is easiest with a diagram of the codec or DSP (and schematic of the machine audio system), as it requires joining widgets together via their audio signal paths. -e.g., from the WM8731 output mixer (wm8731.c) - -The WM8731 output mixer has 3 inputs (sources) +For example the WM8731 output mixer (wm8731.c) has 3 inputs (sources): 1. Line Bypass Input 2. DAC (HiFi playback) 3. Mic Sidetone Input -Each input in this example has a kcontrol associated with it (defined in example -above) and is connected to the output mixer via its kcontrol name. We can now -connect the destination widget (wrt audio signal) with its source widgets. -:: +Each input in this example has a kcontrol associated with it (defined in +the example above) and is connected to the output mixer via its kcontrol +name. We can now connect the destination widget (wrt audio signal) with its +source widgets. :: /* output mixer */ {"Output Mixer", "Line Bypass Switch", "Line Input"}, {"Output Mixer", "HiFi Playback Switch", "DAC"}, {"Output Mixer", "Mic Sidetone Switch", "Mic Bias"}, -So we have : +So we have: * Destination Widget <=== Path Name <=== Source Widget, or * Sink, Path, Source, or @@ -334,12 +332,11 @@ So we have : When there is no path name connecting widgets (e.g. a direct connection) we pass NULL for the path name. -Interconnections are created with a call to: -:: +Interconnections are created with a call to:: snd_soc_dapm_connect_input(codec, sink, path, source); -Finally, snd_soc_dapm_new_widgets(codec) must be called after all widgets and +Finally, snd_soc_dapm_new_widgets() must be called after all widgets and interconnections have been registered with the core. This causes the core to scan the codec and machine so that the internal DAPM state matches the physical state of the machine. -- 2.34.1