From 223293205a7265c8b02882461ba8996650048ade Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 06:33:33 +0000 Subject: [PATCH] audio ok --- kernel/drivers/gpu/drm/sun4i/sun8i_csc.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/drivers/gpu/drm/sun4i/sun8i_csc.h b/kernel/drivers/gpu/drm/sun4i/sun8i_csc.h index 242752b..022cafa 100644 --- a/kernel/drivers/gpu/drm/sun4i/sun8i_csc.h +++ b/kernel/drivers/gpu/drm/sun4i/sun8i_csc.h @@ -1,14 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) Jernej Skrabec <jernej.skrabec@siol.net> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. */ #ifndef _SUN8I_CSC_H_ #define _SUN8I_CSC_H_ + +#include <drm/drm_color_mgmt.h> struct sun8i_mixer; @@ -18,8 +16,8 @@ #define CCSC10_OFFSET 0xA0000 #define CCSC11_OFFSET 0xF0000 -#define SUN8I_CSC_CTRL(base) (base + 0x0) -#define SUN8I_CSC_COEFF(base, i) (base + 0x10 + 4 * i) +#define SUN8I_CSC_CTRL(base) ((base) + 0x0) +#define SUN8I_CSC_COEFF(base, i) ((base) + 0x10 + 4 * (i)) #define SUN8I_CSC_CTRL_EN BIT(0) @@ -30,7 +28,9 @@ }; void sun8i_csc_set_ccsc_coefficients(struct sun8i_mixer *mixer, int layer, - enum sun8i_csc_mode mode); + enum sun8i_csc_mode mode, + enum drm_color_encoding encoding, + enum drm_color_range range); void sun8i_csc_enable_ccsc(struct sun8i_mixer *mixer, int layer, bool enable); #endif -- Gitblit v1.6.2