| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/mediatek/ |
| D | mediatek,merge.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,merge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek display merge 10 - Chun-Kuang Hu <chunkuang.hu@kernel.org> 11 - Philipp Zabel <p.zabel@pengutronix.de> 14 Mediatek display merge, namely MERGE, is used to merge two slice-per-line 15 inputs into one side-by-side output. 16 MERGE device node must be siblings to the central MMSYS_CONFIG node. [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/ |
| D | dcn30_afmt.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 33 afmt3->base.ctx->logger 36 (afmt3->regs->reg) 40 afmt3->afmt_shift->field_name, afmt3->afmt_mask->field_name 44 afmt3->base.ctx 52 if (afmt->funcs->afmt_poweron) in afmt3_setup_hdmi_audio() 53 afmt->funcs->afmt_poweron(afmt); in afmt3_setup_hdmi_audio() 133 channels = speakers_to_channels(audio_info->flags.speaker_flags).all; in afmt3_se_audio_setup() 135 /* setup the audio stream source select (audio -> dig mapping) */ in afmt3_se_audio_setup() 142 if (afmt->funcs->afmt_poweron == NULL) in afmt3_se_audio_setup() [all …]
|
| /kernel/linux/linux-6.6/sound/pci/hda/ |
| D | hda_generic.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Generic BIOS auto-parser helper functions for HD-audio 16 /* table entry for multi-io paths */ 18 hda_nid_t pin; /* multi-io widget pin NID */ 20 unsigned int ctl_in; /* cached input-pin control value */ 25 * For output, stored in the order of DAC -> ... -> pin, 26 * for input, pin -> ... -> ADC. 30 * multi[] indicates whether it's a selector widget with multi-connectors 56 /* mic/line-in auto switching entry */ 62 int idx; /* imux index, -1 = invalid */ [all …]
|
| D | hda_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 48 * snd_hda_gen_add_kctl - Add a new kctl_new struct from the template 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() 67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl() 68 else if (knew->name) in snd_hda_gen_add_kctl() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/hda/ |
| D | hda_generic.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Generic BIOS auto-parser helper functions for HD-audio 13 /* table entry for multi-io paths */ 15 hda_nid_t pin; /* multi-io widget pin NID */ 17 unsigned int ctl_in; /* cached input-pin control value */ 22 * For output, stored in the order of DAC -> ... -> pin, 23 * for input, pin -> ... -> ADC. 27 * multi[] indicates whether it's a selector widget with multi-connectors 53 /* mic/line-in auto switching entry */ 59 int idx; /* imux index, -1 = invalid */ [all …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | panasonic-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * (C) 2004 Hiroshi Miura <miura@da-cha.org> 8 * (C) 2006-2008 Harald Welte <laforge@gnumonks.org> 10 * derived from toshiba_acpi.c, Copyright (C) 2002-2004 John Belmonte 12 *--------------------------------------------------------------------------- 16 * -v0.98 add platform devices for firmware brightness registers 19 * add write support to mute 25 * -v0.97 add support for cdpower hardware switch 26 * -v0.96 merge Lucina's enhancement 28 * - add support for optical driver power in [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
| D | dcn30_afmt.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 32 afmt3->base.ctx->logger 35 (afmt3->regs->reg) 39 afmt3->afmt_shift->field_name, afmt3->afmt_mask->field_name 43 afmt3->base.ctx 130 speakers = audio_info->flags.info.ALLSPEAKERS; in afmt3_se_audio_setup() 131 channels = speakers_to_channels(audio_info->flags.speaker_flags).all; in afmt3_se_audio_setup() 133 /* setup the audio stream source select (audio -> dig mapping) */ in afmt3_se_audio_setup() 145 bool mute) in afmt3_audio_mute_control() argument 150 REG_UPDATE(AFMT_AUDIO_PACKET_CONTROL, AFMT_AUDIO_SAMPLE_SEND, !mute); in afmt3_audio_mute_control() [all …]
|
| D | dcn30_afmt.h | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 109 * FL - Front Left 110 * FR - Front Right 111 * RL - Rear Left 112 * RR - Rear Right 113 * RC - Rear Center 114 * FC - Front Center 115 * FLC - Front Left Center 116 * FRC - Front Right Center 117 * RLC - Rear Left Center [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
| D | r600.h | 1 /* r600.h -- Private header for radeon driver -*- linux-c -*- 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 45 void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute);
|
| D | evergreen_hdmi.h | 1 /* evergreen_hdmi.h -- Private header for radeon driver -*- linux-c -*- 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 67 void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute);
|
| D | dce3_1_afmt.c | 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 33 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_hdmi_write_speaker_allocation() 51 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_dp_write_speaker_allocation() 70 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_write_sad_regs() 89 int max_channels = -1; in dce3_2_afmt_write_sad_regs() 95 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs() 96 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs() 97 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs() 98 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs() 99 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs() [all …]
|
| D | evergreen_hdmi.c | 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 71 struct drm_device *dev = encoder->dev; in evergreen_hdmi_update_acr() 72 struct radeon_device *rdev = dev->dev_private; in evergreen_hdmi_update_acr() 75 if (encoder->crtc) { in evergreen_hdmi_update_acr() 76 struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); in evergreen_hdmi_update_acr() 77 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 88 WREG32(HDMI_ACR_32_0 + offset, HDMI_ACR_CTS_32(acr->cts_32khz)); in evergreen_hdmi_update_acr() 89 WREG32(HDMI_ACR_32_1 + offset, acr->n_32khz); in evergreen_hdmi_update_acr() 91 WREG32(HDMI_ACR_44_0 + offset, HDMI_ACR_CTS_44(acr->cts_44_1khz)); in evergreen_hdmi_update_acr() 92 WREG32(HDMI_ACR_44_1 + offset, acr->n_44_1khz); in evergreen_hdmi_update_acr() [all …]
|
| D | r600_hdmi.c | 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 88 dev_err(rdev->dev, "Unknown bits per sample 0x%x, using 16\n", in r600_audio_status() 124 if (rdev->audio.pin[0].channels != audio_status.channels || in r600_audio_update_hdmi() 125 rdev->audio.pin[0].rate != audio_status.rate || in r600_audio_update_hdmi() 126 rdev->audio.pin[0].bits_per_sample != audio_status.bits_per_sample || in r600_audio_update_hdmi() 127 rdev->audio.pin[0].status_bits != audio_status.status_bits || in r600_audio_update_hdmi() 128 rdev->audio.pin[0].category_code != audio_status.category_code) { in r600_audio_update_hdmi() 129 rdev->audio.pin[0] = audio_status; in r600_audio_update_hdmi() 133 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in r600_audio_update_hdmi() 174 /* only one pin on 6xx-NI */ in r600_audio_get_pin() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/mediatek/ |
| D | mtk_disp_merge.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/soc/mediatek/mtk-cmdq.h> 87 if (priv->mute_support) in mtk_merge_start_cmdq() 88 mtk_ddp_write(cmdq_pkt, 0x0, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq() 91 mtk_ddp_write(cmdq_pkt, 1, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq() 99 if (priv->mute_support) in mtk_merge_stop_cmdq() 100 mtk_ddp_write(cmdq_pkt, 0x1, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq() 103 mtk_ddp_write(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq() 106 if (!cmdq_pkt && priv->async_clk) in mtk_merge_stop_cmdq() 107 reset_control_reset(priv->reset_ctl); in mtk_merge_stop_cmdq() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | dce3_1_afmt.c | 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 33 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_hdmi_write_speaker_allocation() 51 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_dp_write_speaker_allocation() 70 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_write_sad_regs() 89 int max_channels = -1; in dce3_2_afmt_write_sad_regs() 95 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs() 96 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs() 97 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs() 98 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs() 99 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs() [all …]
|
| D | radeon_audio.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 95 void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); 96 void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); 97 void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); 108 (0x5e00 - 0x5e00), 109 (0x5e18 - 0x5e00), 110 (0x5e30 - 0x5e00), 111 (0x5e48 - 0x5e00), 112 (0x5e60 - 0x5e00), 113 (0x5e78 - 0x5e00), [all …]
|
| D | evergreen_hdmi.c | 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 70 struct drm_device *dev = encoder->dev; in evergreen_hdmi_update_acr() 71 struct radeon_device *rdev = dev->dev_private; in evergreen_hdmi_update_acr() 74 if (encoder->crtc) { in evergreen_hdmi_update_acr() 75 struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); in evergreen_hdmi_update_acr() 76 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 87 WREG32(HDMI_ACR_32_0 + offset, HDMI_ACR_CTS_32(acr->cts_32khz)); in evergreen_hdmi_update_acr() 88 WREG32(HDMI_ACR_32_1 + offset, acr->n_32khz); in evergreen_hdmi_update_acr() 90 WREG32(HDMI_ACR_44_0 + offset, HDMI_ACR_CTS_44(acr->cts_44_1khz)); in evergreen_hdmi_update_acr() 91 WREG32(HDMI_ACR_44_1 + offset, acr->n_44_1khz); in evergreen_hdmi_update_acr() [all …]
|
| D | r600_hdmi.c | 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 87 dev_err(rdev->dev, "Unknown bits per sample 0x%x, using 16\n", in r600_audio_status() 118 struct drm_device *dev = rdev->ddev; in r600_audio_update_hdmi() 123 if (rdev->audio.pin[0].channels != audio_status.channels || in r600_audio_update_hdmi() 124 rdev->audio.pin[0].rate != audio_status.rate || in r600_audio_update_hdmi() 125 rdev->audio.pin[0].bits_per_sample != audio_status.bits_per_sample || in r600_audio_update_hdmi() 126 rdev->audio.pin[0].status_bits != audio_status.status_bits || in r600_audio_update_hdmi() 127 rdev->audio.pin[0].category_code != audio_status.category_code) { in r600_audio_update_hdmi() 128 rdev->audio.pin[0] = audio_status; in r600_audio_update_hdmi() 132 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in r600_audio_update_hdmi() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/virtual/ |
| D | virtual_stream_encoder.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 80 bool mute) {} in virtual_audio_mute_control() argument 151 enc->funcs = &virtual_str_enc_funcs; in virtual_stream_encoder_construct() 152 enc->ctx = ctx; in virtual_stream_encoder_construct() 153 enc->id = ENGINE_ID_VIRTUAL; in virtual_stream_encoder_construct() 154 enc->bp = bp; in virtual_stream_encoder_construct()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/virtual/ |
| D | virtual_stream_encoder.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 80 bool mute) {} in virtual_audio_mute_control() argument 150 enc->funcs = &virtual_str_enc_funcs; in virtual_stream_encoder_construct() 151 enc->ctx = ctx; in virtual_stream_encoder_construct() 152 enc->id = ENGINE_ID_VIRTUAL; in virtual_stream_encoder_construct() 153 enc->bp = bp; in virtual_stream_encoder_construct()
|
| /kernel/linux/linux-5.10/Documentation/driver-api/media/ |
| D | v4l2-controls.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 ------------ 31 sub-device drivers. 35 ------------------------ 48 Basic usage for V4L2 and sub-device drivers 49 ------------------------------------------- 53 .. code-block:: c 55 #include <media/v4l2-ctrls.h> 57 1.1) Add the handler to your driver's top-level struct: 61 .. code-block:: c [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/media/ |
| D | v4l2-controls.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 ------------ 31 sub-device drivers. 35 ------------------------ 48 Basic usage for V4L2 and sub-device drivers 49 ------------------------------------------- 53 .. code-block:: c 55 #include <media/v4l2-ctrls.h> 57 1.1) Add the handler to your driver's top-level struct: 61 .. code-block:: c [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| D | stream_encoder.h | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 58 /* N - 32KHz audio */ 60 /* CTS - 32KHz audio*/ 177 struct stream_encoder *enc, bool mute);
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| D | stream_encoder.h | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 58 /* N - 32KHz audio */ 60 /* CTS - 32KHz audio*/ 195 struct stream_encoder *enc, bool mute);
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | panasonic-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * (C) 2004 Hiroshi Miura <miura@da-cha.org> 8 * (C) 2006-2008 Harald Welte <laforge@gnumonks.org> 10 * derived from toshiba_acpi.c, Copyright (C) 2002-2004 John Belmonte 12 *--------------------------------------------------------------------------- 16 * -v0.95 rename driver from drivers/acpi/pcc_acpi.c to 17 * drivers/misc/panasonic-laptop.c 20 * -v0.94 replace /proc interface with device attributes 24 * -v0.92 merge with 2.6.26-rc6 input API changes 32 * -v0.91 merge with 2.6.24-rc6 ACPI changes [all …]
|