From patchwork Mon Dec 21 15:06:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Y, Kishore" X-Patchwork-Id: 69131 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBLF6H5X008890 for ; Mon, 21 Dec 2009 15:06:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752684AbZLUPGP (ORCPT ); Mon, 21 Dec 2009 10:06:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752702AbZLUPGO (ORCPT ); Mon, 21 Dec 2009 10:06:14 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:54654 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751703AbZLUPGO convert rfc822-to-8bit (ORCPT ); Mon, 21 Dec 2009 10:06:14 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nBLF69Rr009371 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Dec 2009 09:06:11 -0600 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id nBLF66Uh016853; Mon, 21 Dec 2009 20:36:07 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Mon, 21 Dec 2009 20:36:06 +0530 From: "Y, Kishore" To: "tomi.valkeinen@nokia.com" CC: "linux-omap@vger.kernel.org" Date: Mon, 21 Dec 2009 20:36:35 +0530 Subject: [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support Thread-Topic: [PATCH] OMAP3630:DSS2:Enable Pre-Multiplied Alpha Support Thread-Index: AcqCTzBJ8HMae6avRbiFkj5A5NQoIg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 6dabf4b..5f7819b 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -913,6 +913,11 @@ static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable) dispc_write_reg(dispc_reg_att[plane], val); } +static void _dispc_set_alpha_blend_attrs(enum omap_plane plane, bool enable) +{ + REG_FLD_MOD(dispc_reg_att[plane], enable ? 1 : 0, 28, 28); +} + void dispc_enable_replication(enum omap_plane plane, bool enable) { int bit; @@ -1689,6 +1694,9 @@ static int _dispc_setup_plane(enum omap_plane plane, _dispc_set_rotation_attrs(plane, rotation, mirror, color_mode); + if (cpu_is_omap3630() && (plane != OMAP_DSS_VIDEO1)) + _dispc_set_alpha_blend_attrs(plane, 1); + if (plane != OMAP_DSS_VIDEO1) _dispc_setup_global_alpha(plane, global_alpha);