| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/arm-smccc.h> 10 #include <linux/hdmi.h> 24 #include <sound/hdmi-codec.h> 183 static void mtk_hdmi_hw_vid_black(struct mtk_hdmi *hdmi, bool black) in mtk_hdmi_hw_vid_black() argument 185 regmap_update_bits(hdmi->regs, VIDEO_CFG_4, in mtk_hdmi_hw_vid_black() 189 static void mtk_hdmi_hw_make_reg_writable(struct mtk_hdmi *hdmi, bool enable) in mtk_hdmi_hw_make_reg_writable() argument 194 * MT8173 HDMI hardware has an output control bit to enable/disable HDMI in mtk_hdmi_hw_make_reg_writable() 196 * The ARM trusted firmware provides an API for the HDMI driver to set in mtk_hdmi_hw_make_reg_writable() 197 * this control bit to enable HDMI output in supervisor mode. in mtk_hdmi_hw_make_reg_writable() [all …]
|
| /linux/Documentation/devicetree/bindings/display/samsung/ |
| H A D | samsung,exynos-hdmi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/samsung/samsung,exynos-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung Exynos SoC HDMI 10 - Inki Dae <inki.dae@samsung.com> 11 - Seung-Woo Kim <sw0312.kim@samsung.com> 12 - Kyungmin Park <kyungmin.park@samsung.com> 13 - Krzysztof Kozlowski <krzk@kernel.org> 18 - samsung,exynos4210-hdmi [all …]
|
| /linux/sound/soc/mediatek/mt8183/ |
| H A D | mt8183-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "mt8183-afe-clk.h" 11 #include "mt8183-afe-common.h" 12 #include "mt8183-interconnection.h" 13 #include "mt8183-reg.h" 92 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 97 switch (ch) { in get_tdm_ch() 250 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_tdm_bck_en_event() 252 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_bck_en_event() 253 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_tdm_bck_en_event() [all …]
|
| /linux/sound/soc/mediatek/mt8192/ |
| H A D | mt8192-dai-tdm.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "mt8192-afe-clk.h" 12 #include "mt8192-afe-common.h" 13 #include "mt8192-afe-gpio.h" 14 #include "mt8192-interconnection.h" 84 return snd_pcm_format_physical_width(format) - 1; in get_tdm_lrck_width() 89 switch (ch) { in get_tdm_ch() 248 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_tdm_en_event() 250 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_en_event() 251 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_en_event() [all …]
|
| /linux/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi-i2s-audio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dw-hdmi-i2s-audio.c 9 #include <linux/dma-mapping.h> 15 #include <sound/hdmi-codec.h> 17 #include "dw-hdmi.h" 18 #include "dw-hdmi-audio.h" 20 #define DRIVER_NAME "dw-hdmi-i2s-audio" 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 [all …]
|
| H A D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 13 #include <linux/hdmi.h> 21 #include <linux/dma-mapping.h> 24 #include <media/cec-notifier.h> 26 #include <linux/media-bus-format.h> 40 #include "dw-hdmi-audio.h" 41 #include "dw-hdmi-cec.h" [all …]
|
| H A D | dw-hdmi-qp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2021-2022 Rockchip Electronics Co., Ltd. 6 * Author: Algea Cao <algea.cao@rock-chips.com> 10 #include <linux/hdmi.h> 29 #include <sound/hdmi-codec.h> 31 #include "dw-hdmi-qp.h" 43 * slow so we pre-compute values we expect to see. 46 * the recommended N values specified in the Audio chapter of the HDMI 93 /* For 297 MHz+ HDMI spec have some other rule for setting N */ 102 * These are the CTS values as recommended in the Audio chapter of the HDMI [all …]
|
| H A D | dw-hdmi-ahb-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * DesignWare HDMI audio driver 5 * Written and tested against the Designware HDMI Tx found in iMX6. 22 #include "dw-hdmi-audio.h" 24 #define DRIVER_NAME "dw-hdmi-ahb-audio" 85 * The default mapping of ALSA channels to HDMI channels and speaker 86 * allocation bits. Note that we can't do channel remapping here - 89 * Mappings for alsa-lib pcm/surround*.conf files: 94 * Our mapping from ALSA channel to CEA686D speaker name and HDMI channel: 157 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_iec958() [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | hdmi_common.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #define DSS_SUBSYS_NAME "HDMI" 10 #include "hdmi.h" 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 24 return -EINVAL; in hdmi_parse_lanes_of() 30 dev_err(&pdev->dev, "failed to read lane data\n"); in hdmi_parse_lanes_of() 36 dev_err(&pdev->dev, "failed to parse lane data\n"); in hdmi_parse_lanes_of() 44 dev_err(&pdev->dev, "failed to parse lane data\n"); in hdmi_parse_lanes_of() 58 return -EINVAL; in hdmi_compute_acr() 64 * When using deep color, the default N value (as in the HDMI in hdmi_compute_acr() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A D | hdmi_common.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #define DSS_SUBSYS_NAME "HDMI" 10 #include "hdmi.h" 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 24 return -EINVAL; in hdmi_parse_lanes_of() 30 dev_err(&pdev->dev, "failed to read lane data\n"); in hdmi_parse_lanes_of() 36 dev_err(&pdev->dev, "failed to parse lane data\n"); in hdmi_parse_lanes_of() 44 dev_err(&pdev->dev, "failed to parse lane data\n"); in hdmi_parse_lanes_of() 58 return -EINVAL; in hdmi_compute_acr() 64 * When using deep color, the default N value (as in the HDMI in hdmi_compute_acr() [all …]
|
| /linux/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_bridge.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include "hdmi.h" 18 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on() 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() 29 DRM_DEV_ERROR(dev->dev, "failed to set extp clk rate: %d\n", ret); in msm_hdmi_power_on() 31 ret = clk_prepare_enable(hdmi->extp_clk); in msm_hdmi_power_on() [all …]
|
| H A D | hdmi_audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/hdmi.h> 12 #include <sound/hdmi-codec.h> 14 #include "hdmi.h" 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() 19 bool enabled = audio->enabled; in msm_hdmi_audio_update() 23 if (!hdmi->connector->display_info.is_hdmi) in msm_hdmi_audio_update() 24 return -EINVAL; in msm_hdmi_audio_update() 27 audio->enabled, audio->channels, audio->rate); in msm_hdmi_audio_update() [all …]
|
| /linux/sound/pci/oxygen/ |
| H A D | xonar_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * helper functions for HDMI models (Xonar HDAV1.3/HDAV1.3 Slim) 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() [all …]
|
| /linux/sound/soc/intel/boards/ |
| H A D | sof_ssp_amp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * sof_ssp_amp.c - ASoc Machine driver for Intel platforms 24 /* Driver-specific board quirks: from bit 0 to 7 */ 52 /* BE ID defined in sof-tgl-rt1308-hdmi-ssp.m4 */ 57 /* extra BE links to support no-hdmi-in boards */ 87 if (ctx->amp_type == CODEC_NONE) in sof_card_dai_links_create() 90 if (!ctx->amp_link) { in sof_card_dai_links_create() 92 return -EINVAL; in sof_card_dai_links_create() 95 /* codec-specific fields for speaker amplifier */ in sof_card_dai_links_create() 96 switch (ctx->amp_type) { in sof_card_dai_links_create() [all …]
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | nvhdmi-mcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Legacy Nvidia HDMI codec support 52 struct hdmi_spec *spec = codec->spec; in nvhdmi_mcp_init() 54 if (spec->multiout.max_channels == 2) in nvhdmi_mcp_init() 65 int chan = channels ? (channels - 1) : 1; in nvhdmi_8ch_7x_set_info_frame_parameters() 67 switch (channel in nvhdmi_8ch_7x_set_info_frame_parameters() [all...] |
| H A D | intelhdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Intel HDMI codec support 19 MODULE_PARM_DESC(enable_silent_stream, "Enable Silent Stream for HDMI devices"); 40 struct hdmi_spec *spec = codec->spec; in intel_haswell_enable_all_pins() 42 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 44 if (vendor_param == -1 || vendor_param & INTEL_EN_ALL_PIN_CVTS) in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 50 if (vendor_param == -1) in intel_haswell_enable_all_pins() 60 struct hdmi_spec *spec = codec->spec; in intel_haswell_fixup_enable_dp12() 62 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12() [all …]
|
| /linux/sound/soc/ti/ |
| H A D | omap-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-hdmi-audio.c -- OMAP4+ DSS HDMI audio support library 5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com 20 #include <sound/omap-hdmi-audio.h> 22 #include "sdma-pcm.h" 24 #define DRV_NAME "omap-hdmi-audio" 45 return snd_soc_card_get_drvdata(rtd->card); in card_drvdata_substream() 52 mutex_lock(&ad->current_stream_lock); in hdmi_dai_abort() 53 if (ad->current_stream && ad->current_stream->runtime && in hdmi_dai_abort() 54 snd_pcm_running(ad->current_stream)) { in hdmi_dai_abort() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | uoutp.c | 35 struct nvkm_ior *ior = outp->ior; in nvkm_uoutp_mthd_dp_mst_vcpi() 38 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_vcpi() 39 return -ENOSYS; in nvkm_uoutp_mthd_dp_mst_vcpi() 40 if (!ior->func->dp || !ior->func->dp->vcpi || !nvkm_head_find(outp->disp, args->v0.head)) in nvkm_uoutp_mthd_dp_mst_vcpi() 41 return -EINVAL; in nvkm_uoutp_mthd_dp_mst_vcpi() 43 ior->func->dp->vcpi(ior, args->v0.head, args->v0.start_slot, args->v0.num_slots, in nvkm_uoutp_mthd_dp_mst_vcpi() 44 args->v0.pbn, args->v0.aligned_pbn); in nvkm_uoutp_mthd_dp_mst_vcpi() 53 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_id_put() 54 return -ENOSYS; in nvkm_uoutp_mthd_dp_mst_id_put() 55 if (!outp->func->dp.mst_id_put) in nvkm_uoutp_mthd_dp_mst_id_put() [all …]
|
| /linux/Documentation/devicetree/bindings/display/rockchip/ |
| H A D | rockchip,rk3066-hdmi.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/rockchip/rockchip,rk3066-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip rk3066 HDMI controller 10 - Sandy Huang <hjc@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 14 - $ref: /schemas/sound/dai-common.yaml# 18 const: rockchip,rk3066-hdmi 29 clock-names: [all …]
|
| /linux/sound/soc/qcom/ |
| H A D | lpass.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2010-2011,2013-2015,2020 The Linux Foundation. All rights reserved. 5 * lpass.h - Definitions for the QTi LPASS 15 #include <dt-bindings/sound/qcom,lpass.h> 16 #include <dt-bindings/sound/qcom,q6afe.h> 17 #include "lpass-hdmi.h" 39 return -EINVAL; \ 44 switch (dai_id) { in is_cdc_dma_port() 55 switch (dai_id) { in is_rxtx_cdc_dma_port() 97 /* AHB-I/X bus clocks inside the low-power audio subsystem (LPASS) */ [all …]
|
| H A D | lpass-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * lpass-hdmi.c -- ALSA SoC HDMI-CP [all...] |
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-gxl-s905x-libretech-cc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/sound/meson-aiu.h> 13 #include "meson-gxl-s905x.dtsi" 16 compatible = "libretech,aml-s905x-cc", "amlogic,s905x", 17 "amlogic,meson-gxl"; 18 model = "Libre Computer AML-S905X-CC"; 25 dio2133: analog-amplifier { 26 compatible = "simple-audio-amplifier"; [all …]
|
| /linux/drivers/gpu/drm/meson/ |
| H A D | meson_vclk.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 * - CVBS 27MHz generator via the VCLK2 to the VENCI and VDAC blocks 22 * - HDMI Pixel Clocks generation 26 * - Genenate Pixel clocks for 2K/4K 10bit formats 33 * | | | | | |--ENCI 34 * | HDMI PLL |-| PLL_DIV |--- VCLK--| |--ENCL 35 * |__________| |_________| \ | MUX |--ENCP 36 * --VCLK2-| |--VDAC 37 * |_____|--HDMI-TX 40 * VCLK is the preferred path for HDMI clocking and VCLK2 is the [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hdac_hdmi.c - ASoc HDA-HDMI codec driver for Intel platforms 5 * Copyright (C) 2014-2015 Intel Corp 17 #include <linux/hdmi.h> 107 unsigned char chmap[8]; /* ALSA API channel-map */ 140 #define hdev_to_hdmi_priv(_hdev) dev_get_drvdata(&(_hdev)->dev) 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() 149 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt() 159 struct hdac_device *hdev = port->pin->hdev; in hdac_hdmi_jack_report() [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | vivid.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 Each input can be a webcam, TV capture device, S-Video capture device or an HDMI 14 capture device. Each output can be an S-Video output device or an HDMI output 23 - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O. 24 - A large list of test patterns and variations thereof 25 - Working brightness, contrast, saturation and hue controls 26 - Support for the alpha color component 27 - Full colorspace support, including limited/full RGB range 28 - All possible control types are present 29 - Support for various pixel aspect ratios and video aspect ratios [all …]
|