From patchwork Thu Jun 27 03:51:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13713782 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2077.outbound.protection.outlook.com [40.107.113.77]) (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 815D11758F; Thu, 27 Jun 2024 03:51:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.77 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719460284; cv=fail; b=CcErfOIT0mHo/h5+iEeZ3DhGkRfLilfAEpN/HMUrJAGkEYuFq8jgcPqjVKzX3SR0xWo60q5mHdozuA4W0CUTDpAf5k8moGW4tz6lV/Vy86UAHZpHgHRDpxegU7QwIaPvZP0NaB16SmN++f/YIsnwq7UJu2/pKLiNt4FgYqQ+o/E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719460284; c=relaxed/simple; bh=axerOqYVvYcE5fX/zn+djY26bnKoBYL1CwD53uq+Gn4=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=WVWI8rpCLWsAU3wDOpKZ8USBDB7MPQJ9/oft1vx+uT6tyUMoKRRhtgApMqDILYOz8XLUrrMgh9Mpop8H1OlfYJhRGBIic9yj9fZCUbPsQYnoMSvB7RJZ8rUQgEgDdvTDfCE+Xnj+O+M6L70hqHxbuEcL5t8u6OCQAileS0kkh5I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=jg3kbeFf; arc=fail smtp.client-ip=40.107.113.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="jg3kbeFf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T2OgOVMgtM1p22oIriyz61tALMu6ph88VeJtd3JC6TaZ0nEge8Oj4L54kYuqa2Kbq4/mU6tMeYQAipHUkQHXEwPbk3QbtXjhgiVHFqn/E7t8tuwG48t+6lv44TQzTLZ3Uquw867F1HE8t5v6mgzn4CjNgGG1pu/C5YNJbitkrxlg+Cc/RbwY2O9dePTOJdrbZ84eFRZYT/stM/9xLqzINKdTn1eFdccMJSLb+fT9l94NYF4mEKxFas5oe8ZC24ddtGJWUZJL2g2QoOZziv7M45im5duoak9EnfC0Y7N19QAhXGckEAM/o9oNaCeEY+iioFFvTZd934ni4LjmvqJUsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0ouBg7t/UK1Zowxm6pjkkOfm10v/RnEap4e8YTRBiIo=; b=Gb5Kxj5e1a6oTaX9xHu0Z4kwvmWSbwtA1II4UhZCk6DA2+HHtwh22zXIEZyNMlbVV6IVASWWQrmQIIijYGrHwEb2gU0yJ4buk+9koACUj2geCsjkM9jNZKzJ9u5LSnf0g2KM0elEuvMUvN72sgM5ecWQ02DAbCg0yuuH/mNHWrPpOJKCxBex/8LyOmzDVZQFXaidJkN4U0xEmpWn5ePy9kpoXn9xpEJiOZmPjxpg4hdJN5FR6oUFttsNCIjpMSEn1Z6KQqZKl2drC5OovPQBZKKDMPVHr/mcRAQcn/PfdsAjPUC4K+sE5QOgHrPb5iz3pWq2MvGOk+X81AxJfAskMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ouBg7t/UK1Zowxm6pjkkOfm10v/RnEap4e8YTRBiIo=; b=jg3kbeFfDGVONtfD/8NQIkFk63XJOrXD/uHYsx2Mysc0RoCvoEONB69Qcyw+2dMV9HTXLY8VUPAyesBiCm8DpEgSnv1J28zPXzvVQ319HpfVVfP0MEwB5WHtHc2NHSCFpSmC/dA+VQrdVN8JtEiKC/H8z9AicNIQsmtMnkW3FLw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYAPR01MB5914.jpnprd01.prod.outlook.com (2603:1096:404:8053::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.35; Thu, 27 Jun 2024 03:51:18 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7698.025; Thu, 27 Jun 2024 03:51:18 +0000 Message-ID: <87bk3nqc0e.wl-kuninori.morimoto.gx@renesas.com> To: Alexandre Belloni , Conor Dooley , Jaroslav Kysela , Krzysztof Kozlowski , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Rob Herring , Takashi Iwai , devicetree@vger.kernel.org, linux-sound@vger.kernel.org From: Kuninori Morimoto Subject: [PATCH 0/2] ASoC: simple-audio-mux: add mux-name User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Thu, 27 Jun 2024 03:51:18 +0000 X-ClientProxiedBy: TYAPR01CA0052.jpnprd01.prod.outlook.com (2603:1096:404:2b::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB5914:EE_ X-MS-Office365-Filtering-Correlation-Id: bcc87df4-5af2-4068-c06f-08dc965c66d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|7416014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: kyIdzaHkFXnzsmMRPhhYOXZZtNEYE0mFQn7LEezmTUzVkOGSwvNMkJ1SxMXT176/tRH3mUPLxb0H0Hv0z79JshLTdDGIUOA4wurp0WmtLnE3j7kMh0pUhYRlFsOhccJ0DSASDZVPPJ1+nxAfeKkFZ0EAIK7UaJqxwFfbFMaF+mzR11sLB+X1VwBiI7wsnS/hm0tel3WGGTLwFQKAerheWTBysFGJLKtIKc79J0pDWd2qbuYXTl9/cLsGLy+sTXJhG16G13GsCC70ZmjcfvFqeAJxsxtqsJlwkKISY3hsGd1nX2vGmtjwUnK55CG5FXauJmviGJuRm4WB8K6MD26Uedsf9QYvXPB2VBwd2StBzGBvyCXSMSTOtUMqyHFCjHbSEpSUvDV71nsgjG9Lu0FJM8DFCrqGB1ZtBQxuiT/masAgemGfxTQh063AWNVOV2Hw1lNtJbSsxw5qCX5GBCTPqMAa1RFYC/NXGWe7YP0BgnHTw0uLnmtnSZmxfF6vIW5nEHGNJqnN1Tj4afzMN6+xbPZDxB/1MX6BntsXnmzcJcp2/CVhhvExfQgLJetUeUaHWXAHtYR+IYDOMNLlMKyZdGpBOq4XubPrX6ssTYrDM/MDxfE75QvtVYVR/H8tBdKIGOh+wVwqrCjRZnxMxNmdGAtUZz3n9Jsl3bxXEQxFKQT7okOgRViCg1TGJcOn3DMIM8el7GkfQBHxn4EfX9u+O4fx93sQbQ4/xR4DBZdRI+h0PWYD2VQlFqFR+Jj7eHIbSKVnUVrExdyJyBX/At3D5p6xdM5XTgo9kC/DHp+jPzBytWOTYH2kDuE5LAnagGDb83QqHlOsm8eXoVu/R27FHSeztlRvERJm9Otxd5TuOwLIvaRuVslYRMQvB/S0AyZLhcyvS/eAdc+g0EqYTC/2SCUWrb0NHWp2OsxcdSehuSqMCVj1ZuOqRh6JL2D+HpRCCnZrTR7TYrlWtwbFm1aCvKzFaQn4iXGaQBI1YOAWI3gKW0NLU+/3zBx3zkUXq5pIregwKun/FFeKfy8jI4cvIf7bcjKhcgSCEItRJDbVC8d2LHANYDZevfLQDr84pmVMA29XorTnaqBIZj87rQklhHHkI2codwLA7sYylD773gTGs11AJaJ6+PjZoSWU4lMnVs7qoO9Sn/Se2e52q+ZT/19hHViKNMZ/+88/cBFWv6JAeOtkaZHWkRgGHb4OBlOVJwdV9EM5yJdRlA2HuETQk9br5PXssoTiPR01+VO549/2BRzJjQFpHwlZ6b8L+dEHnIjYBr1EBS48rj3chOwbtogtztC8hKw/SegZdzW7V3VMghNTAp7F33hUjOTp7CGH/Dr4Y0sYzzz1d+rJzkQ/9kG93DFZKyfINL9NsgPFV4jXDCQqi7TBg6jzFzzyh25XfmsIko1aEc6WaFZPrdkjCrU2fR2MMvqqIyOJeC6ceE4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(7416014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dOzx4jc9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Xied5lTTh8TNGdNfRn7fN6awTp0B5ropYYJx2s1/PEuAakxL3jSHjpC+MNUZ6WoucRT2ZJ6f/YQpBuDG0aIf3STPuBYSCe++OE+PxsYbZlmTudrOUTBaJ4k2SdU9YCgLCPQEBeWo7zunDxQUhxGsW8eWEvWiU9i0xcq1BTNEE69j+tAhrmfOMaDS2lP28szG2a+9+O8e4jhU+f0S626ma5phxjfQMMfVCyKVbs1bbpZmtYPWM2uFnK9KODNwuedsTQAX+SujGQkpuT7HauS8mEdEJzncoHKbC2/w575xsluGzqJ2KyzZUYL3e/KUF/RBFBmBKkODdsXKrvFudVZPgwK83pNc2BRvcYw4WNVImY+6fPH3Fj0EIGlezKhKgTz8xxqh/gzlKDhi+ZApqZGGEpSKS6tyKdDRosSmu7B6xFdeKgQH6Rc87K8YUVghYwWIH/hfkV6n54/aRlNF4JTb7jhCWDfi7GZRflEaYRBWPz6GX+q3YTpF6fDdKwa5EGVcxA3kzElxOOOemZ7WrTJKXKDKNnQqzl6qsh4ygE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcc87df4-5af2-4068-c06f-08dc965c66d5 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2024 03:51:18.7422 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FUMBFiHHAShFGB6DceFiYlrrFnYOwN6vpDB0hr5wW49Xv7JKm0eOAMLbZj/5HE4Ag45h0BQnEo24l/uYzXMuIubwWU8QsBOLSFPjyD47OctsN5gkIO1qTIn+TgsAPQyc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB5914 Hi Mark Current simple-audio-mux selects MUX by "Input 1" or "Input 2", but it is not user friendly. This patch adds new "mux-names" property and enable to select MUX by own names, like below. Original > amixer set "MUX" "Input 1" > amixer set "MUX" "Input 2" Use mux-names sound_mux: mux { compatible = "simple-audio-mux"; mux-gpios = <...>; => mux-names = "Device_A", "Device_B"; }; > amixer set "MUX" "Device_A" > amixer set "MUX" "Device_B" Kuninori Morimoto (2): ASoC: simple-audio-mux: enable to select MUX names ASoC: dt-bindings: simple-audio-mux: add mux-names property .../bindings/sound/simple-audio-mux.yaml | 4 ++ sound/soc/codecs/simple-mux.c | 55 ++++++++++++++----- 2 files changed, 44 insertions(+), 15 deletions(-)