From nobody Thu Jun 12 08:19:06 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bHwRG6cKgz5yNcN; Thu, 12 Jun 2025 08:19:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bHwRG5rmxz40pG; Thu, 12 Jun 2025 08:19:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749716346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yj7+0HoK3Az+tktuSUxuUK2PJ+gfg2mxgaxUNqgqXsw=; b=sx3kLMPBfaJv2+S+10A8UVzyB/UC0ePzJbALAI/ibMHr9/WgOg0xkPmHfaCpO2xh9aRCXM W1CWAVusrmvQlEyQm8bEzkNq3wddxrDZGu1ggbe6/N+xqZbCifiD6crCeBmqNQcHc7Ks7g SWzyQWNKXvhzjxDAVMREImURRsb3Pk3l7dCmJum1ngcYFCgxW13AMw9n84fNIQtltux6Db /6wrUcxNrRyLlZGqTqfbEHBVGvGShRCguz63xyPiA6mmrE6QAw1uGVAfwo+yYxNaxmRp2n JZBfSVucXE+cZO3II8PvEJ77/rpymvgSWSCLHXsG74/52rpa+T7h8qlSRg/y3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749716346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yj7+0HoK3Az+tktuSUxuUK2PJ+gfg2mxgaxUNqgqXsw=; b=ds7A4sFDDuMT1lkTcTRBYytvLwcyL2KbdJQIxMt8B/cjw1KEsZ2SCQwXtaJL9dY+uGruG+ jbF+GoPKkX7Aj1eY0LUhg0HMiAFdvCRaTxtcINsyHBAg1AOpEvW2F3pqwRY0rH6KfAPWlo rSYKieMnfoqly2KFd/IgQzszipz74cmDZ3pdlZavnPc5DJ+qxyBF/L5wZWnbN1q4mtGi+l NIJZgyPXHJPiPHmdOCSnQxy5hgkptFyUA1vN5TEpvx5nVqjqXDcP67eVAx2YS9xg3orf0Z aj8GXZ+zHJmQfwlcoquTStqpgiOuO8lIx6eSxaQPDqWkqcvM1sJGx2C6UzjWdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749716346; a=rsa-sha256; cv=none; b=BkcyaeXZ6CIa/skbsCTSk4O/WxiVT7SqXn6qZQfX76lSxDkcz1cIrG02itlPFjOLEDRIAI 8tOV9jhAQDFiNZNRjUpcNlb1pMbjGYXfYKUCYUrXP8pueL3CC2lEWNmizBLii5nTcSNNd+ PgplI4lhGuIt6JilwtcNEAZvKFDOHM4qek9pCtfhLY+J3oZZNq7X+GJXwzaK8JK3RbB/3E /7zy1k8zQX0nbVKeONF10qSSAaB2oxlEkZBGJzOoW+hK1vNeLNkwpITA3AedSWT2Hu9MrG lfbq+J1DV4xJftOqFGwS866QMo22vJUQa7eNJLm9m2RG1XoScdMqXhnqjvDKqQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bHwRG4qDwz13dw; Thu, 12 Jun 2025 08:19:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55C8J6u3060843; Thu, 12 Jun 2025 08:19:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55C8J6AJ060840; Thu, 12 Jun 2025 08:19:06 GMT (envelope-from git) Date: Thu, 12 Jun 2025 08:19:06 GMT Message-Id: <202506120819.55C8J6AJ060840@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Stefan =?utf-8?Q?E=C3=9Fer?= Subject: git: dab9ef544868 - main - snd_hda: fix attaching to some AMD Radeon GPUs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dab9ef5448682c3c35e34d857b17ac1c23445321 Auto-Submitted: auto-generated The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=dab9ef5448682c3c35e34d857b17ac1c23445321 commit dab9ef5448682c3c35e34d857b17ac1c23445321 Author: Stefan Eßer AuthorDate: 2025-06-12 07:47:57 +0000 Commit: Stefan Eßer CommitDate: 2025-06-12 08:15:59 +0000 snd_hda: fix attaching to some AMD Radeon GPUs HDMI audio did not work on my older Radeon GPU, the error message during attach was: hdac0: hdac_get_capabilities: Invalid corb size (0) This is fixed by calling hdac_reset() before the HDA device capabilities are retrieved. This solution was proposed by Andriy Gapon in 2010, but apparently did not solve the problem reported at the time. Approved by: christos Differential Revision: https://reviews.freebsd.org/D50737 --- sys/dev/sound/pci/hda/hdac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 8714f615f846..900578b73de4 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -1278,6 +1278,7 @@ hdac_attach(device_t dev) goto hdac_attach_fail; /* Get Capabilities */ + hdac_reset(sc, 1); result = hdac_get_capabilities(sc); if (result != 0) goto hdac_attach_fail;