HDMI_COLORSPACE_RGB
config->input_colorspace = HDMI_COLORSPACE_RGB;
adv7511->rgb = config->input_colorspace == HDMI_COLORSPACE_RGB;
if (conn_state->hdmi.output_format == HDMI_COLORSPACE_RGB) {
rate = drm_hdmi_compute_mode_clock(mode, 8, HDMI_COLORSPACE_RGB);
frame.colorspace = HDMI_COLORSPACE_RGB;
unsigned int supported_formats = BIT(HDMI_COLORSPACE_RGB);
if (conn_state->hdmi.output_format != HDMI_COLORSPACE_RGB)
(format != HDMI_COLORSPACE_RGB || bpc != 8)) {
case HDMI_COLORSPACE_RGB:
HDMI_COLORSPACE_RGB);
clock = drm_hdmi_compute_mode_clock(mode, 8, HDMI_COLORSPACE_RGB);
[HDMI_COLORSPACE_RGB] = "RGB",
if (!supported_formats || !(supported_formats & BIT(HDMI_COLORSPACE_RGB)))
frame->colorspace = HDMI_COLORSPACE_RGB;
frame.avi.colorspace = HDMI_COLORSPACE_RGB;
infoframe.colorspace = HDMI_COLORSPACE_RGB;
case HDMI_COLORSPACE_RGB:
hdmi->hdmi_data.enc_out_format = HDMI_COLORSPACE_RGB;
{ HDMI_COLORSPACE_RGB, "rgb" },
#define DEFAULT_COLORSPACE_MODE HDMI_COLORSPACE_RGB
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
.supported_formats = BIT(HDMI_COLORSPACE_RGB) | (_formats), \
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
OUTPUT_FORMAT_TEST(HDMI_COLORSPACE_RGB, "RGB"),
BIT(HDMI_COLORSPACE_RGB),
rate = drm_hdmi_compute_mode_clock(mode, 8, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(mode, 10, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(mode, 10, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(mode, 12, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(mode, 12, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(mode, 8, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB) |
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
KUNIT_ASSERT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
KUNIT_ASSERT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
KUNIT_ASSERT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(preferred, 10, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB) |
BIT(HDMI_COLORSPACE_RGB) |
rate = drm_hdmi_compute_mode_clock(preferred, 10, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB) |
rate = drm_hdmi_compute_mode_clock(preferred, 8, HDMI_COLORSPACE_RGB);
rate = drm_hdmi_compute_mode_clock(preferred, 10, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB) |
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB) |
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB) |
rate = drm_hdmi_compute_mode_clock(preferred, 12, HDMI_COLORSPACE_RGB);
KUNIT_EXPECT_EQ(test, conn_state->hdmi.output_format, HDMI_COLORSPACE_RGB);
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB) |
BIT(HDMI_COLORSPACE_RGB) |
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB),
BIT(HDMI_COLORSPACE_RGB) |
BIT(HDMI_COLORSPACE_RGB),
case HDMI_COLORSPACE_RGB:
if (vc4_hdmi_mode_needs_scrambling(mode, 8, HDMI_COLORSPACE_RGB)) {
BIT(HDMI_COLORSPACE_RGB) |
u8 y = HDMI_COLORSPACE_RGB;
u8 y = HDMI_COLORSPACE_RGB;
if (y != HDMI_COLORSPACE_RGB)
if (y != HDMI_COLORSPACE_RGB)
u8 y = HDMI_COLORSPACE_RGB;
if (y != HDMI_COLORSPACE_RGB)
if (y != HDMI_COLORSPACE_RGB)
(avi->colorspace == HDMI_COLORSPACE_RGB) ? "" :
case HDMI_COLORSPACE_RGB:
case HDMI_COLORSPACE_RGB: