From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795135502; b=bo/MGE+wjQsfN04sUADyHSbVBVsOXuBVYyXW1/D1UBvqvISv1ne/OUkZ1gkGS96KfL2E 0cHK3F09eePHzOxwSVojDHvZ8WbwZCT21Bg+wF7AwvaLdkdprxUYTJJUrO3/tpQb+C7Iz EwGpRXfq62sFDfR9uXGXC9G22xTRb2HzXIxVai9TOl2/lq9QUQ8b5gpk6GMN7So6CedzZ 528mpx15gkirzxMxsEC44MeOi6p699rVwm9r/Gq/Mws+xnj5AdxZl4I+SCmZDZ1MtZZGT ehhv4Lob41zDDj97leMs55wfNiG2v5vZb2Xh6Euyq3sdKsrqJcH9NPpnXZKU2nLgmCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795135502; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=JRTBHIpTWIqBv7r65/gBAKVj+F4qPH6q/QJn+QQC8WA=; b=lU1fbUHmZcdkQRZw5W4t9T1OUwhMEB3ElLTaLWQAGT90m7F6vthl1gHnzOiuJVcW4Ksg 4crXitPKaUL9nlWai03tiGZQkWtV2qRBCOP6vXqLU1Dg/I6CKFmMXkAeJGGNd5jJzzeLF Ml7zYvc7ScyrNLz0HQt5Tavuze733Zlo16S6TfSZMtieIadKwaOrQ69x+EUnjqPij0ISY dj4Ry07yW+6ffkVJFCwfvUnOWnPgCM5WIfnZcDZ93TWXgwdVyd65hFS5KaOZIpfr4lhaU KbgMhondcSWtvrejgSj1lfQZdxFcphj69Ksfal3y3nPB0+wjJmwA295pBBBGQSd6Oow== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="k5jdjNR/"; arc=none smtp.remote-ip=209.85.221.45 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 669F3606A32C for ; Fri, 20 Nov 2026 00:45:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 669F3606A32C 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.a=rsa-sha256 header.s=20260707 header.b=k5jdjNR/ Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-491971ac844so249263f8f.2 for ; Thu, 19 Nov 2026 16:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795135501; x=1795740301; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JRTBHIpTWIqBv7r65/gBAKVj+F4qPH6q/QJn+QQC8WA=; b=k5jdjNR/v147PjWndPSaowkaaYUjxKZbPyy+9vufOUYKCBt7oJTuUrrfV35VtLkiPG zzZq+aR7MerRh4gzoH257V0QyxeJEdsd2noayoFggVhF4H1eM1BNjee1Mf1lqSWnSUso pweYMgShg8RNhgOjaniDllXJnxqFyyok8g7QSHh4F+DEcXBYf9vFi7D2ymS27Cjv+lx2 DA9cpUWnIyMslfbpb7cLqeudDUOEcR7A8gu6kEyfzOQ3e3cmanoGkkWcZodD1nvD2E7l FLUFV8Ht+js/oju2QPsb4quc0lPcLfSxhY+cyyAe8Hvp2ti0snRj5uEbT98nNJYsmf09 iVQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795135501; x=1795740301; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=JRTBHIpTWIqBv7r65/gBAKVj+F4qPH6q/QJn+QQC8WA=; b=vlPjYAEqWJchfoossQEdMkF0xlhsMYsUs8kY3bbJ7S0NyJiJwrHDY3D3vAuoEsGaHI dWJuaSoCz4+4s/O9VUSccWwjptaJnj9tpulz6w/7y27/tYmaD1OjLQmZmSG0hV/2RGma dEgP0xEvSqZaLkD60KJozmy1M1OHrmRZdvjKlacDDEwFLzAkp6aLLNx5LDFz3qlS66lg i+OihRACjRlkofpK8BaCVKIA9oWCT9DSWbie0RlEJC6x113HnAjmF2WJ2Pcdk3zteyy0 5HBEiV6+KGoMQfpnwW5wKlhcFqgZrRw/ALELyJDBQRFeZdbMXjrZVpAuJJfh4aL5rdMx FRCg== X-Forwarded-Encrypted: i=1; AL+hErEF3QCDBArOa1GmRhVzc7IYAlaw/sdnGs5lgIEsTcsqtosb8aBjG0R6D3Ct4nqIMI1xH6iedw5OVATdzWo=@vger.kernel.org X-Gm-Message-State: APuU4Z9y3A2DqDYgU1rccpIxS3KgKg+ZfO8VzQa7KfV1XMyK/H2V+WPu ntfhxJpLkwtbyiW1kKfxW7wTOipOPdejZef9sjZ3AxN2gCpquWUwg39Y X-Gm-Gg: AZFdTZeyTL39qPc00YR9enyZhE5giKr+a0dpcj5b03px4oGwI6sa9yOb/U/dbs6g1R/ G6ayRqiiCrmLGLbJVrpbOjker9xyDlxXEXfzksQJJfebmiho9VHRwYlIDf7CCI6XeCe21gENz53 oEHlO9sriTe0GIe8ggbvA0oE4v8AWgBUv3gwlNj4ygvQwQtyJ8FMjPMMduvQvspLuZqX+7ha3pg EG/P3bxlKh5TW2yto7oDAIxSsILzXXge4gI8nU71js3l5o343lMo02tmhPCu+/qthkZVJ3itwi/ /J2zoiOhPCwFlcwq9/a0jwd1E5sbo8LvwRaBQXHoSQ1WU7maovr7bGWZXPxZj5F8q2pEkDx3S0V lBwCfVyOfcCnrY+SrZs+47mNed8+o6F7aEyBC/e/ImVKBp9Ub3CK/Fw5emd0wyruGsIckdbvC2v a/5rMHrH72hhxJCy0SUggk46uOQWt8PGxxgsG27eW4BZ7W6yspNuK7Pzy55P2gHIgZ4Yl1gRRpC BvaM8AKZzxDWotOP8mZmy0Eky5PQYwr6xWWluUtwxNM4KAjVAIYcCOJJ7BbU3PAlYlQjtleXZ5E fp2iRauqmRp1h9Ggv/gS0KqEUaAb0pLVFx5sTQ== X-Received: by 2002:a5d:5888:0:b0:48d:f488:f32a with SMTP id ffacd0b85a97d-4abb55183b4mr2133903f8f.56.1795135500681; Thu, 19 Nov 2026 16:45:00 -0800 (PST) Received: from unknown.m0rf30.ray ([2a02:b027:10:5673:5f22:93eb:1bb8:839c]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989b3sm2438480f8f.51.2026.11.19.16.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 16:45:00 -0800 (PST) From: Gianluca Boiano To: Mark Brown Cc: Gianluca Boiano , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] ASoC: codecs: add TAS2557 mono smart amplifier driver Date: Fri, 20 Nov 2026 01:44:38 +0100 Message-ID: <20261120004442.1687225-1-morf3089@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sun, Jul 19, 2026 at 08:05:19PM +0100, Mark Brown wrote: > This looks awfully board specific.... v4 adds ti,asi-port, and the driver programs only the selected ASI, on the pins the datasheet marks as preferred for that port. > I didn't check but is there room for sharing code with the other > multi-book TI devices? Yes. v4 uses tas2781-comlib-i2c for the paged regmap, book/page switching and per-chip access, and drops the private copy. > The tas2781 checks to see if there are one or two devices being > controlled by the driver and rejects a mismatch. Also, is there some > overlap in firmware formats here? Again I didn't actually check. The header has the same layout as the one tas2781-fmwlib parses (fixed header, description, device family, device), so v4 uses the TASDEVICE_DSP_TAS_2557_* values and rejects an image whose chip count does not match before installing it. The body differs: TAS2557 images carry a PLL section and each configuration references a PLL by index, which fmwlib does not parse, so that part stays in the driver. > Shouldn't an out of range value be an error? Yes, the image is rejected in v4. > Does sense_muted get handled properly for suspend? The core mutes and > unmutes playback streams over suspend but not capture. sense_muted is gone. The I/V sense ADCs feed the DSP's speaker protection, so v4 keeps them powered and unmuted while the amplifier plays, as TI's driver does, and sets no_capture_mute. > This won't actually take effect if the device doesn't power down - you > should probably not set use_pmdown_time to force a power down/up, though > that's annoying when the configuration is the same. v4 applies the change from hw_params() when the group is already powered and reloads the configuration only if the new rate needs a different one. use_pmdown_time stays. Gianluca