Lines Matching +full:hdmi +full:- +full:tx

1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Driver for Analog Devices ADV748X video decoder and HDMI receiver
14 * Analog HDMI MHL 4-Lane 1-Lane
46 * enum adv748x_ports - Device tree port number definitions
73 /* CSI2 transmitters can have 2 internal connections, HDMI/AFE */
94 #define is_tx_enabled(_tx) ((_tx)->state->endpoints[(_tx)->port] != NULL)
95 #define is_txa(_tx) ((_tx) == &(_tx)->state->txa)
96 #define is_txb(_tx) ((_tx) == &(_tx)->state->txb)
100 ((_state)->endpoints[ADV748X_PORT_AIN0] != NULL || \
101 (_state)->endpoints[ADV748X_PORT_AIN1] != NULL || \
102 (_state)->endpoints[ADV748X_PORT_AIN2] != NULL || \
103 (_state)->endpoints[ADV748X_PORT_AIN3] != NULL || \
104 (_state)->endpoints[ADV748X_PORT_AIN4] != NULL || \
105 (_state)->endpoints[ADV748X_PORT_AIN5] != NULL || \
106 (_state)->endpoints[ADV748X_PORT_AIN6] != NULL || \
107 (_state)->endpoints[ADV748X_PORT_AIN7] != NULL)
108 #define is_hdmi_enabled(_state) ((_state)->endpoints[ADV748X_PORT_HDMI] != NULL)
125 struct adv748x_csi2 *tx; member
135 container_of(ctrl->handler, struct adv748x_hdmi, ctrl_hdl)
157 struct adv748x_csi2 *tx; member
165 container_of(ctrl->handler, struct adv748x_afe, ctrl_hdl)
169 * struct adv748x_state - State of ADV748X
180 * @hdmi: state of HDMI receiver context
195 struct adv748x_hdmi hdmi; member
201 #define adv748x_hdmi_to_state(h) container_of(h, struct adv748x_state, hdmi)
204 #define adv_err(a, fmt, arg...) dev_err(a->dev, fmt, ##arg)
205 #define adv_info(a, fmt, arg...) dev_info(a->dev, fmt, ##arg)
206 #define adv_dbg(a, fmt, arg...) dev_dbg(a->dev, fmt, ##arg)
220 #define ADV748X_IO_REG_04_FORCE_FR BIT(0) /* Force CP free-run */
244 * The ADV748x_Recommended_Settings_PrA_2014-08-20.pdf details both 0x80 and
250 /* HDMI RX Map */
283 /* HDMI RX Repeater Map */
297 /* Contrast - Unsigned*/
303 /* Brightness - Signed */
305 #define ADV748X_SDP_BRI_MIN -128
309 /* Hue - Signed, inverted*/
311 #define ADV748X_SDP_HUE_MIN -127
342 /* Contrast Control - Unsigned */
348 /* Saturation Control - Unsigned */
354 /* Brightness Control - Signed */
356 #define ADV748X_CP_BRI_MIN -128 /* Luma is -512d */
362 #define ADV748X_CP_HUE_MIN 0 /* -90 degree */
363 #define ADV748X_CP_HUE_DEF 0 /* -90 degree */
415 #define tx_read(t, r) adv748x_read(t->state, t->page, r)
416 #define tx_write(t, r, v) adv748x_write(t->state, t->page, r, v)
424 return media_entity_to_v4l2_subdev(pad->entity); in adv748x_get_remote_sd()
434 int adv748x_tx_power(struct adv748x_csi2 *tx, bool on);
439 int adv748x_csi2_init(struct adv748x_state *state, struct adv748x_csi2 *tx);
440 void adv748x_csi2_cleanup(struct adv748x_csi2 *tx);
443 int adv748x_hdmi_init(struct adv748x_hdmi *hdmi);
444 void adv748x_hdmi_cleanup(struct adv748x_hdmi *hdmi);