From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.44]) (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 16C9D1AE877 for ; Fri, 10 Apr 2026 03:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775793282; cv=none; b=iXiP+Up67Xx+yKvRFj3l2iTg6RlhGeXN3ENucyPgoS/LYNKW7NLFCffg8amg0RMWFUek141FksfMqIuhdJUIsrhkQWiGmNBVhxsNEthxdu13EMZ4SKeD8wn1z9fGrgnQhF9gg08gAwivfg77nd9fR7AyDSrI42vqc28YDb2zrP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775793282; c=relaxed/simple; bh=uLZjCVL90egFhMKIG9W8w6tP76Wt6+sx02EZMg6m+68=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=XB/H+dkM1D/f3ISrS5IiDge2sCStBwPgHeYtxmhpEt1Oq5INjvCqgsAB+dXtg+KQLKunbx/HLS6eRT/eqSRfMn8oieZ+oK99KI4hNnc42W2+lyCvAqmKKsJTM4QVrljMjXyJAplJ+lHrOrNu28HBlv4TxhXNSGvxdpsRerdYix8= 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=mzNUVEyh; arc=none smtp.client-ip=74.125.82.44 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="mzNUVEyh" Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-12c2575ff49so1587154c88.1 for ; Thu, 09 Apr 2026 20:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775793280; x=1776398080; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=CzhlPyoVy4IxHhj2huf9peZC2TywBEqKX56lgPLsURk=; b=mzNUVEyh1IMdHQktyes+wwdSCY8rIYJjNo0lny6HZdHf3uXgQACmVPk1jiaVPdZecy H336M4OxvC8vvv6oq2Ik0iFLVZ75yIygQqHvPpt15FF7dECTdOCoO2a54uxXRVdsKtpY joc2N9oGhjVzEmkpHsvjDU/1dKifXzIiBFG09ohZLBZJ88RHJmZyQQ4yQnZpUqEQzz8A UrNoA/4CLKHHWD30ZBYW1P+hM0SLgsSxcdqGiTfK75GhNxTgX3LXML1dPoWXvMsd9oHl oTa3rmNYMoSiSRxfUVwhPNDbRYqSgRX3+lmgJbH7l+gYqDCu7mfhPhs1Q8TlKNFM3cwU QZFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775793280; x=1776398080; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CzhlPyoVy4IxHhj2huf9peZC2TywBEqKX56lgPLsURk=; b=qYq6CVnDbOQTuhVPZl3d2Ik1vkyE7NbAODm638I5pcaviu4jxEpEzk33c+9GoYV00i R3t5mmujcP6GjNtMUn/NEbPwJtzt/1kwTwRbOZ8dYHHzvblvUPXiVVPwfE/F8DC4Bq1W LPfwpWazgAPui0404GU9R28UQ7PxKz9/Zt5wBtQH1bT/wYO91P7S92rILCoguys3UIom m4D4UHoOSB45MdCwgJqk2mwRb8X843RlskOP+5a7DtYQ0o7TwpVAaIrGTGEXgqfTW5hy dlMCq0xad5jQuWiVpb1y6itI2r123fB6x5NGrcUkCkTigTXveZwnlUcRpbg7s6BTACgT dBew== X-Forwarded-Encrypted: i=1; AJvYcCUT42AAgMztRNX6E29Ek+7cmGOi72Adx45rIpdK6Lf4dHVHJwVMt4O6DpT/kn8WfIFfJI5VtS4NRurDtnM=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5H+4KrQsZKVX2gHsP8+QC1IRQDNB9R8m4mczwVYlzg2020l1M gYRzpHySVvgaYVUL9j2CB9OZRqWhlqOkpkWUJzB6rOjytOSy0cD1bzJl X-Gm-Gg: AeBDieslGbBtVKsi1xcum48fP7e/+ZxY0MQvVYW7IV8ZtWxtFxwTAYX5M+iPMQgYc8m ulEjewUC6y8sspY2FNKwGPgS1XLJwQH7dZ68RMT3CHfzM3QykBh+GyiSTHE7/nS6iaCY9a5pROX VmcVuS8hOMSskzHYgncxnQbBHY67PmYBwLltdW3LcAR4YQrj13j4iG8oGFat4s3uyycLOFrpU/W AHShCw+3H3/SeN/RunLwhGd9ixbnM+x3PMH9N9nHF9e4/Bn9GY5QyLBwBU2glDCxOBXj4DJdsPz VQDqVTfba70JZ3jTQA4Ilyc0wYZtnS1KoOvVpaZrONMJd6V51/xwMlZDBrpH72eV2/LYdNH0R4U Z7TmG3XLD2kOhmWTFnVhgcTIrR5orWFyhfdidxiPHbzbzxgjUsys+bZ7wch/mEokAx2wEFEyo1G mO5Lswq1vGyb1wCSo+HXbYlKFh1k5u2naLNC61iWpZa9yYDq+vXv05ou+ucSy9hnjMaeqlADVOn jGl X-Received: by 2002:a05:7300:3723:b0:2d4:afb3:7b00 with SMTP id 5a478bee46e88-2d58a2a1bfbmr1070447eec.28.1775793279924; Thu, 09 Apr 2026 20:54:39 -0700 (PDT) Received: from [192.168.1.18] (177-4-160-195.user3p.v-tal.net.br. [177.4.160.195]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2d5632a2a06sm2495371eec.30.2026.04.09.20.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2026 20:54:39 -0700 (PDT) From: =?utf-8?q?C=C3=A1ssio_Gabriel?= Subject: [PATCH 0/2] ALSA: sc6000: fix board configuration state and resume handling Date: Fri, 10 Apr 2026 00:54:31 -0300 Message-Id: <20260410-alsa-sc6000-pm-v1-0-4d9e95493d26@gmail.com> 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: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXMQQqDQAxA0atI1gaiDEq9SukijhkbUSsTLQXx7 k51+Rb/72ASVQyabIcoXzX9zAlFnoF/89wLapcMJZUVOaqRR2M0XxERLhO60BX0YA7kAqRoiRL 0dw2fr9u2tYP49X+B4zgBp15BRnIAAAA= X-Change-ID: 20260407-alsa-sc6000-pm-4fd109aaf04f To: Takashi Iwai , Jaroslav Kysela , Krzysztof Helt Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?C=C3=A1ssio_Gabriel?= X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1773; i=cassiogabrielcontato@gmail.com; h=from:subject:message-id; bh=uLZjCVL90egFhMKIG9W8w6tP76Wt6+sx02EZMg6m+68=; b=owGbwMvMwCV2IdZeKur/u2bG02pJDJk3Smq+OelbVohtko/mfr2YNSlF4Gz46ROvE2dEfkjJn maYpunSUcrCIMbFICumyLI6aZHlnq4HV+vjVnjAzGFlAhnCwMUpABO55s/wP6Nq0rvoKzUr3pud /WfwLP/IjwumZ5Nz5q/jrvm22O5yQSvDP10RY8O/CfPD/+mcO7u951Pd7ukBlmXpmncXH+KY+z9 9HyMA X-Developer-Key: i=cassiogabrielcontato@gmail.com; a=openpgp; fpr=AB62A239BC8AE0D57F5EA848D05D3F1A5AFFEE83 The SC-6000 driver has to program board-level DSP routing before the WSS codec can operate correctly. Today that setup has two related problems. First, the probe path may auto-select IRQ and DMA resources, but the SC-6000 soft configuration is still derived from the raw module parameter arrays. When irq=auto or dma=auto is used, the WSS codec can be created with the selected live resources while the board itself is programmed with unresolved values. Second, the driver still lacks suspend/resume support. The WSS layer can save and restore codec registers, but the SC-6000-specific DSP routing and MSS initialization are done only during probe and are not replayed after resume. This series fixes the probe-time resource mismatch first and then reuses that cached board state to restore the hardware on resume. Keeping the board programming in a shared helper also keeps the old/new DSP split in one place so probe and resume cannot drift apart. - Patch 1 stores the computed SC-6000 board state in card-private data and builds it from the live resources selected at probe time. - Patch 2 wires ISA suspend/resume callbacks and restores the cached board setup before the WSS codec resume path runs. Signed-off-by: Cássio Gabriel --- Cássio Gabriel (2): ALSA: sc6000: Keep the programmed board state in card-private data ALSA: sc6000: Restore board setup across suspend sound/isa/sc6000.c | 193 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 132 insertions(+), 61 deletions(-) --- base-commit: 4c468a99786e2cf41bf7b2c95064472e99a6776f change-id: 20260407-alsa-sc6000-pm-4fd109aaf04f Best regards, -- Cássio Gabriel