/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A 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 …]
|
/linux/sound/pci/hda/ |
H A 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 …]
|
H A 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 …]
|
/linux/drivers/gpu/drm/radeon/ |
H A 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);
|
H A 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);
|
H A D | dce3_1_afmt.c | 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 34 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_hdmi_write_speaker_allocation() 52 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_dp_write_speaker_allocation() 71 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_write_sad_regs() 90 int max_channels = -1; in dce3_2_afmt_write_sad_regs() 96 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs() 97 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs() 98 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs() 99 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs() 100 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs() [all …]
|
H A D | evergreen_hdmi.c | 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 72 struct drm_device *dev = encoder->dev; in evergreen_hdmi_update_acr() 73 struct radeon_device *rdev = dev->dev_private; in evergreen_hdmi_update_acr() 76 if (encoder->crtc) { in evergreen_hdmi_update_acr() 77 struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); in evergreen_hdmi_update_acr() 78 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 89 WREG32(HDMI_ACR_32_0 + offset, HDMI_ACR_CTS_32(acr->cts_32khz)); in evergreen_hdmi_update_acr() 90 WREG32(HDMI_ACR_32_1 + offset, acr->n_32khz); in evergreen_hdmi_update_acr() 92 WREG32(HDMI_ACR_44_0 + offset, HDMI_ACR_CTS_44(acr->cts_44_1khz)); in evergreen_hdmi_update_acr() 93 WREG32(HDMI_ACR_44_1 + offset, acr->n_44_1khz); in evergreen_hdmi_update_acr() [all …]
|
H A 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 …]
|
H A D | radeon_audio.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 48 (0x5e00 - 0x5e00), 49 (0x5e18 - 0x5e00), 50 (0x5e30 - 0x5e00), 51 (0x5e48 - 0x5e00), 52 (0x5e60 - 0x5e00), 53 (0x5e78 - 0x5e00), 54 (0x5e90 - 0x5e00), 198 if (rdev->mode_info.mode_config_initialized) { in radeon_audio_enable() 199 list_for_each_entry(encoder, &rdev_to_drm(rdev)->mode_config.encoder_list, head) { in radeon_audio_enable() [all …]
|
/linux/Documentation/driver-api/media/ |
H A 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 …]
|
/linux/drivers/gpu/drm/mediatek/ |
H A 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 …]
|
/linux/drivers/gpu/drm/amd/display/dc/virtual/ |
H A 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()
|
/linux/drivers/gpu/drm/nouveau/include/nvrm/535.113.01/common/sdk/nvidia/inc/ctrl/ctrl0073/ |
H A D | ctrl0073specific.h | 4 /* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */ 7 …* SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights rese… 8 * SPDX-License-Identifier: MIT 13 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 72 NvU8 mute; member
|
H A D | ctrl0073dp.h | 5 /* Excerpt of RM headers from https://github.com/NVIDIA/open-gpu-kernel-modules/tree/535.113.01 */ 8 …* SPDX-FileCopyrightText: Copyright (c) 2005-2022 NVIDIA CORPORATION & AFFILIATES. All rights rese… 9 * SPDX-License-Identifier: MIT 14 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 180 NvU32 mute; member 225 NvBool sendACT; // deprecated -Use NV0073_CTRL_CMD_DP_SEND_ACT 234 NvU32 actualPclkHz; // deprecated -Use MvidWarParams 235 NvU32 linkClkFreqHz; // deprecated -Use MvidWarParams
|
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | stream_encoder.h | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 58 /* N - 32KHz audio */ 60 /* CTS - 32KHz audio*/ 192 struct stream_encoder *enc, bool mute);
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_lpe_audio.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 24 * Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> 34 * Atom platforms (e.g. valleyview and cherryTrail) integrates a DMA-based 41 * subsystems, a bridge is setup between the hdmi-lpe-audio and i915: 45 * the hdmi-lpe-audio driver probes the lpe audio device and creates a new 50 * uninstall the hdmi-lpe-audio driver before uninstalling i915 module, 51 * otherwise we might run into use-after-free issues after i915 removes the 52 * platform device: even though hdmi-lpe-audio driver is released, the modules 80 #define HAS_LPE_AUDIO(dev_priv) ((dev_priv)->display.audio.lpe.platdev != NULL) 85 struct pci_dev *pdev = to_pci_dev(dev_priv->drm.dev); in lpe_audio_platdev_create() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn35/ |
H A D | dcn35_dio_stream_encoder.h | 1 /* SPDX-License-Identifier: MIT */ 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 303 bool mute);
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | r535.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 56 switch (chan->object.oclass & 0xff) { in r535_chan_user() 58 case 0x7e: *psize = 0x01000; return 0x690000 + (chan->head * *psize); in r535_chan_user() 59 case 0x7b: *psize = 0x01000; return 0x6b0000 + (chan->head * *psize); in r535_chan_user() 60 case 0x7a: *psize = 0x01000; return 0x6d8000 + (chan->head * *psize); in r535_chan_user() 77 nvkm_gsp_rm_free(&chan->rm.object); in r535_chan_fini() 83 struct nvkm_gsp *gsp = chan->disp->engine.subdev.device->gsp; in r535_chan_push() 86 ctrl = nvkm_gsp_rm_ctrl_get(&gsp->internal.device.subdevice, in r535_chan_push() 92 if (chan->memory) { in r535_chan_push() 93 switch (nvkm_memory_target(chan->memory)) { in r535_chan_push() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn30/ |
H A D | dcn30_dio_stream_encoder.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 34 enc1->base.ctx->logger 37 (enc1->regs->reg) 41 enc1->se_shift->field_name, enc1->se_mask->field_name 47 enc1->base.ctx 57 if (info_packet->valid) { in enc3_update_hdmi_info_packet() 58 enc1->base.vpg->funcs->update_generic_info_packet( in enc3_update_hdmi_info_packet() 59 enc1->base.vpg, in enc3_update_hdmi_info_packet() 64 /* enable transmission of packet(s) - in enc3_update_hdmi_info_packet() 77 /* DP_SEC_GSP[x]_LINE_REFERENCE - keep default value REFER_TO_DP_SOF */ in enc3_update_hdmi_info_packet() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn314/ |
H A D | dcn314_dio_stream_encoder.h | 1 /* SPDX-License-Identifier: MIT */ 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 293 bool mute);
|
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn10/ |
H A D | dcn10_stream_encoder.h | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 695 bool mute);
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_stream_encoder.h | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 713 struct stream_encoder *enc, bool mute);
|
/linux/sound/pci/ca0106/ |
H A D | ca0106_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 12 * (One can use a standard mono mini-jack to one RCA plugs cable. 13 * or one can use a standard stereo mini-jack to two RCA plugs cable. 23 * The only playback controls that currently do anything are: - 75 * Merge "pci_disable_device(pci);" fixes. 82 * Implement support for Line-in capture on SB Live 24bit. 84 * Add support for mute control on SB Live 24bit (cards w/ SPI DAC) 89 * Some stability problems when unloading the snd-ca0106 kernel module. 90 * -- [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
H A D | dcn30_hwseq.c | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 61 hws->ctx 63 hws->regs->reg 65 dc->ctx->logger 70 hws->shifts->field_name, hws->masks->field_name 75 struct dc_context *dc_ctx = dc->ctx; in dcn30_log_color_state() 76 struct resource_pool *pool = dc->res_pool; in dcn30_log_color_state() 86 for (i = 0; i < pool->pipe_count; i++) { in dcn30_log_color_state() 87 struct dpp *dpp = pool->dpps[i]; in dcn30_log_color_state() 90 dpp->funcs->dpp_read_state(dpp, &s); in dcn30_log_color_state() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-codec.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _codec-controls: 24 .. _mpeg-control-id: 27 ----------------- 35 .. _v4l2-mpeg-stream-type: 40 enum v4l2_mpeg_stream_type - 41 The MPEG-1, -2 or -4 output stream type. One cannot assume anything 48 .. flat-table:: 49 :header-rows: 0 50 :stub-columns: 0 [all …]
|