From patchwork Fri Jun 20 01:18:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Marchesin?= X-Patchwork-Id: 4386661 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 13CDB9F26E for ; Fri, 20 Jun 2014 01:18:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51D18203A9 for ; Fri, 20 Jun 2014 01:18:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7EE6B203A1 for ; Fri, 20 Jun 2014 01:18:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C74066E95E; Thu, 19 Jun 2014 18:18:41 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by gabe.freedesktop.org (Postfix) with ESMTP id B74126E961 for ; Thu, 19 Jun 2014 18:18:40 -0700 (PDT) Received: by mail-pb0-f54.google.com with SMTP id un15so2486475pbc.41 for ; Thu, 19 Jun 2014 18:18:40 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=vLwuHRUSB3Hu7TPxbSWuKbFgRQTGiFFqdz+s2HjiVS4=; b=WrmAxoAUBitICqQH9eF+9bxfBbRhvTZA4gDQ0iUWbG9hc0gFQUSERO/BvBS8OoXsXc r23iv1yf6XJeSWqfmdKGNwGu7u9Q+Usgonl4tWdzSJkChjb1VUk/NkUrzEbqkQ+IbygE XLB0v/s2hx1Y3SjVl9MLf4cwDENRqL2KIBDPg= 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:mime-version:content-type:content-transfer-encoding; bh=vLwuHRUSB3Hu7TPxbSWuKbFgRQTGiFFqdz+s2HjiVS4=; b=f4hr2ZrTmCdDEnbmZPqiOaxcVj+ECmcd5WDIl6FYEAy5QctGns9BXB1c4SntTbDc5M V4kAXz153kW2D0UHeLYAa9m+ScZ7N9vcCw+Hqm7N9haU4oco2vx5Qp6h9YB9ClxyjonZ /GafpTg6kJ6zdtTfinNVxPcxf00VOCVdgJyFC+8ZsfAzhMzy3hGEF5mkBmYuzB6w5ZKo Vfuj4qD5T5hqjwg5sd+ewMgXg8HurAX+BOdRJg2DuEpETYeN36cv9rgi4Az61ZOWzJqW 0zQ7BXMkQ2nWi6me1xrcAaAC8aRRgmRt+gbCFSdnblJBVylygs1YVxcHiJuUQ2JhAdHx LO0w== X-Gm-Message-State: ALoCoQlvlKmFNN1uN3Q7t3ZjTqYkhZwKKoc1cj9LKh+NuM3roJ+U/yOIqXR5zIbfhazM3D4KCGK7 X-Received: by 10.68.173.1 with SMTP id bg1mr221899pbc.13.1403227120540; Thu, 19 Jun 2014 18:18:40 -0700 (PDT) Received: from localhost ([2620:0:1000:1b01:82c1:6eff:fef8:b068]) by mx.google.com with ESMTPSA id ec2sm10587549pbc.63.2014.06.19.18.18.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 19 Jun 2014 18:18:39 -0700 (PDT) From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] drm/tegra: sor - Use bpc value from drm_panel Date: Thu, 19 Jun 2014 18:18:29 -0700 Message-Id: <1403227109-1661-3-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 2.0.0.526.g5318336 In-Reply-To: <1403227109-1661-1-git-send-email-marcheu@chromium.org> References: <1403227109-1661-1-git-send-email-marcheu@chromium.org> MIME-Version: 1.0 Cc: =?UTF-8?q?St=C3=A9phane=20Marchesin?= , treding@nvidia.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This change uses the bpc value coming from drm_panel to remove one more hardcoded value. Signed-off-by: Stéphane Marchesin --- drivers/gpu/drm/tegra/sor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 925f955..f02d9b6 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -526,7 +526,7 @@ static int tegra_output_sor_enable(struct tegra_output *output) dev_err(sor->dev, "failed to set safe parent clock: %d\n", err); memset(&config, 0, sizeof(config)); - config.bits_per_pixel = 24; /* XXX: don't hardcode? */ + config.bits_per_pixel = output->connector.display_info.bpc * 3; err = tegra_sor_calc_config(sor, mode, &config, &link); if (err < 0)