From patchwork Sat Sep 10 02:15:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 9324621 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 4AB34607D3 for ; Sat, 10 Sep 2016 02:16:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AC622A032 for ; Sat, 10 Sep 2016 02:16:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03C702A033; Sat, 10 Sep 2016 02:16:05 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C2892A02A for ; Sat, 10 Sep 2016 02:16:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0F886E311; Sat, 10 Sep 2016 02:16:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id C12126E309 for ; Sat, 10 Sep 2016 02:15:59 +0000 (UTC) Received: by mail-pa0-f68.google.com with SMTP id pp5so4565900pac.2 for ; Fri, 09 Sep 2016 19:15:59 -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=Gj26dkv043KIQd/Be0kwYx6iZJLr3C+MK7pZpSeMjGo=; b=L4LQTYJmUsAarlkpNdYkC57mZgeXksejYy2fGYuJdDRNSK172xf7isOeOSTZNmdNrj dDrp0rjRAwDP8+OQe8ZL5EzSLA25ebqIu/iWr/E5ZVKIOSsBz87500kOtIVBbf++4I/m 8PVPqHOlzLHWq7+w5SXwaM4u2pOgelwrHIA1fi9FV2g9TMPfRXK2W6AINkjXoA+FP3An E+nDb+p481jdPq7wQUr/xX6tOL/VK1rNFPbzl8dWP2G1wIizi0QTpwx6eQ6jAZPkkzJM W9FvEvJ+7hxnizIdANOtzpU40AhYjTrffoRwMxP38J7x0fWAemlLqZovw9zJ/gCcG+Fb SzzQ== X-Gm-Message-State: AE9vXwNAwh1RCwVwJDJQ1d+QhNcIaG6bb9/5WXkkl6oBloJyEH1z1ivH97nnPAa8+0vOfw== X-Received: by 10.66.152.238 with SMTP id vb14mr12016598pab.78.1473473759476; Fri, 09 Sep 2016 19:15:59 -0700 (PDT) Received: from user5-HP-Z620-Workstation.corp.google.com ([172.22.52.170]) by smtp.gmail.com with ESMTPSA id p4sm8006029pfp.60.2016.09.09.19.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 19:15:58 -0700 (PDT) From: Chris Zhong To: dianders@chromium.org, tfiga@chromium.org, heiko@sntech.de, yzq@rock-chips.com, groeck@chromium.org, myungjoo.ham@samsung.com, cw00.choi@samsung.com, wulf@rock-chips.com, marcheu@chromium.org, briannorris@chromium.org, zhengxing@rock-chips.com, cychiang@chromium.org, hychao@chromium.org, broonie@kernel.org Subject: [PATCH v15 4/5] drm/rockchip: cdn-dp: support audio hot-plug Date: Fri, 9 Sep 2016 19:15:47 -0700 Message-Id: <1473473748-22331-5-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473473748-22331-1-git-send-email-zyw@rock-chips.com> References: <1473473748-22331-1-git-send-email-zyw@rock-chips.com> Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Chris Zhong , linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Issue hot-plug detection, EDID update, and ELD update notifications from DP drivers. Signed-off-by: Chris Zhong --- Changes in v15: None Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None 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 8d708d3..de1cf3e 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 @@ -233,6 +234,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); } @@ -631,6 +633,7 @@ static void cdn_dp_encoder_enable(struct drm_encoder *encoder) out: mutex_unlock(&dp->lock); + hdmi_event_connect(dp->dev); } static void cdn_dp_encoder_disable(struct drm_encoder *encoder) @@ -647,6 +650,7 @@ static void cdn_dp_encoder_disable(struct drm_encoder *encoder) } } mutex_unlock(&dp->lock); + hdmi_event_disconnect(dp->dev); } static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,