From nobody Tue Dec 2 01:50:56 2025 Received: from sender3-op-o15.zoho.com (sender3-op-o15.zoho.com [136.143.184.15]) (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 C07892C0F78; Fri, 21 Nov 2025 14:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.184.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763734358; cv=pass; b=VtBFkXyA4mG1ICWZRsnSkynl4PzcYFi3uO3mZyhmW6Dniqc525v3iyyyB+x2UHuw+JBYl4UqvjQ+KTgti3oMqb0i7lAc/vZgLWeeX/ulp4l46K1X8ThsVbviVS/boNMBI2D+FJweS3Tm7RYm3BUmINdOnZKL4lSjGRPfTyz52XI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763734358; c=relaxed/simple; bh=U5/e7P29lKlkUX4b8STHb32Dh50bg29aLAgjK7aYkI4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XV9/PW+0xdyIHnn2NZHSoft/QDwnNaePRujJkX5D8lVlhFXedIzwme5l8BIuadgObulBqCknZnHsrasWomjb+fym5pWpF4gS4cw8SsWkdP6k5V7W3eJwJwnNiQQ0JWZJVFBr7594ePKA7dQsIs0Nr9BWDZ2R67yirhhxhdkxJuw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=harin.net; spf=pass smtp.mailfrom=harin.net; dkim=pass (2048-bit key) header.d=harin.net header.i=me@harin.net header.b=bRfkTTEM; arc=pass smtp.client-ip=136.143.184.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=harin.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=harin.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=harin.net header.i=me@harin.net header.b="bRfkTTEM" ARC-Seal: i=1; a=rsa-sha256; t=1763734343; cv=none; d=zohomail.com; s=zohoarc; b=PMSTOLw0LMH0neiCva79PMOt3b5UD9pXnI/LNixc1rivk9a2nQC7OjTNW/kYbshwdTD8RUI7lI87DqWOAv0K5D9q3ScLsfXfYg+OYliCWdcsXLznfqFTpICMEWQ/Af3FzWqtj53hMkxdW4dimnhFLQQeyb5wf411ow/9DPX4fjw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1763734343; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Pc8fYETImu86tY789NAksTljrtHo8+Ce0lBVCcBIvrI=; b=fr18cdF+RM752zjFrSxiYiySAAoFtev+3URX6uNF6Wpdp7qILincfMNlKClYQDYwYFNH7U6qq2L5lemyjPmvt/+Fx4cFeRcv+Uy15VcK0gwF9EoucOAiClW/g7hf8PC+pqAQUADqULf7i0jfV1fhqdl5cGnIH7wRA3EijwQL2S8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=harin.net; spf=pass smtp.mailfrom=me@harin.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1763734343; s=zmail; d=harin.net; i=me@harin.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=Pc8fYETImu86tY789NAksTljrtHo8+Ce0lBVCcBIvrI=; b=bRfkTTEMnHm11q3e0UKQRwzZLX2JyFHpBEqG9U3MSJcCXWzKzWJTl0ymiNkL5/fm ZY/n16LUUZyB+tFMzHap01TdDc1F9KYc2PeON1JH22bA5WC39O5v8+KHXFlj+a67ThB xrV7bw7SiOdCApOedE8TgUhmhwrKOUHK9kEahs5jqCAAgjjE9nsPUmotCopIa9b9oh9 GyJ2NqXbfLBAysm0sUQhJTB86JTqIlhDK6rfgzUIjBMxr/Kkozvv58K4oh1lgkbkRdT TuuYpACuB96+BiSEa7oLwfDJsgszPuzvCEewcmGDUEIxsCuQj09stceGU19ic5CE6Z/ ccGgCsZG4Q== Received: by mx.zohomail.com with SMTPS id 1763734342396726.5293653771237; Fri, 21 Nov 2025 06:12:22 -0800 (PST) From: Harin Lee To: Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Harin Lee Subject: [PATCH 1/6] ALSA: ctxfi: Add hw parameter to daio_mgr_dao_init() Date: Fri, 21 Nov 2025 23:11:56 +0900 Message-ID: <20251121141201.850931-2-me@harin.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121141201.850931-1-me@harin.net> References: <20251121141201.850931-1-me@harin.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Add a hw parameter to the daio_mgr_dao_init() function to provide access to model-specific information. This is necessary for proper configuration of S/PDIF and I2S output ports on different hardware variants. Signed-off-by: Harin Lee --- sound/pci/ctxfi/ctdaio.c | 2 +- sound/pci/ctxfi/cthardware.h | 2 +- sound/pci/ctxfi/cthw20k1.c | 2 +- sound/pci/ctxfi/cthw20k2.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/ctxfi/ctdaio.c b/sound/pci/ctxfi/ctdaio.c index c0c3f8ab8467..10d0a7088718 100644 --- a/sound/pci/ctxfi/ctdaio.c +++ b/sound/pci/ctxfi/ctdaio.c @@ -390,7 +390,7 @@ static int dao_rsc_init(struct dao *dao, hw->daio_mgr_commit_write(hw, mgr->mgr.ctrl_blk); =20 conf =3D (desc->msr & 0x7) | (desc->passthru << 3); - hw->daio_mgr_dao_init(mgr->mgr.ctrl_blk, + hw->daio_mgr_dao_init(hw, mgr->mgr.ctrl_blk, daio_device_index(dao->daio.type, hw), conf); hw->daio_mgr_enb_dao(mgr->mgr.ctrl_blk, daio_device_index(dao->daio.type, hw)); diff --git a/sound/pci/ctxfi/cthardware.h b/sound/pci/ctxfi/cthardware.h index 2875cec83b8f..d29b4e5b3fcc 100644 --- a/sound/pci/ctxfi/cthardware.h +++ b/sound/pci/ctxfi/cthardware.h @@ -167,7 +167,7 @@ struct hw { int (*daio_mgr_dsb_dai)(void *blk, unsigned int idx); int (*daio_mgr_enb_dao)(void *blk, unsigned int idx); int (*daio_mgr_dsb_dao)(void *blk, unsigned int idx); - int (*daio_mgr_dao_init)(void *blk, unsigned int idx, + int (*daio_mgr_dao_init)(struct hw *hw, void *blk, unsigned int idx, unsigned int conf); int (*daio_mgr_set_imaparc)(void *blk, unsigned int slot); int (*daio_mgr_set_imapnxt)(void *blk, unsigned int next); diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c index 42b90c9b2ee9..60cc1d14453a 100644 --- a/sound/pci/ctxfi/cthw20k1.c +++ b/sound/pci/ctxfi/cthw20k1.c @@ -1031,7 +1031,7 @@ static int daio_mgr_dsb_dao(void *blk, unsigned int i= dx) return 0; } =20 -static int daio_mgr_dao_init(void *blk, unsigned int idx, unsigned int con= f) +static int daio_mgr_dao_init(struct hw *hw __maybe_unused, void *blk, unsi= gned int idx, unsigned int conf) { struct daio_mgr_ctrl_blk *ctl =3D blk; =20 diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c index 55af8ef29838..1a085e7e5786 100644 --- a/sound/pci/ctxfi/cthw20k2.c +++ b/sound/pci/ctxfi/cthw20k2.c @@ -985,7 +985,7 @@ static int daio_mgr_dsb_dao(void *blk, unsigned int idx) return 0; } =20 -static int daio_mgr_dao_init(void *blk, unsigned int idx, unsigned int con= f) +static int daio_mgr_dao_init(struct hw *hw __maybe_unused, void *blk, unsi= gned int idx, unsigned int conf) { struct daio_mgr_ctrl_blk *ctl =3D blk; =20 --=20 2.52.0