From patchwork Fri Jan 14 20:16:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12713949 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21FEEC433F5 for ; Fri, 14 Jan 2022 20:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cctEvgf0aM9LxCmcQtKLv7qRYk7sczln8qraBTH2SmE=; b=oEQCq7348xVNfn E4v27bv/o0A3tnRJdoIDPRAD8k1/ua33iCNtbbObjn5i3ZiaaVF2YbsnBPdoIBsTD95XOx7VA0yzj u4N1NpTQ03CA20wzAwr9Qo/LLCfISi2VBaIuu6B+vgLdFY+NdQ1HgeJuRv50Wo2MXEfTMyEKBuGhm jFPOb/KktY/CMhV+qctK4JLyXMv89lYN6j8+JEv+FZQU/b+M8afsiS/Rw6eR/3nRx8PxW+SHMFumh NjviJahSz9j6DLCNClXJe9ZWaEmJAhbiFL/HGvrA6RntXPRY7i2G6f83Toa4UIt7rkaIv5hYpO4Jn hOtzknVWaB/2CFMQRa4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8T0d-00A9p7-Iz; Fri, 14 Jan 2022 20:17:15 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8T0Z-00A9nK-Kd for linux-arm-kernel@lists.infradead.org; Fri, 14 Jan 2022 20:17:12 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 59-20020a17090a09c100b001b34a13745eso23216676pjo.5 for ; Fri, 14 Jan 2022 12:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1KlPp5hV7fm0qq5cqvD5aoj0BfkxebgR6vlczP+kuR0=; b=hPBL7+GzXtx7Xy9BNRGobBHcJh3in4NXqnnYC06hntRlpfp/vjmD9i9XpuCMkppYe0 KTPskbaS26eaCBp9BJJSJSoDjVC7Re+360GTMca2engSbymUQqzvGV7YvvxDdrJ6Auu1 1qigxd68D5GnHmbXdB/NPhH0nNGBQ1nZC2LHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1KlPp5hV7fm0qq5cqvD5aoj0BfkxebgR6vlczP+kuR0=; b=rFuVGgTo/nLhLn0LNBaRks1g4eEgVVCQHVUZDh2LKRnroimxJBhGvywZ7ReS8kQw+b kjZPqUoBngO9vIJJ1Z8t8zNF1UB2PPpvES/JhMVskP2NucruiwkJalJpD19bIqsWRhV0 ZsAD3vCkLzjXeRHMQdJuFTmoGz6rNdwXwLIOdZu24LgarHsiCnQhbXsTqjtSVoWIuonB j6bl6XPKD9IDiv5oIbcIhpYBxz/EROOfW0eCtd7IX4Qvu3WAwsCWFq8595dbgx+db7Oj yuBUgQTwpf0FgTJWP/xO/Rw0n1QutZyJ0VboBrElRvAi1/zmpi/c1Yx4Wr30JR8RUdt5 hoWA== X-Gm-Message-State: AOAM532Y2ftjGWPmsrET4PVQf0Gik5t8tq2oJ7lmdisi7MxVP6D7cxNy WVrgqrIEqZmWhohJjD1NhX4wtg== X-Google-Smtp-Source: ABdhPJyYDhYmzb1m8B5ltHSl6+g7+4DhFkP602unTzHjzxK1IseRAPUhU48jZq5jKbANYv16P6nwIQ== X-Received: by 2002:a17:902:ea07:b0:14a:45c0:78a7 with SMTP id s7-20020a170902ea0700b0014a45c078a7mr11123208plg.92.1642191430200; Fri, 14 Jan 2022 12:17:10 -0800 (PST) Received: from localhost ([2620:15c:202:201:76ab:ede1:503d:1c39]) by smtp.gmail.com with UTF8SMTPSA id q12sm6599881pfk.136.2022.01.14.12.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 12:17:09 -0800 (PST) From: Brian Norris To: Heiko Stuebner , Liam Girdwood , Mark Brown , David Airlie , Daniel Vetter Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Sandy Huang , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, Lin Huang , Brian Norris Subject: [PATCH 0/3] (Re)enable DP/HDMI audio for RK3399 Gru Date: Fri, 14 Jan 2022 12:16:49 -0800 Message-Id: <20220114201652.3875838-1-briannorris@chromium.org> X-Mailer: git-send-email 2.34.1.703.g22d0c6ccf7-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220114_121711_707511_8F90551E X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes DP/HDMI audio for RK3399 Gru systems. First, there was a regression with the switch to SPDIF. Patch 1 can be taken separately as a regression fix if desired. But it's not quite so useful (at least on Chrome OS systems) without the second part. Second, jack detection was never upstreamed, because the hdmi-codec dependencies were still being worked out when this platform was first supported. Patches cover a few subsystems. Perhaps this is something for arm-soc? Brian Norris (3): arm64: dts: rockchip: Switch RK3399-Gru DP to SPDIF output drm/rockchip: cdn-dp: Support HDMI codec plug-change callback ASoC: rk3399_gru_sound: Wire up DP jack detection arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 10 +++---- drivers/gpu/drm/rockchip/cdn-dp-core.c | 28 ++++++++++++++++++++ drivers/gpu/drm/rockchip/cdn-dp-core.h | 4 +++ sound/soc/rockchip/rk3399_gru_sound.c | 20 ++++++++++++++ 4 files changed, 57 insertions(+), 5 deletions(-)