Home
last modified time | relevance | path

Searched +full:merge +full:- +full:mute (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/Documentation/devicetree/bindings/display/mediatek/
H A Dmediatek,merge.yaml1 # 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 …]
/openbmc/qemu/audio/
H A Dmixeng.h4 * Copyright (c) 2004-2005 Vassili Karpov (malc)
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30 struct mixeng_volume { int mute; mixeng_real r; mixeng_real l; }; member
33 struct mixeng_volume { int mute; int64_t r; int64_t l; }; member
41 /* indices: [stereo][signed][swap endianness][8, 16 or 32-bits] */
H A Daudio.h4 * Copyright (c) 2003-2005 Vassili Karpov (malc)
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29 #include "qapi/qapi-types-audio.h"
30 #include "hw/qdev-properties.h"
31 #include "hw/qdev-properties-system.h"
125 void AUD_set_volume_out (SWVoiceOut *sw, int mute, uint8_t lvol, uint8_t rvol);
126 void AUD_set_volume_in (SWVoiceIn *sw, int mute, uint8_t lvol, uint8_t rvol);
130 bool mute; member
H A Daudio.c4 * Copyright (c) 2003-2005 Vassili Karpov (malc)
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31 #include "qapi/clone-visitor.h"
32 #include "qapi/qobject-input-visitor.h"
33 #include "qapi/qapi-visit-audio.h"
34 #include "qapi/qapi-commands-audio.h"
37 #include "qemu/error-report.h"
44 #include "ui/qemu-spice.h"
55 #define SW_NAME(sw) (sw)->name ? (sw)->name : "unknown"
88 if (strcmp(name, d->name) == 0) { in audio_driver_lookup()
[all …]
H A Ddbusaudio.c9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26 #include "qemu/error-report.h"
27 #include "qemu/host-utils.h"
37 #include "ui/dbus-display1.h"
83 if (!vo->buf) { in dbus_get_buffer_out()
84 vo->buf_size = hw->samples * hw->info.bytes_per_frame; in dbus_get_buffer_out()
85 vo->buf = g_malloc(vo->buf_size); in dbus_get_buffer_out()
86 vo->buf_pos = 0; in dbus_get_buffer_out()
89 *size = MIN(vo->buf_size - vo->buf_pos, *size); in dbus_get_buffer_out()
90 *size = audio_rate_get_bytes(&vo->rate, &hw->info, *size); in dbus_get_buffer_out()
[all …]
H A Dmixeng.c4 * Copyright (c) 2004-2005 Vassili Karpov (malc)
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27 #include "qemu/error-report.h"
274 /* macros to map [-1.f, 1.f] <-> [INT32_MIN, INT32_MAX + 1] */
291 while (samples--) { in conv_natural_float_to_mono()
292 dst->r = dst->l = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_mono()
302 while (samples--) { in conv_natural_float_to_stereo()
303 dst->l = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_stereo()
304 dst->r = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_stereo()
319 while (samples--) { in clip_natural_float_from_mono()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_afmt.c7 * 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 …]
H A Ddcn30_dio_stream_encoder.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
37 enc1->base.ctx->logger
40 (enc1->regs->reg)
44 enc1->se_shift->field_name, enc1->se_mask->field_name
50 enc1->base.ctx
60 if (info_packet->valid) { in enc3_update_hdmi_info_packet()
61 enc1->base.vpg->funcs->update_generic_info_packet( in enc3_update_hdmi_info_packet()
62 enc1->base.vpg, in enc3_update_hdmi_info_packet()
67 /* enable transmission of packet(s) - in enc3_update_hdmi_info_packet()
80 /* DP_SEC_GSP[x]_LINE_REFERENCE - keep default value REFER_TO_DP_SOF */ in enc3_update_hdmi_info_packet()
[all …]
/openbmc/linux/sound/pci/hda/
H A Dhda_generic.h1 /* 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 Dhda_generic.c1 // 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 …]
/openbmc/linux/drivers/platform/x86/
H A Dpanasonic-laptop.c1 // 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 …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dr600.h1 /* 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 Devergreen_hdmi.h1 /* 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 Ddce3_1_afmt.c8 * 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 …]
H A Devergreen_hdmi.c9 * 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 …]
H A Dr600_hdmi.c9 * 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 Dradeon_audio.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
47 (0x5e00 - 0x5e00),
48 (0x5e18 - 0x5e00),
49 (0x5e30 - 0x5e00),
50 (0x5e48 - 0x5e00),
51 (0x5e60 - 0x5e00),
52 (0x5e78 - 0x5e00),
53 (0x5e90 - 0x5e00),
197 if (rdev->mode_info.mode_config_initialized) { in radeon_audio_enable()
198 list_for_each_entry(encoder, &rdev_to_drm(rdev)->mode_config.encoder_list, head) { in radeon_audio_enable()
[all …]
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_merge.c1 // 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/virtual/
H A Dvirtual_stream_encoder.c2 * 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()
/openbmc/linux/Documentation/driver-api/media/
H A Dv4l2-controls.rst1 .. 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dstream_encoder.h7 * 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);
/openbmc/qemu/hw/usb/
H A Ddev-audio.c16 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34 #include "hw/qdev-properties.h"
48 #define USBAUDIO_MAX_CHANNELS(s) (s->multi ? 8 : 2)
84 [STRING_NULL_STREAM] = "Audio Output - Disabled",
85 [STRING_REAL_STREAM] = "Audio Output - 48 kHz Stereo",
131 /* Headphone Class-Specific AC Interface Header Descriptor */
200 /* Headphone Class-specific AS General Interface Descriptor */
231 /* Stereo Headphone Class-specific
288 /* Headphone Class-Specific AC Interface Header Descriptor */
363 /* Headphone Class-specific AS General Interface Descriptor */
[all …]
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8195.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/clock/mt8195-clk.h>
9 #include <dt-bindings/gce/mt8195-gce.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/memory/mt8195-memory-port.h>
13 #include <dt-bindings/phy/phy.h>
14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
15 #include <dt-bindings/power/mt8195-power.h>
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_lpe_audio.c7 * 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/
H A Ddcn314_dio_stream_encoder.h1 /* SPDX-License-Identifier: MIT */
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
293 bool mute);

12