From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA11C13A86C for ; Mon, 6 Jul 2026 03:25:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783308333; cv=none; b=nltYHIb6eGbGc5MWwqQQePMBm1lyM7v7IXaigZRu5x27uecwiDjHk5ORhGTqzcE0JSCFrRCIAM/hCtzeLBu61+5r57omUIiKNxaclu3ezEJYLDjOU6LOuOo0hXa9QOsyExuUuhXZBCJfz2S4q59KHvnxiKuL4SdSV2/989FJuxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783308333; c=relaxed/simple; bh=3M4AFgg5AocNGF3AzQgibwDCAQy05KMhECy7Mmf5/bs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=raSnwQ1ZFVSmSNAuiEg/uN0T5cESM+1yh8HGCUVqxqFJut88wMqomvZ0krCzFuxbj7vhHr+chgWG6WtgKSDUSUB5SIDZ3TL1WHtSTqABp6wyrbqTTfOeP7Y+G+I+kO8SVX/BQi6J8fUp3e+bRjkobaBoKWXA4ZSctrCXZfL86rg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M1wAF5uF; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M1wAF5uF" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2cc97653887so6736755ad.1 for ; Sun, 05 Jul 2026 20:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783308331; x=1783913131; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=alpVrOd6n2aWZg+GKi3BWfgonMarNUPCjsDlmyEHlpk=; b=M1wAF5uFcmvUxQFOV9lmeZ3txRWx3tjDcG824HCR6d9DCZXok2XCBeoIktcAFx8dpg Ng0zotB7rvH4Xxfhjq10o0T7pkwIu9P086JWGcNdYvQj07fDi6wH/7JJqRBy26SxLAra jG5pcC6rfQFBQO78h6YjbNUP0PK4v4kPO8eLUVN68DJNz7ihrGXlrs8+HqR6D2hz1rQ6 h8dBSx8rpYfGqNuPTNtDb+Rb212nuZcuHidV7ye8CTuYJ+FRgd1nUU8dVtg116Vtldgz EKRbSJQX06uD/khPOrIOoYeniRbMaE89gSx5yZST5jZeOsFa+K0S4lXrzyy0NM0a2R1Q Snrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783308331; x=1783913131; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=alpVrOd6n2aWZg+GKi3BWfgonMarNUPCjsDlmyEHlpk=; b=CXTWelN10DUAXGafE9hcDYpeLZf59cbb5fZkeAWR+RRf/G2PjpaKKsBH82v5StzsA3 IrK2PaDFxyWa9qiNUQR/bGUdeqp+UP8FJ3xnJuIP3OXXeLl4GoRu4AXHo7+KXCSEr32R vFLyNKuL3577joPEY0IhKyRyG4H+YYZTCgH2S0stX1/cnrlEDS1dVWe/wsDARKP2i7Mj TXHTcKI3V3T1IO8ZSNVAP6TM2DvIuzXcL1VEgr5noYuQ9ZLauv090cZKQXY1sWmj9KHc feKe0m6zXv4+UBHtNE6YkEHZoqr6T7XQroWwFhWw6duc7EplW/UsUqLy84bKQbY53Nhm yaJg== X-Forwarded-Encrypted: i=1; AHgh+RpK/x6/vIxD/H9f9y7aJuGUj+2p65BtdiSkKNlqCcsrA2BHD8nxQEzxZb84LkOYAfVHtY4Hl1oEJraR@vger.kernel.org X-Gm-Message-State: AOJu0YyNwXScuu5rrl7FDfIRnJxMWswEKqxPmbYDCL9+kjRRUFffLOMq sBn0x63QBDMEpSxZ4QHVHwd5qaVCAjsx5Qhw+jH9YAneiX0//jV49KJ5 X-Gm-Gg: AfdE7cmTa2CL8l+R+5olHJOX1tBkkxwTmG/Jn+tmS3eOF4PQBcZCHvldSRg1Ia2bX/P mnmGHZQ5cVdoVrY/7+zSkmASeyhKSemMqDWE4xuVok5ttLCRvKChu9XOV/MLm089pvvZHul8qyb symCemd6nM1X/pV127mHRo0Tovxjc7zBBwGeJ4Hg6vGYsxk4qwY0iXBtRE3N1+2/iZx/1pQre8o WUuOE/hKInXYTDQ+MO9qV0+pxO+88PWqHNRMFo0DzmeW26toHkaDI4ZEquVRrplfzsw+0YCuEOP YhbJxXRrdjcLLO8vuLypPislqEF3aIY6mkpA5Fa7oXKK07W0cNLMk13JRatI4tAhRMpioA3Re+8 MM7MJhxGRjb78HbmOpDjMpzz6gS+DEgyAjStPYXProkfrUKQQAKzfLDloXC6qeWZMVDMTHdNaim KJQmPGxiTtXvwMIQiB/OP8JPArwTPi7JZhev24d5dXv0dvHJcxk38FDmk= X-Received: by 2002:a17:903:289:b0:2c9:ae0b:61e3 with SMTP id d9443c01a7336-2cb97e47c33mr78483555ad.2.1783308331180; Sun, 05 Jul 2026 20:25:31 -0700 (PDT) Received: from [172.20.10.3] (114-137-158-217.emome-ip.hinet.net. [114.137.158.217]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad776577esm41505185ad.39.2026.07.05.20.25.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jul 2026 20:25:30 -0700 (PDT) Message-ID: <61a878fd-1e49-2403-9e63-66544d17861d@gmail.com> Date: Mon, 6 Jul 2026 11:23:15 +0800 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v5 2/2] ASoC: codecs: nau8360: Add support for NAU83G60 amplifier To: Mark Brown Cc: Neo Chang , lgirdwood@gmail.com, perex@perex.cz, robh@kernel.org, krzk+dt@kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, kchsu0@nuvoton.com, sjlin0@nuvoton.com References: <20260630021510.821919-1-YLCHANG2@nuvoton.com> <20260630021510.821919-3-YLCHANG2@nuvoton.com> <66ce56eb-95b9-4915-8658-a1e4d1eacd7f@sirena.org.uk> <3b32493b-b827-e4ed-3ad1-281dc19faf40@gmail.com> Content-Language: en-US From: YLCHANG2 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/5/26 20:32, Mark Brown wrote: > On Fri, Jul 03, 2026 at 11:26:12AM +0800, YLCHANG2 wrote: >> On 7/2/26 23:15, Mark Brown wrote: >>> I would expect TDM to be configured by set_tdm_slot() from the machine >>> driver, not from userspace. I see the driver does actually have a >>> set_tdm_slot() operation... >> Our DSP functions require specific Slot mapping (e.g., Slot 0 for AECL, Slot >> 1 for AECR). >> The standard set_tdm_slot() only defines active slots but doesn't handle the >> functional mapping. >> We originally intended to allow dynamic mapping via UCM/userspacea and then >> apply these settings using set_tdm_slot(). >> How should we implement this mapping according to ASoC standards? > This would usually be doing using DAPM routing if it's expected to be > runtime variable, define AIF widgets for the bus slots then route to > them. > >> Should we define the default mapping during the codec probe stage, >> or is there a preferred way to handle this via the machine driver? > Device properties, this is better if it's supposed to be fixed for the > system. Hi Mark, Thank you for the suggestion. We will drop the dynamic mapping via kcontrols. Instead, we will adopt a static approach using device tree properties. In the next patch version, we plan to: 1. Remove the SOC_ENUM kcontrols intended for DSP functional slot mapping. 2. Introduce device tree properties (e.g., nuvoton,dsp-tx-slot-mapping and nuvoton,dsp-rx-slot-mapping). 3. Parse these properties during the codec probe stage to configure the internal DSP TDM special function and path registers statically.