From patchwork Tue Sep 6 04:48:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 9315599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C2FE5601C0 for ; Tue, 6 Sep 2016 04:51:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0B7B28B5B for ; Tue, 6 Sep 2016 04:51:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4C9128B5E; Tue, 6 Sep 2016 04:51:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3681428B5B for ; Tue, 6 Sep 2016 04:51:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bh8KV-0005KF-V7; Tue, 06 Sep 2016 04:49:51 +0000 Received: from mail-pa0-f68.google.com ([209.85.220.68]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bh8K7-0005Fg-Ff; Tue, 06 Sep 2016 04:49:28 +0000 Received: by mail-pa0-f68.google.com with SMTP id ez1so10296595pab.3; Mon, 05 Sep 2016 21:49:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fpbmlsWE33G8Pj+gLCvPXnq7p2me/Tb1Tev1vWCr/Io=; b=R7jzdp6o0upA29KJbtAnjeJeZ04C2G35QjWLQoybmdJLMq0sJ4ZGDgbwlRV59JozGk Di2BNQ0zwnKwe32Mp34XWWgjX8PdHr7Vbxm6SaMxv2dVzqJSCSqN+geq9Z3dj5XqZLlF daKysHG44p9xU59H0M/tj/puR4qWsxuEsAEoYbZT1KmxHm8QFeKzNfASDEqaya4xlsgz rBzqOEiQQUkkMR7No5Ao0uG6LSZuW6kEVvbnEHwIaAevXXV4Ybc6FLa4ocSl2LuIiR/9 hNoGjAjsSosIbC4+G8pOnuxFbIMx8LQWNfdqmB6XNk0yF75kPkAFnRnskmeC5+sTnlQy iU4A== X-Gm-Message-State: AE9vXwNbFBQtmMerYxyYz0HVoZwal7raYqTgUqN300JdIqCdnCBlm3wP/0/LSTbnvb5P+g== X-Received: by 10.66.48.10 with SMTP id h10mr19853284pan.95.1473137346880; Mon, 05 Sep 2016 21:49:06 -0700 (PDT) Received: from user5-HP-Z620-Workstation.corp.google.com ([172.22.52.170]) by smtp.gmail.com with ESMTPSA id s7sm16113398pfk.11.2016.09.05.21.49.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Sep 2016 21:49:06 -0700 (PDT) From: Chris Zhong To: dianders@chromium.org, heiko@sntech.de, zhengxing@rock-chips.com, cychiang@chromium.org Subject: [PATCH 1/2] drm/rockchip: cdn-dp: support audio hot-plug Date: Mon, 5 Sep 2016 21:48:54 -0700 Message-Id: <1473137335-14541-2-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473137335-14541-1-git-send-email-zyw@rock-chips.com> References: <1473137335-14541-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160905_214927_594360_38760D79 X-CRM114-Status: UNSURE ( 8.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Chris Zhong , linux-arm-kernel@lists.infradead.org, Mark Yao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Issue hot-plug detection, EDID update, and ELD update notifications from DP drivers. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index 530b7ba..e0055a9 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -185,6 +186,7 @@ static int cdn_dp_connector_get_modes(struct drm_connector *connector) drm_mode_connector_update_edid_property(connector, edid); drm_edid_to_eld(connector, edid); + hdmi_event_new_eld(dp->dev, connector->eld); } kfree(edid); } @@ -345,6 +347,7 @@ static void cdn_dp_encoder_enable(struct drm_encoder *encoder) if (dp->dpms_mode != DRM_MODE_DPMS_ON) cdn_dp_commit(encoder); + hdmi_event_connect(dp->dev); } static void cdn_dp_encoder_disable(struct drm_encoder *encoder) @@ -352,6 +355,7 @@ static void cdn_dp_encoder_disable(struct drm_encoder *encoder) struct cdn_dp_device *dp = encoder_to_dp(encoder); dp->dpms_mode = DRM_MODE_DPMS_OFF; + hdmi_event_disconnect(dp->dev); } static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,