From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (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 78DAB3D9DC7 for ; Tue, 14 Apr 2026 11:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776165259; cv=none; b=B5hTowPSSp6XUXojGfKxZXzBY0E0mb/Uly5AYQ1hugWqvCALL63Eq5RoFc/+Y+YHyACPhbX4EF+J/OdV2DGx9V2aLUXoGc0ZzE4wp2R3gBMLqoWheHYNWpcCRIx+mzStn/0SkSsnBccOo1qQN2UfGS5tbcWLcddVwKzwwrDim0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776165259; c=relaxed/simple; bh=05izLorHA67d2cUzAOTXsLLbDWwmUAoKA5th1n5pYzo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=maa43XPhzfTQlTIx67V5IqSZuRHFbIWVj8PqXFF1D7Dv7e765KTyry+zn0mThT4URHXlWAMhYGrrlD7lYEXJWoerLaN2ClPVNkWyUTMt7aHcgNOwb43UPKUT/yoXqz524L9BKEbKhjutmoGfqPszAPZ4vYBIYorX6WtT7Fn+SbQ= 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=Bicz65Xk; arc=none smtp.client-ip=74.125.82.172 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="Bicz65Xk" Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-2d64c756111so5936376eec.1 for ; Tue, 14 Apr 2026 04:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776165258; x=1776770058; darn=vger.kernel.org; h=in-reply-to:content-language:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=FzhhgXhlTTjemePB7VTwbmZj92akxNUuHsLGFCiFZRg=; b=Bicz65Xk6k6Km7g5OalzBVwsjzUN/ypt+jZtKOGG12kbC7hyeLb+w1tsq4kTUKdijo iq+qkinX7iApvfuODEiXu7wcevOm3LF4JmSFjb3uI8oOwf9SVOBTi1mVi5d3Ea/epBsd LoPlKYZ07akgM/yzCDRaA9pt5x6cKf32HZg+c1bHuKZfuRqIHRYnCWrZYQWTQfWPZUuD v09ey2JCu+KVLPSma4jydgrWcEkmHUWqwsDC/b9oaXsiOy1AFpW9eOpjL6Vr0k01XI+a 5vf2c4W7THjA+o4bMIzaKOpARYFIZIqjTfubZZXvYwQW3fIVCOJ/VhHEpmFVldFQZZ0F 2VAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776165258; x=1776770058; h=in-reply-to:content-language:from: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=FzhhgXhlTTjemePB7VTwbmZj92akxNUuHsLGFCiFZRg=; b=OCrX/iCLb7iB0PZmUD1Z/AZNM9IOgcXQHcWZiRVm6p7F/KQODRDxgURZkeXeCbJpXR HXSzGS7a8CkhZl+llUrwUjpNaoD3rdpFKBAQ8gCmAcHRJJFIVvwZkVXuehc6wx32owfu /ap/a94N8F1fcgGMwMxNJ6Y5in7I2rDHa8RpovO51he5a8E+KsOyb0+Z4jDE9BmmL49j E8/LEyg/de1InqSUekc4/xrSgk8iyq5oUFVf/Hn5p2atD3dsq156mrQKqvSZwT30fy77 pXH22LDrcyBUFqSjfHuzKlD0qMAhGwMzoxr14tKQLc5ERA6KRW1bZGsHs07t+Wh/qv1v JZWw== X-Forwarded-Encrypted: i=1; AFNElJ+B6NsnZ/JZhuS7Jcp9w1Yj468J4u+8b8H4eeunz5sDRG5TRMJTPlfBjKrHqpnpwtd9iU3MS6YUDXMlP0s=@vger.kernel.org X-Gm-Message-State: AOJu0YxiQmyG/Ndy8NVlbdqM5/HuHe5xO2JkOXdk1UNHfioWPQKCU63s 6TCxJ9CwYx4A/ZzxfipiopKO9mwlwsBND18TIPq8w4TeGn2AzN7fAZ8b X-Gm-Gg: AeBDiessrg2Nd/BSElqsjJhxpmig6aiUr07WKZIzBGaeaDo3Ieb9wR+uXbU5Y4SnSM5 wAG9w8PixoFPIbuajEdKovZRFAt74B+ZfmpVvgUzR1l8Q6XQ2foQIBNdlKqrnRiPFni/WEUrFQC 13ylmXi/+guOkxnHvdcTebiyuZZshb+YOIgj7GuRBaKPWeQ3+wZBieEgHPm3Ns9zKlyLQc2qQhX +/2UELJU+UpzfEQWaYxIljNBPjN7fyQBZZ6pJ9Q7gvOeY19+G74IK0qAJ8Rp8JowZGupBmk18Rk ccoLS73mJfot3AQUC4ukPsxULWw4zl44dHvl5ILHMifT/yazTCIZ+73+xZzm8zXOCySTuJl5pzB I1ANz1Cy35BUmbw2z8DjkXK/3F6tSRZ0AB80KUy1xkQGAS3hIzXT5pfYUd2NwItntUyvr/9I8zO NrkMipId5UK7ieTUcGdsv81W2JNEd0O3RToD4B7HkcxFUbZRCuR45kaLEwWlkYBZuta1XZNHdt3 feW X-Received: by 2002:a05:7301:4586:b0:2c5:220c:5673 with SMTP id 5a478bee46e88-2d586380bf9mr8982937eec.5.1776165257385; Tue, 14 Apr 2026 04:14:17 -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-2d55faa556esm24392252eec.8.2026.04.14.04.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Apr 2026 04:14:16 -0700 (PDT) Message-ID: <9fe289a2-b548-4680-9070-7558c516d09f@gmail.com> Date: Tue, 14 Apr 2026 08:14:11 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ALSA: opti9xx: restore snd-miro state after resume To: Takashi Iwai Cc: Jaroslav Kysela , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260413-alsa-miro-pm-v1-1-07cc1ce3463c@gmail.com> <877bqat3y9.wl-tiwai@suse.de> From: =?UTF-8?Q?C=C3=A1ssio_Gabriel_Monteiro_Pires?= Content-Language: en-US In-Reply-To: <877bqat3y9.wl-tiwai@suse.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------KepiRC0d3E23dnQrI8UC3UKz" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------KepiRC0d3E23dnQrI8UC3UKz Content-Type: multipart/mixed; boundary="------------zHW2Xf08qRqMoGTjHBZa94Wm"; protected-headers="v1" From: =?UTF-8?Q?C=C3=A1ssio_Gabriel_Monteiro_Pires?= To: Takashi Iwai Cc: Jaroslav Kysela , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <9fe289a2-b548-4680-9070-7558c516d09f@gmail.com> Subject: Re: [PATCH] ALSA: opti9xx: restore snd-miro state after resume References: <20260413-alsa-miro-pm-v1-1-07cc1ce3463c@gmail.com> <877bqat3y9.wl-tiwai@suse.de> In-Reply-To: <877bqat3y9.wl-tiwai@suse.de> --------------zHW2Xf08qRqMoGTjHBZa94Wm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 4/14/26 04:07, Takashi Iwai wrote: > On Mon, 13 Apr 2026 21:45:34 +0200, > C=C3=A1ssio Gabriel wrote: >> >> snd-miro has no PM callbacks, so system resume leaves the OPTi >> master-control registers and the board-specific ACI mixer state >> unrestored. >> >> Like snd-opti9xx, the driver needs to reprogram the OPTi routing >> registers before bringing the codec back. snd-miro also keeps mixer >> state in the ACI block, so the codec resume callback alone is not >> enough here. Save the ACI mixer state on suspend, reinitialize the >> OPTi and ACI state on resume, replay the saved ACI values, and then >> resume the WSS codec. Hook the PM handlers into both the ISA and PnP >> paths. >> >> Also initialize miro->card on the ISA path for the existing dev_*() >> logging and keep the cached solo-mode value aligned with the value >> written to hardware. >> >> PCM20 radio tuner state remains outside this driver's PM scope. >> >> Signed-off-by: C=C3=A1ssio Gabriel >=20 > As it's no trivial change and we are already in the merge window, I'd > postpone this for 7.2. Or, if this is the very last piece of your > whole changes, I can try to put. Let me know. This is not my last ALSA outstanding piece but this is not urgent either,= so postponing it to 7.2 is fine with me. Please defer it to the next cycle if its proper to you. --=20 Thanks, C=C3=A1ssio --------------zHW2Xf08qRqMoGTjHBZa94Wm-- --------------KepiRC0d3E23dnQrI8UC3UKz Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSrYqI5vIrg1X9eqEjQXT8aWv/ugwUCad4hgwUDAAAAAAAKCRDQXT8aWv/ug2Wj AP4/NfBvlE4+ZJNQyHNs0ZWQvdERD+r5HLo48LCrElWIwwEAhvbuTQvy2RF+kEJ0MLOJ/rpCU3yh 4iW6ffWLJ2oczw4= =Z281 -----END PGP SIGNATURE----- --------------KepiRC0d3E23dnQrI8UC3UKz--