Lines Matching defs:encoder
20 * register in the HDMI encoder takes SPDIF frames from the DMA engine
22 * interconnect) bus to the encoder side for insertion into the video
25 * The driver's HDMI encoder does not yet support power management.
26 * The HDMI encoder's power domain and the HSM/pixel clocks are kept
31 * encoder block has CEC support.
721 struct drm_encoder *encoder = &vc4_hdmi->encoder.base;
765 drm_connector_attach_encoder(connector, encoder);
770 static int vc4_hdmi_stop_packet(struct drm_encoder *encoder,
774 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
798 static void vc4_hdmi_write_infoframe(struct drm_encoder *encoder,
801 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
828 ret = vc4_hdmi_stop_packet(encoder, frame->any.type, true);
897 static void vc4_hdmi_set_avi_infoframe(struct drm_encoder *encoder)
899 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
926 vc4_hdmi_write_infoframe(encoder, &frame);
929 static void vc4_hdmi_set_spd_infoframe(struct drm_encoder *encoder)
942 vc4_hdmi_write_infoframe(encoder, &frame);
945 static void vc4_hdmi_set_audio_infoframe(struct drm_encoder *encoder)
947 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
954 vc4_hdmi_write_infoframe(encoder, &frame);
957 static void vc4_hdmi_set_hdr_infoframe(struct drm_encoder *encoder)
959 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
975 vc4_hdmi_write_infoframe(encoder, &frame);
978 static void vc4_hdmi_set_infoframes(struct drm_encoder *encoder)
980 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
984 vc4_hdmi_set_avi_infoframe(encoder);
985 vc4_hdmi_set_spd_infoframe(encoder);
991 vc4_hdmi_set_audio_infoframe(encoder);
993 vc4_hdmi_set_hdr_infoframe(encoder);
998 static void vc4_hdmi_enable_scrambling(struct drm_encoder *encoder)
1000 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1036 static void vc4_hdmi_disable_scrambling(struct drm_encoder *encoder)
1038 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1085 static void vc4_hdmi_encoder_post_crtc_disable(struct drm_encoder *encoder,
1088 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1115 vc4_hdmi_disable_scrambling(encoder);
1123 static void vc4_hdmi_encoder_post_crtc_powerdown(struct drm_encoder *encoder,
1126 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1676 static void vc4_hdmi_encoder_pre_crtc_configure(struct drm_encoder *encoder,
1679 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1795 static void vc4_hdmi_encoder_pre_crtc_enable(struct drm_encoder *encoder,
1798 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1825 static void vc4_hdmi_encoder_post_crtc_enable(struct drm_encoder *encoder,
1828 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
1895 vc4_hdmi_set_infoframes(encoder);
1899 vc4_hdmi_enable_scrambling(encoder);
1907 static void vc4_hdmi_encoder_atomic_mode_set(struct drm_encoder *encoder,
1911 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
2151 static int vc4_hdmi_encoder_atomic_check(struct drm_encoder *encoder,
2155 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
2214 vc4_hdmi_encoder_mode_valid(struct drm_encoder *encoder,
2217 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
2234 static int vc4_hdmi_late_register(struct drm_encoder *encoder)
2236 struct drm_device *drm = encoder->dev;
2237 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
2364 * If the encoder is currently in DVI mode, treat the codec DAI
2417 struct drm_encoder *encoder = &vc4_hdmi->encoder.base;
2425 ret = vc4_hdmi_stop_packet(encoder, HDMI_INFOFRAME_TYPE_AUDIO, false);
2516 struct drm_encoder *encoder = &vc4_hdmi->encoder.base;
2594 vc4_hdmi_set_audio_infoframe(encoder);
3646 struct drm_encoder *encoder;
3662 encoder = &vc4_hdmi->encoder.base;
3663 vc4_hdmi->encoder.type = variant->encoder_type;
3664 vc4_hdmi->encoder.pre_crtc_configure = vc4_hdmi_encoder_pre_crtc_configure;
3665 vc4_hdmi->encoder.pre_crtc_enable = vc4_hdmi_encoder_pre_crtc_enable;
3666 vc4_hdmi->encoder.post_crtc_enable = vc4_hdmi_encoder_post_crtc_enable;
3667 vc4_hdmi->encoder.post_crtc_disable = vc4_hdmi_encoder_post_crtc_disable;
3668 vc4_hdmi->encoder.post_crtc_powerdown = vc4_hdmi_encoder_post_crtc_powerdown;
3733 ret = drmm_encoder_init(drm, encoder,
3740 drm_encoder_helper_add(encoder, &vc4_hdmi_encoder_helper_funcs);