Message ID | 20240620-9bit_alpha-v1-1-13c69daaf29f@mediatek.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | soc: mediatek: Disable 9-bit alpha in ETHDR | expand |
On Thu, 20 Jun 2024 00:50:24 +0800, Hsiao Chien Sung wrote: > When 9-bit alpha is enabled, its value will be converted from 0-255 to > 0-256 (255 = not defined). This is designed for special HDR related > calculation, which should be disabled by default, otherwise, alpha > blending will not work correctly. > > Applied to v6.10-next/soc, thanks! [1/1] soc: mediatek: Disable 9-bit alpha in ETHDR commit: eb36ad096818e11d54256570d7d49e26565daf5c Cheers, Angelo
Hi Angelo, I see the patch has been merged. Thank you for the notification. Cheers, Shawn On Mon, 2024-06-24 at 13:07 +0200, AngeloGioacchino Del Regno wrote: > On Thu, 20 Jun 2024 00:50:24 +0800, Hsiao Chien Sung wrote: > > When 9-bit alpha is enabled, its value will be converted from 0-255 > > to > > 0-256 (255 = not defined). This is designed for special HDR related > > calculation, which should be disabled by default, otherwise, alpha > > blending will not work correctly. > > > > > > Applied to v6.10-next/soc, thanks! > > [1/1] soc: mediatek: Disable 9-bit alpha in ETHDR > commit: eb36ad096818e11d54256570d7d49e26565daf5c > > Cheers, > Angelo > >
diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c index f370f4ec4b88..938240714e54 100644 --- a/drivers/soc/mediatek/mtk-mmsys.c +++ b/drivers/soc/mediatek/mtk-mmsys.c @@ -236,6 +236,7 @@ void mtk_mmsys_mixer_in_config(struct device *dev, int idx, bool alpha_sel, u16 mtk_mmsys_update_bits(mmsys, MT8195_VDO1_MIXER_IN1_ALPHA + (idx - 1) * 4, ~0, alpha << 16 | alpha, cmdq_pkt); + mtk_mmsys_update_bits(mmsys, MT8195_VDO1_HDR_TOP_CFG, BIT(15 + idx), 0, cmdq_pkt); mtk_mmsys_update_bits(mmsys, MT8195_VDO1_HDR_TOP_CFG, BIT(19 + idx), alpha_sel << (19 + idx), cmdq_pkt); mtk_mmsys_update_bits(mmsys, MT8195_VDO1_MIXER_IN1_PAD + (idx - 1) * 4,