| /linux/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_hdmi_i2c.c | 25 static int fifo_transfer(struct sun4i_hdmi *hdmi, u8 *buf, int len, bool read) in fifo_transfer() argument 41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer() 50 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer() 59 ioread8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() 61 iowrite8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() 64 regmap_field_force_write(hdmi->field_ddc_int_status, in fifo_transfer() 70 static int xfer_msg(struct sun4i_hdmi *hdmi, struct i2c_msg *msg) in xfer_msg() argument 76 if (hdmi->variant->ddc_fifo_has_dir) { in xfer_msg() 77 reg = readl(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg() 82 writel(reg, hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg() [all …]
|
| H A D | sun4i_hdmi_enc.c | 47 struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector); in sun4i_hdmi_write_infoframe() local 57 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_write_infoframe() 66 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_disable() local 71 val = readl(hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() 73 writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() 75 clk_disable_unprepare(hdmi->tmds_clk); in sun4i_hdmi_disable() 82 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_enable() local 83 struct drm_connector *connector = &hdmi->connector; in sun4i_hdmi_enable() 87 unsigned long long tmds_rate = conn_state->hdmi.tmds_char_rate; in sun4i_hdmi_enable() 93 clk_set_rate(hdmi->mod_clk, tmds_rate); in sun4i_hdmi_enable() [all …]
|
| H A D | sun8i_dw_hdmi.c | 22 struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); in sun8i_dw_hdmi_encoder_mode_set() local 24 clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); in sun8i_dw_hdmi_encoder_mode_set() 33 sun8i_dw_hdmi_mode_valid_a83t(struct dw_hdmi *hdmi, void *data, in sun8i_dw_hdmi_mode_valid_a83t() argument 44 sun8i_dw_hdmi_mode_valid_h6(struct dw_hdmi *hdmi, void *data, in sun8i_dw_hdmi_mode_valid_h6() argument 104 struct sun8i_dw_hdmi *hdmi; in sun8i_dw_hdmi_bind() local 110 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); in sun8i_dw_hdmi_bind() 111 if (!hdmi) in sun8i_dw_hdmi_bind() 114 plat_data = &hdmi->plat_data; in sun8i_dw_hdmi_bind() 115 hdmi->dev = &pdev->dev; in sun8i_dw_hdmi_bind() 116 encoder = &hdmi->encoder; in sun8i_dw_hdmi_bind() [all …]
|
| H A D | sun8i_hdmi_phy.c | 142 static int sun8i_a83t_hdmi_phy_config(struct dw_hdmi *hdmi, void *data, in sun8i_a83t_hdmi_phy_config() argument 156 dw_hdmi_phy_gen2_txpwron(hdmi, 0); in sun8i_a83t_hdmi_phy_config() 157 dw_hdmi_phy_gen2_pddq(hdmi, 1); in sun8i_a83t_hdmi_phy_config() 159 dw_hdmi_phy_gen2_reset(hdmi); in sun8i_a83t_hdmi_phy_config() 161 dw_hdmi_phy_gen2_pddq(hdmi, 0); in sun8i_a83t_hdmi_phy_config() 163 dw_hdmi_phy_i2c_set_addr(hdmi, I2C_ADDR); in sun8i_a83t_hdmi_phy_config() 171 dw_hdmi_phy_i2c_write(hdmi, 0x01e0, 0x06); in sun8i_a83t_hdmi_phy_config() 172 dw_hdmi_phy_i2c_write(hdmi, 0x0000, 0x15); in sun8i_a83t_hdmi_phy_config() 173 dw_hdmi_phy_i2c_write(hdmi, 0x08da, 0x10); in sun8i_a83t_hdmi_phy_config() 174 dw_hdmi_phy_i2c_write(hdmi, 0x0007, 0x19); in sun8i_a83t_hdmi_phy_config() [all …]
|
| H A D | sun4i_hdmi_tmds_clk.c | 16 struct sun4i_hdmi *hdmi; member 131 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_recalc_rate() 135 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_recalc_rate() 154 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_set_rate() 158 writel(reg, tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_set_rate() 160 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_set_rate() 163 tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_set_rate() 173 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_get_parent() 186 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_set_parent() 189 tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_set_parent() [all …]
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_hdmi_v2.c | 60 static inline void mtk_hdmi_v2_hwirq_disable(struct mtk_hdmi *hdmi) in mtk_hdmi_v2_hwirq_disable() argument 62 regmap_write(hdmi->regs, TOP_INT_ENABLE00, 0); in mtk_hdmi_v2_hwirq_disable() 63 regmap_write(hdmi->regs, TOP_INT_ENABLE01, 0); in mtk_hdmi_v2_hwirq_disable() 66 static inline void mtk_hdmi_v2_enable_hpd_pord_irq(struct mtk_hdmi *hdmi, bool enable) in mtk_hdmi_v2_enable_hpd_pord_irq() argument 69 regmap_set_bits(hdmi->regs, TOP_INT_ENABLE00, HPD_PORD_HWIRQS); in mtk_hdmi_v2_enable_hpd_pord_irq() 71 regmap_clear_bits(hdmi->regs, TOP_INT_ENABLE00, HPD_PORD_HWIRQS); in mtk_hdmi_v2_enable_hpd_pord_irq() 74 static inline void mtk_hdmi_v2_set_sw_hpd(struct mtk_hdmi *hdmi, bool enable) in mtk_hdmi_v2_set_sw_hpd() argument 77 regmap_set_bits(hdmi->regs, hdmi->conf->reg_hdmi_tx_cfg, HDMITX_SW_HPD); in mtk_hdmi_v2_set_sw_hpd() 78 regmap_set_bits(hdmi->regs, HDCP2X_CTRL_0, HDCP2X_HPD_OVR); in mtk_hdmi_v2_set_sw_hpd() 79 regmap_set_bits(hdmi->regs, HDCP2X_CTRL_0, HDCP2X_HPD_SW); in mtk_hdmi_v2_set_sw_hpd() [all …]
|
| H A D | mtk_hdmi.c | 47 static void mtk_hdmi_hw_vid_black(struct mtk_hdmi *hdmi, bool black) in mtk_hdmi_hw_vid_black() argument 49 regmap_update_bits(hdmi->regs, VIDEO_CFG_4, in mtk_hdmi_hw_vid_black() 53 static void mtk_hdmi_hw_make_reg_writable(struct mtk_hdmi *hdmi, bool enable) in mtk_hdmi_hw_make_reg_writable() argument 63 if (hdmi->conf && hdmi->conf->tz_disabled) in mtk_hdmi_hw_make_reg_writable() 64 regmap_update_bits(hdmi->sys_regmap, in mtk_hdmi_hw_make_reg_writable() 65 hdmi->sys_offset + HDMI_SYS_CFG20, in mtk_hdmi_hw_make_reg_writable() 71 regmap_update_bits(hdmi->sys_regmap, hdmi->sys_offset + HDMI_SYS_CFG20, in mtk_hdmi_hw_make_reg_writable() 73 regmap_update_bits(hdmi->sys_regmap, hdmi->sys_offset + HDMI_SYS_CFG1C, in mtk_hdmi_hw_make_reg_writable() 77 static void mtk_hdmi_hw_1p4_version_enable(struct mtk_hdmi *hdmi, bool enable) in mtk_hdmi_hw_1p4_version_enable() argument 79 regmap_update_bits(hdmi->sys_regmap, hdmi->sys_offset + HDMI_SYS_CFG20, in mtk_hdmi_hw_1p4_version_enable() [all …]
|
| H A D | mtk_hdmi_common.c | 104 int mtk_hdmi_audio_params(struct mtk_hdmi *hdmi, in mtk_hdmi_audio_params() argument 111 dev_dbg(hdmi->dev, "%s: %u Hz, %d bit, %d channels\n", __func__, in mtk_hdmi_audio_params() 114 if (!hdmi->bridge.encoder) in mtk_hdmi_audio_params() 131 dev_err(hdmi->dev, "channel[%d] not supported!\n", chan); in mtk_hdmi_audio_params() 145 dev_err(hdmi->dev, "rate[%d] not supported!\n", in mtk_hdmi_audio_params() 164 dev_err(hdmi->dev, "%s: Invalid DAI format %d\n", __func__, in mtk_hdmi_audio_params() 169 memcpy(&hdmi->aud_param, &aud_params, sizeof(aud_params)); in mtk_hdmi_audio_params() 171 dev_dbg(hdmi->dev, "codec:%d, input:%d, channel:%d, fs:%d\n", in mtk_hdmi_audio_params() 181 struct mtk_hdmi *hdmi = dev_get_drvdata(dev); in mtk_hdmi_audio_get_eld() local 183 if (hdmi->enabled) in mtk_hdmi_audio_get_eld() [all …]
|
| /linux/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_bridge.c | 20 struct hdmi *hdmi = hdmi_bridge->hdmi; in msm_hdmi_power_on() local 23 pm_runtime_resume_and_get(&hdmi->pdev->dev); in msm_hdmi_power_on() 25 if (hdmi->extp_clk) { in msm_hdmi_power_on() 26 DBG("pixclock: %lu", hdmi->pixclock); in msm_hdmi_power_on() 27 ret = clk_set_rate(hdmi->extp_clk, hdmi->pixclock); in msm_hdmi_power_on() 31 ret = clk_prepare_enable(hdmi->extp_clk); in msm_hdmi_power_on() 40 struct hdmi *hdmi = hdmi_bridge->hdmi; in power_off() local 47 if (hdmi->extp_clk) in power_off() 48 clk_disable_unprepare(hdmi->extp_clk); in power_off() 50 pm_runtime_put(&hdmi->pdev->dev); in power_off() [all …]
|
| H A D | hdmi_hpd.c | 14 static void msm_hdmi_phy_reset(struct hdmi *hdmi) in msm_hdmi_phy_reset() argument 18 val = hdmi_read(hdmi, REG_HDMI_PHY_CTRL); in msm_hdmi_phy_reset() 22 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 26 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 32 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 36 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 44 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 48 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 54 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 58 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() [all …]
|
| H A D | hdmi_hdcp.c | 49 struct hdmi *hdmi; member 78 static int msm_hdmi_ddc_read(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_read() argument 99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 116 static int msm_hdmi_ddc_write(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_write() argument 141 rc = i2c_transfer(hdmi->i2c, msgs, 1); in msm_hdmi_ddc_write() 159 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_scm_wr() local 167 phy_addr = (u32)hdmi->mmio_phy_addr; in msm_hdmi_hdcp_scm_wr() 190 hdmi_write(hdmi, preg[i], pdata[i]); in msm_hdmi_hdcp_scm_wr() 198 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_irq() local 202 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq() [all …]
|
| H A D | hdmi_audio.c | 16 int msm_hdmi_audio_update(struct hdmi *hdmi) in msm_hdmi_audio_update() argument 18 struct hdmi_audio *audio = &hdmi->audio; in msm_hdmi_audio_update() 23 if (!hdmi->connector->display_info.is_hdmi) in msm_hdmi_audio_update() 29 DBG("video: power_on=%d, pixclock=%lu", hdmi->power_on, hdmi->pixclock); in msm_hdmi_audio_update() 31 if (enabled && !(hdmi->power_on && hdmi->pixclock)) { in msm_hdmi_audio_update() 37 acr_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_ACR_PKT_CTRL); in msm_hdmi_audio_update() 38 vbi_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_VBI_PKT_CTRL); in msm_hdmi_audio_update() 39 aud_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_AUDIO_PKT_CTRL1); in msm_hdmi_audio_update() 40 audio_config = hdmi_read(hdmi, REG_HDMI_AUDIO_CFG); in msm_hdmi_audio_update() 49 drm_hdmi_acr_get_n_cts(hdmi->pixclock, audio->rate, &n, &cts); in msm_hdmi_audio_update() [all …]
|
| H A D | hdmi.h | 33 struct hdmi { struct 98 struct hdmi *hdmi; argument 103 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on); 105 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) in hdmi_write() argument 107 writel(data, hdmi->mmio + reg); in hdmi_write() 110 static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg) in hdmi_read() argument 112 return readl(hdmi->mmio + reg); in hdmi_read() 115 static inline u32 hdmi_qfprom_read(struct hdmi *hdmi, u32 reg) in hdmi_qfprom_read() argument 117 return readl(hdmi->qfprom_mmio + reg); in hdmi_qfprom_read() 202 int msm_hdmi_audio_update(struct hdmi *hdmi); [all …]
|
| /linux/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi-qp.c | 170 static void dw_hdmi_qp_write(struct dw_hdmi_qp *hdmi, unsigned int val, in dw_hdmi_qp_write() argument 173 regmap_write(hdmi->regm, offset, val); in dw_hdmi_qp_write() 176 static unsigned int dw_hdmi_qp_read(struct dw_hdmi_qp *hdmi, int offset) in dw_hdmi_qp_read() argument 180 regmap_read(hdmi->regm, offset, &val); in dw_hdmi_qp_read() 185 static void dw_hdmi_qp_mod(struct dw_hdmi_qp *hdmi, unsigned int data, in dw_hdmi_qp_mod() argument 188 regmap_update_bits(hdmi->regm, reg, mask, data); in dw_hdmi_qp_mod() 196 static void dw_hdmi_qp_set_cts_n(struct dw_hdmi_qp *hdmi, unsigned int cts, in dw_hdmi_qp_set_cts_n() argument 200 dw_hdmi_qp_mod(hdmi, n, AUDPKT_ACR_N_VALUE, AUDPKT_ACR_CONTROL0); in dw_hdmi_qp_set_cts_n() 204 dw_hdmi_qp_mod(hdmi, AUDPKT_ACR_CTS_OVR_EN, AUDPKT_ACR_CTS_OVR_EN_MSK, in dw_hdmi_qp_set_cts_n() 207 dw_hdmi_qp_mod(hdmi, 0, AUDPKT_ACR_CTS_OVR_EN_MSK, in dw_hdmi_qp_set_cts_n() [all …]
|
| H A D | dw-hdmi-i2s-audio.c | 25 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_write() local 27 audio->write(hdmi, val, offset); in hdmi_write() 32 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_read() local 34 return audio->read(hdmi, offset); in hdmi_read() 42 struct dw_hdmi *hdmi = audio->hdmi; in dw_hdmi_i2s_hw_params() local 104 dw_hdmi_set_sample_rate(hdmi, hparms->sample_rate); in dw_hdmi_i2s_hw_params() 105 dw_hdmi_set_channel_status(hdmi, hparms->iec.status); in dw_hdmi_i2s_hw_params() 106 dw_hdmi_set_channel_count(hdmi, hparms->channels); in dw_hdmi_i2s_hw_params() 107 dw_hdmi_set_channel_allocation(hdmi, hparms->cea.channel_allocation); in dw_hdmi_i2s_hw_params() 119 struct dw_hdmi *hdmi = audio->hdmi; in dw_hdmi_i2s_audio_startup() local [all …]
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | dw_hdmi_qp-rockchip.c | 95 struct dw_hdmi_qp *hdmi; member 105 void (*io_init)(struct rockchip_hdmi_qp *hdmi); 106 void (*enc_init)(struct rockchip_hdmi_qp *hdmi, struct rockchip_crtc_state *state); 120 struct rockchip_hdmi_qp *hdmi = to_rockchip_hdmi_qp(encoder); in dw_hdmi_qp_rockchip_encoder_enable() local 124 gpiod_set_value(hdmi->frl_enable_gpio, 0); in dw_hdmi_qp_rockchip_encoder_enable() 129 if (hdmi->ctrl_ops->enc_init) in dw_hdmi_qp_rockchip_encoder_enable() 130 hdmi->ctrl_ops->enc_init(hdmi, to_rockchip_crtc_state(crtc->state)); in dw_hdmi_qp_rockchip_encoder_enable() 138 struct rockchip_hdmi_qp *hdmi = to_rockchip_hdmi_qp(encoder); in dw_hdmi_qp_rockchip_encoder_atomic_check() local 143 if (hdmi->tmds_char_rate == conn_state->hdmi.tmds_char_rate && in dw_hdmi_qp_rockchip_encoder_atomic_check() 144 s->output_bpc == conn_state->hdmi.output_bpc) in dw_hdmi_qp_rockchip_encoder_atomic_check() [all …]
|
| H A D | dw_hdmi-rockchip.c | 81 struct dw_hdmi *hdmi; member 198 static int rockchip_hdmi_parse_dt(struct rockchip_hdmi *hdmi) in rockchip_hdmi_parse_dt() argument 200 struct device_node *np = hdmi->dev->of_node; in rockchip_hdmi_parse_dt() 203 hdmi->regmap = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_hdmi_parse_dt() 204 if (IS_ERR(hdmi->regmap)) { in rockchip_hdmi_parse_dt() 205 dev_err(hdmi->dev, "Unable to get rockchip,grf\n"); in rockchip_hdmi_parse_dt() 206 return PTR_ERR(hdmi->regmap); in rockchip_hdmi_parse_dt() 209 hdmi->ref_clk = devm_clk_get_optional_enabled(hdmi->dev, "ref"); in rockchip_hdmi_parse_dt() 210 if (!hdmi->ref_clk) in rockchip_hdmi_parse_dt() 211 hdmi->ref_clk = devm_clk_get_optional_enabled(hdmi->dev, "vpll"); in rockchip_hdmi_parse_dt() [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | hdmi5.c | 38 static struct omap_hdmi hdmi; variable 46 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 59 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 88 v = hdmi_read_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL); in hdmi_irq_handler() 91 hdmi_write_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, v); in hdmi_irq_handler() 98 REG_FLD_MOD(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, 0, 15, 15); in hdmi_irq_handler() 113 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator() 116 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator() 122 hdmi.vdda_reg = reg; in hdmi_init_regulator() 131 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core() [all …]
|
| H A D | hdmi4.c | 34 static struct omap_hdmi hdmi; variable 42 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 55 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 94 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator() 97 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator() 105 hdmi.vdda_reg = reg; in hdmi_init_regulator() 114 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core() 125 hdmi.core_enabled = true; in hdmi_power_on_core() 130 regulator_disable(hdmi.vdda_reg); in hdmi_power_on_core() 137 hdmi.core_enabled = false; in hdmi_power_off_core() [all …]
|
| /linux/sound/pci/oxygen/ |
| H A D | xonar_hdmi.c | 37 struct xonar_hdmi *hdmi) in xonar_hdmi_init_commands() argument 46 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_hdmi_init_commands() 49 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_init() argument 51 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_hdmi_init() 52 hdmi->params[4] = 1; in xonar_hdmi_init() 53 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_init() 63 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_resume() argument 65 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_resume() 80 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, in xonar_set_hdmi_params() argument 83 hdmi->params[0] = 0; /* 1 = non-audio */ in xonar_set_hdmi_params() [all …]
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_hdmi_tx3g4c28phy.c | 76 static bool sti_hdmi_tx3g4c28phy_start(struct sti_hdmi *hdmi) in sti_hdmi_tx3g4c28phy_start() argument 78 u32 ckpxpll = hdmi->mode.clock * 1000; in sti_hdmi_tx3g4c28phy_start() 116 hdmi->event_received = false; in sti_hdmi_tx3g4c28phy_start() 118 hdmi_write(hdmi, (pllctrl | PLL_CFG_EN), HDMI_SRZ_PLL_CFG); in sti_hdmi_tx3g4c28phy_start() 121 wait_event_interruptible_timeout(hdmi->wait_event, in sti_hdmi_tx3g4c28phy_start() 122 hdmi->event_received == true, in sti_hdmi_tx3g4c28phy_start() 126 if ((hdmi_read(hdmi, HDMI_STA) & HDMI_STA_DLL_LCK) == 0) { in sti_hdmi_tx3g4c28phy_start() 151 hdmi_write(hdmi, val, HDMI_SRZ_CFG); in sti_hdmi_tx3g4c28phy_start() 154 hdmi_write(hdmi, val, HDMI_SRZ_ICNTL); in sti_hdmi_tx3g4c28phy_start() 157 hdmi_write(hdmi, val, HDMI_SRZ_CALCODE_EXT); in sti_hdmi_tx3g4c28phy_start() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-boneblack.dts | 10 #include "am335x-boneblack-hdmi.dtsi" 50 "[hdmi cec]", 92 "[hdmi irq]", 94 "[hdmi audio]", 109 "P8_45 [hdmi]", 110 "P8_46 [hdmi]", 111 "P8_43 [hdmi]", 112 "P8_44 [hdmi]", 113 "P8_41 [hdmi]", 114 "P8_42 [hdmi]", [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 17 #include <linux/hdmi.h> 143 hdac_hdmi_get_pcm_from_cvt(struct hdac_hdmi_priv *hdmi, in hdac_hdmi_get_pcm_from_cvt() argument 148 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt() 281 static struct hdac_hdmi_pcm *get_hdmi_pcm_from_id(struct hdac_hdmi_priv *hdmi, in get_hdmi_pcm_from_id() argument 286 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in get_hdmi_pcm_from_id() 362 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); in hdac_hdmi_setup_audio_infoframe() local 375 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe() 377 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe() 441 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); in hdac_hdmi_set_stream() local 442 struct hdac_device *hdev = hdmi in hdac_hdmi_set_stream() 467 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_set_hw_params() local 527 hdac_hdmi_get_port_from_cvt(struct hdac_device * hdev,struct hdac_hdmi_priv * hdmi,struct hdac_hdmi_cvt * cvt) hdac_hdmi_get_port_from_cvt() argument 566 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_verify_connect_sel_all_pins() local 591 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_pcm_open() local 634 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_pcm_close() local 658 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_query_cvt_params() local 721 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_pcm() local 818 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_cvt_output_widget_event() local 908 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_set_pin_port_mux() local 966 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_create_pin_port_muxs() local 1033 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_pinmux_cvt_route() local 1076 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); create_fill_widget_route_map() local 1177 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_init_dai_map() local 1204 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_cvt() local 1256 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_present_sense() local 1367 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_pin() local 1399 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_skl_enable_all_pins() local 1417 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_skl_enable_dp12() local 1447 hdac_hdmi_create_dais(struct hdac_device * hdev,struct snd_soc_dai_driver ** dais,struct hdac_hdmi_priv * hdmi,int num_dais) hdac_hdmi_create_dais() argument 1519 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_parse_and_map_nid() local 1586 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_eld_notify_cb() local 1642 hdac_hdmi_present_sense_all_pins(struct hdac_device * hdev,struct hdac_hdmi_priv * hdmi,bool detect_pin_caps) hdac_hdmi_present_sense_all_pins() argument 1667 struct hdac_hdmi_priv *hdmi = snd_soc_component_get_drvdata(component); hdmi_codec_probe() local 1727 struct hdac_hdmi_priv *hdmi = snd_soc_component_get_drvdata(component); hdmi_codec_remove() local 1742 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdmi_codec_resume() local 1772 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_chmap() local 1781 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_set_chmap() local 1802 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); is_hdac_hdmi_pcm_attached() local 1816 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_spk_alloc() local 1913 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); clear_dapm_works() local [all...] |
| /linux/drivers/gpu/drm/renesas/rcar-du/ |
| H A D | rcar_dw_hdmi.c | 41 rcar_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in rcar_hdmi_mode_valid() argument 55 static int rcar_hdmi_phy_configure(struct dw_hdmi *hdmi, void *data, in rcar_hdmi_phy_configure() argument 68 dw_hdmi_phy_i2c_write(hdmi, params->opmode_div, in rcar_hdmi_phy_configure() 70 dw_hdmi_phy_i2c_write(hdmi, params->curr_gmp, in rcar_hdmi_phy_configure() 72 dw_hdmi_phy_i2c_write(hdmi, params->div, RCAR_HDMI_PHY_PLLDIVCTRL); in rcar_hdmi_phy_configure() 85 struct dw_hdmi *hdmi; in rcar_dw_hdmi_probe() local 87 hdmi = dw_hdmi_probe(pdev, &rcar_dw_hdmi_plat_data); in rcar_dw_hdmi_probe() 88 if (IS_ERR(hdmi)) in rcar_dw_hdmi_probe() 89 return PTR_ERR(hdmi); in rcar_dw_hdmi_probe() 91 platform_set_drvdata(pdev, hdmi); in rcar_dw_hdmi_probe() [all …]
|
| /linux/drivers/gpu/drm/ingenic/ |
| H A D | ingenic-dw-hdmi.c | 47 ingenic_dw_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in ingenic_dw_hdmi_mode_valid() argument 76 struct dw_hdmi *hdmi = (struct dw_hdmi *)data; in ingenic_dw_hdmi_cleanup() local 78 dw_hdmi_remove(hdmi); in ingenic_dw_hdmi_cleanup() 83 struct dw_hdmi *hdmi; in ingenic_dw_hdmi_probe() local 85 hdmi = dw_hdmi_probe(pdev, &ingenic_dw_hdmi_plat_data); in ingenic_dw_hdmi_probe() 86 if (IS_ERR(hdmi)) in ingenic_dw_hdmi_probe() 87 return PTR_ERR(hdmi); in ingenic_dw_hdmi_probe() 89 return devm_add_action_or_reset(&pdev->dev, ingenic_dw_hdmi_cleanup, hdmi); in ingenic_dw_hdmi_probe()
|