mtk_aal_gamma_get_lut_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mtk_aal_gamma_get_lut_size ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ and today's main character is mtk_aal_gamma_get_lut_size β€” she's a little function that tells you how big the gamma LUT is for AAL. yes, that AAL. the display one. iykyk πŸ’…

🌸 NAME 🌸

mtk_aal_gamma_get_lut_size β€” get the gamma LUT size for AAL, no cap πŸ¦‹

⭐ SYNOPSIS ⭐

unsigned int mtk_aal_gamma_get_lut_size (struct device *dev );

πŸ’– ARGUMENTS πŸ’–

  • dev β€” pointer to struct device. that's it, that's the whole argument. your device struct, handed over with love 🫢

πŸ”₯ RETURN πŸ”₯

lowkey two possible outcomes here:

  • 0 if gamma control is not supported in AAL 😭
  • otherwise, the gamma LUT size πŸ‘‘

so yeah β€” a 0 is not a size, it's the "nope, not supported" signal. vibe check accordingly πŸ’€

🌈 SEE ALSO 🌈

the kernel file, in all her glory: ./drivers/gpu/drm/mediatek/mtk_disp_aal.c β€” go read it, she ate πŸ“–βœ¨


and that's the tea, bestie πŸ“ this little page came from ./drivers/gpu/drm/mediatek and is dated October 2026, so like... future vibes only πŸ§šπŸ’œ slay, periodt πŸ’…

πŸ“¦ where this page comes from