Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp986834ybe; Thu, 19 Sep 2019 07:02:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXo6MHMfrL5CAQEbtOfDwR5Z8OT/TCWjpMT9qbCldCTKzD6iy+JzbEGKxBc08qTnsDM17M X-Received: by 2002:aa7:d718:: with SMTP id t24mr15052663edq.300.1568901741156; Thu, 19 Sep 2019 07:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568901741; cv=none; d=google.com; s=arc-20160816; b=j0PRHDGqA+FeDfCtcf57UatoHwT0W3ptYt0zCuuDv/KOttJQN1U0a6pQd+c+1Sh/o4 06ymk0SeoFkyG4LpT6ArheQqlWHhNmBxwBHkNqQd/2C31eB0N0+P7oQprI78s4SpnW7n rb3VKSpK1KExNDUjrcaLI0yysb7E4/w8HlMeKck2v7sChUCVsMJDGdBXG+ilvjElKrSW FK0RXDsSXhUKKeKodPJjh9jTk3R7zXdespDp4BdBgQ/k3zAwGP+dD4gbwLJbvPLIFqV6 9YZCPY6ciMfrir9i0uRMpQuELHRrA8sw3ukKPRdBN4B7fCKkLvoe1e1b47fYXST/CCYc yvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QcejNC9fZ/NTUQ3FSm9GGJHJUw8LFfPEgVCIpwJsA9I=; b=oY5PZiBESKOS8zjV5D+L7NMeklUGjiwVTxdSV6/k/PVR+Zv3GUQPPXproYYxgC5r6K xbBR7Hk4hDi/UaQ7rEx4LjgDFtOkHzhvBGCBjoC6VkmkHY7W5X9DBWp4T6430GrinzTm PHVNDMVyw60ISB+/irGS2AikCeVphh2s6XSjEdiUTnF0ZS994J5J36TcNH4vPAFDTPEI gS4bj7Y8MHLsslZBBM8cxTNH8FwjSNLRxqe+0wMwBIWKGIXJGWHrSgeb644Br5U+vqz3 4SPFNFh/QnMGk95vcIhqRKkzh4oJOIQagrTGRQJvGN53tY5YXAw6sAUTVoqoGXSU719Q 9/Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FmYK84Ry; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si5624458ede.381.2019.09.19.07.01.56; Thu, 19 Sep 2019 07:02:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FmYK84Ry; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390562AbfISNzH (ORCPT + 99 others); Thu, 19 Sep 2019 09:55:07 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46467 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388949AbfISNzG (ORCPT ); Thu, 19 Sep 2019 09:55:06 -0400 Received: by mail-pg1-f193.google.com with SMTP id a3so1936331pgm.13 for ; Thu, 19 Sep 2019 06:55:05 -0700 (PDT) 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=QcejNC9fZ/NTUQ3FSm9GGJHJUw8LFfPEgVCIpwJsA9I=; b=FmYK84RyOgnliQ31WHT/B2X1rhvCHXNKlvyGmlVRO6Gpnzh/yL+0IWnFuePQCs0YK7 +EYn5B+vPDFY2t1doWxyw/Wd/JDH+PBoa7As7ehNNs/LaWfDv5hH9QpdJZvm+Yb2diYP DvCuozGD+FhcOyRrTAaTNxWnzHPNP9l0BEObg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QcejNC9fZ/NTUQ3FSm9GGJHJUw8LFfPEgVCIpwJsA9I=; b=uAww9HLVnE3fbESpsaquKwWDTqT858Ztj9tttQq/pvWAsV18Ghv2wmh0KroCd22FYS E4kfJgvWx3ysptm1eychxDAFVfWzrfCNZCmDwK0DndNXm3JGeZmXQGW8y4mY17SsCXq3 Y+y23g92iXJDK/l8ZB5VraoAQDW+QUEmCnqr/5Hg4iL1aTb9yxCx6MoErvL3v/gWsz+F /XZu1qAPohX++CcKpoTziE+SLins/glVuonYgMsWcP4bKNf1pkphTd3ZZKSEiV24UE9s ZRjed+xlyZW+KdfAGZ1J09Uiz1msHVFEUky5PDeS3MJ6UkpdWxlAV3Ns54d96P4BK36M NuhQ== X-Gm-Message-State: APjAAAVdwdeNp/HJpbtLe36KHWDZDWTyrSHKiNuEsKYHWENupukZgh96 PcQcW2jXoGysaBfRhWkc61XsNWUJT/8= X-Received: by 2002:a17:90a:9dc1:: with SMTP id x1mr3790773pjv.98.1568901304488; Thu, 19 Sep 2019 06:55:04 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:79b4:bd83:e4a5:a720]) by smtp.gmail.com with ESMTPSA id o195sm13065184pfg.21.2019.09.19.06.55.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Sep 2019 06:55:03 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: Neil Armstrong , Jerome Brunet , Jernej Skrabec , Jonas Karlman , Hans Verkuil , Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela , Russell King , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Cheng-Yi Chiang Subject: [PATCH v7 0/4] Add HDMI jack support on RK3288 Date: Thu, 19 Sep 2019 21:54:46 +0800 Message-Id: <20190919135450.62309-1-cychiang@chromium.org> X-Mailer: git-send-email 2.23.0.237.gc6a4ce50a0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series supports HDMI jack reporting on RK3288, which uses DRM dw-hdmi driver and hdmi-codec codec driver. The previous discussion about reporting jack status using hdmi-notifier and drm_audio_component is at https://lore.kernel.org/patchwork/patch/1083027/ The new approach is to use a callback mechanism that is specific to hdmi-codec. The dependent change on hdmi-codec.c https://patchwork.kernel.org/patch/11047447 has been picked up by Mark Brown in ASoC tree for-5.4 branch. Changes from v6 to v7: 1. rockchip_max98090: Use phandle of HDMI from DTS to find codec_dai. With this we don't need to set fixed id for the created hdmi-audio-codec device. Cheng-Yi Chiang (4): drm: bridge: dw-hdmi: Report connector status using callback ASoC: rockchip-max98090: Add description for rockchip,hdmi-codec ASoC: rockchip_max98090: Add dai_link for HDMI ASoC: rockchip_max98090: Add HDMI jack support .../bindings/sound/rockchip-max98090.txt | 2 + .../boot/dts/rk3288-veyron-analog-audio.dtsi | 1 + .../drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 11 ++ drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 41 ++++- include/drm/bridge/dw_hdmi.h | 4 + sound/soc/rockchip/Kconfig | 3 +- sound/soc/rockchip/rockchip_max98090.c | 149 ++++++++++++++---- 7 files changed, 182 insertions(+), 29 deletions(-) -- 2.23.0.237.gc6a4ce50a0-goog