Home
last modified time | relevance | path

Searched +full:mix +full:- (Results 1 – 25 of 873) sorted by relevance

12345678910>>...35

/kernel/linux/linux-6.6/drivers/clk/mmp/
Dclk-mix.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mmp mix(div and mux) clock operation source file
9 #include <linux/clk-provider.h>
17 * The mix clock is a clock combined mux and div type clock.
24 static unsigned int _get_maxdiv(struct mmp_clk_mix *mix) in _get_maxdiv() argument
26 unsigned int div_mask = (1 << mix->reg_info.width_div) - 1; in _get_maxdiv()
30 if (mix->div_flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv()
32 if (mix->div_flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv()
34 if (mix->div_table) { in _get_maxdiv()
35 for (clkt = mix->div_table; clkt->div; clkt++) in _get_maxdiv()
[all …]
/kernel/linux/linux-5.10/drivers/clk/mmp/
Dclk-mix.c2 * mmp mix(div and mux) clock operation source file
12 #include <linux/clk-provider.h>
20 * The mix clock is a clock combined mux and div type clock.
27 static unsigned int _get_maxdiv(struct mmp_clk_mix *mix) in _get_maxdiv() argument
29 unsigned int div_mask = (1 << mix->reg_info.width_div) - 1; in _get_maxdiv()
33 if (mix->div_flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv()
35 if (mix->div_flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv()
37 if (mix->div_table) { in _get_maxdiv()
38 for (clkt = mix->div_table; clkt->div; clkt++) in _get_maxdiv()
39 if (clkt->div > maxdiv) in _get_maxdiv()
[all …]
/kernel/linux/linux-6.6/sound/ppc/
Dtumbler.c1 // SPDX-License-Identifier: GPL-2.0-or-later
114 err = i2c_smbus_write_byte_data(i2c->client, in send_init_client()
120 } while (count--); in send_init_client()
122 return -ENXIO; in send_init_client()
145 /* normal operation, all-pass mode */ in snapper_init_client()
147 /* normal output, no deemphasis, A input, power-up, line-in */ in snapper_init_client()
159 pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, (gp)->addr, val)
161 pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, (gp)->addr, 0)
166 if (! gp->addr) in write_audio_gpio()
168 active = active ? gp->active_val : gp->inactive_val; in write_audio_gpio()
[all …]
Ddaca.c1 // SPDX-License-Identifier: GPL-2.0-or-later
42 /* SR: no swap, 1bit delay, 32-48kHz */ in daca_init_client()
44 if (i2c_smbus_write_byte_data(i2c->client, DACA_REG_SR, 0x08) < 0 || in daca_init_client()
45 i2c_smbus_write_byte_data(i2c->client, DACA_REG_GCFG, 0x05) < 0) in daca_init_client()
46 return -EINVAL; in daca_init_client()
47 return i2c_smbus_write_block_data(i2c->client, DACA_REG_AVOL, in daca_init_client()
54 static int daca_set_volume(struct pmac_daca *mix) in daca_set_volume() argument
58 if (! mix->i2c.client) in daca_set_volume()
59 return -ENODEV; in daca_set_volume()
61 if (mix->left_vol > DACA_VOL_MAX) in daca_set_volume()
[all …]
/kernel/linux/linux-5.10/sound/ppc/
Dtumbler.c1 // SPDX-License-Identifier: GPL-2.0-or-later
114 err = i2c_smbus_write_byte_data(i2c->client, in send_init_client()
120 } while (count--); in send_init_client()
122 return -ENXIO; in send_init_client()
145 /* normal operation, all-pass mode */ in snapper_init_client()
147 /* normal output, no deemphasis, A input, power-up, line-in */ in snapper_init_client()
159 pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, (gp)->addr, val)
161 pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, (gp)->addr, 0)
166 if (! gp->addr) in write_audio_gpio()
168 active = active ? gp->active_val : gp->inactive_val; in write_audio_gpio()
[all …]
Ddaca.c1 // SPDX-License-Identifier: GPL-2.0-or-later
42 /* SR: no swap, 1bit delay, 32-48kHz */ in daca_init_client()
44 if (i2c_smbus_write_byte_data(i2c->client, DACA_REG_SR, 0x08) < 0 || in daca_init_client()
45 i2c_smbus_write_byte_data(i2c->client, DACA_REG_GCFG, 0x05) < 0) in daca_init_client()
46 return -EINVAL; in daca_init_client()
47 return i2c_smbus_write_block_data(i2c->client, DACA_REG_AVOL, in daca_init_client()
54 static int daca_set_volume(struct pmac_daca *mix) in daca_set_volume() argument
58 if (! mix->i2c.client) in daca_set_volume()
59 return -ENODEV; in daca_set_volume()
61 if (mix->left_vol > DACA_VOL_MAX) in daca_set_volume()
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
Dmix.c1 // SPDX-License-Identifier: GPL-2.0
3 // mix.c
9 * +------+ +------+
10 * [SRC3 / SRC6] -> |CTU n0| -> [MIX n0| ->
11 * [SRC4 / SRC9] -> |CTU n1| -> [MIX n1| ->
12 * [SRC0 / SRC1] -> |CTU n2| -> [MIX n2| ->
13 * [SRC2 / SRC5] -> |CTU n3| -> [MIX n3| ->
14 * +------+ +------+
20 * MIX Volume
21 * amixer set "MIX",0 100% // DAI0 Volume
[all …]
/kernel/linux/linux-6.6/sound/soc/sh/rcar/
Dmix.c1 // SPDX-License-Identifier: GPL-2.0
3 // mix.c
9 * +------+ +------+
10 * [SRC3 / SRC6] -> |CTU n0| -> [MIX n0| ->
11 * [SRC4 / SRC9] -> |CTU n1| -> [MIX n1| ->
12 * [SRC0 / SRC1] -> |CTU n2| -> [MIX n2| ->
13 * [SRC2 / SRC5] -> |CTU n3| -> [MIX n3| ->
14 * +------+ +------+
20 * MIX Volume
21 * amixer set "MIX",0 100% // DAI0 Volume
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dalc5632.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * alc5632.c -- ALC5632 ALSA SoC Audio Codec
36 { 2, 0x8080 }, /* R2 - Speaker Output Volume */
37 { 4, 0x8080 }, /* R4 - Headphone Output Volume */
38 { 6, 0x8080 }, /* R6 - AUXOUT Volume */
39 { 8, 0xC800 }, /* R8 - Phone Input */
40 { 10, 0xE808 }, /* R10 - LINE_IN Volume */
41 { 12, 0x1010 }, /* R12 - STEREO DAC Input Volume */
42 { 14, 0x0808 }, /* R14 - MIC Input Volume */
43 { 16, 0xEE0F }, /* R16 - Stereo DAC and MIC Routing Control */
[all …]
Dalc5623.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * alc5623.c -- alc562[123] ALSA Soc Audio driver
8 * Copyright 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
53 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in amp_mixer_event()
55 /* to power-on/off class-d amp generators/speaker */ in amp_mixer_event()
56 /* need to write to 'index-46h' register : */ in amp_mixer_event()
77 static const DECLARE_TLV_DB_SCALE(vol_tlv, -3450, 150, 0);
78 static const DECLARE_TLV_DB_SCALE(hp_tlv, -4650, 150, 0);
79 static const DECLARE_TLV_DB_SCALE(adc_rec_tlv, -1650, 150, 0);
205 "RN/-R", "RP/+R", "LN/-R", "Vmid" };
[all …]
Drt5677.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677.c -- RT5677 ALSA SoC audio codec driver
31 #include <sound/soc-dapm.h>
37 #include "rt5677-spi.h"
554 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode.
565 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr()
568 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr()
570 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr()
573 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr()
577 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr()
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dalc5632.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * alc5632.c -- ALC5632 ALSA SoC Audio Codec
36 { 2, 0x8080 }, /* R2 - Speaker Output Volume */
37 { 4, 0x8080 }, /* R4 - Headphone Output Volume */
38 { 6, 0x8080 }, /* R6 - AUXOUT Volume */
39 { 8, 0xC800 }, /* R8 - Phone Input */
40 { 10, 0xE808 }, /* R10 - LINE_IN Volume */
41 { 12, 0x1010 }, /* R12 - STEREO DAC Input Volume */
42 { 14, 0x0808 }, /* R14 - MIC Input Volume */
43 { 16, 0xEE0F }, /* R16 - Stereo DAC and MIC Routing Control */
[all …]
Dalc5623.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * alc5623.c -- alc562[123] ALSA Soc Audio driver
8 * Copyright 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
53 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in amp_mixer_event()
55 /* to power-on/off class-d amp generators/speaker */ in amp_mixer_event()
56 /* need to write to 'index-46h' register : */ in amp_mixer_event()
77 static const DECLARE_TLV_DB_SCALE(vol_tlv, -3450, 150, 0);
78 static const DECLARE_TLV_DB_SCALE(hp_tlv, -4650, 150, 0);
79 static const DECLARE_TLV_DB_SCALE(adc_rec_tlv, -1650, 150, 0);
205 "RN/-R", "RP/+R", "LN/-R", "Vmid" };
[all …]
Drt5677.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5677.c -- RT5677 ALSA SoC audio codec driver
29 #include <sound/soc-dapm.h>
35 #include "rt5677-spi.h"
552 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode.
563 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr()
566 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr()
568 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr()
571 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr()
575 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dcavium-mix.txt1 * MIX Ethernet controller.
4 - compatible: "cavium,octeon-5750-mix"
6 Compatibility with all cn5XXX and cn6XXX SOCs populated with MIX
9 - reg: The base addresses of four separate register banks. The first
10 bank contains the MIX registers. The second bank the corresponding
12 MIX devices present. The fourth bank is the AGL_PRT_CTL shared by
13 all MIX devices present.
15 - cell-index: A single cell specifying which portion of the shared
16 register banks corresponds to this MIX device.
18 - interrupts: Two interrupt specifiers. The first is the MIX
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dcavium-mix.txt1 * MIX Ethernet controller.
4 - compatible: "cavium,octeon-5750-mix"
6 Compatibility with all cn5XXX and cn6XXX SOCs populated with MIX
9 - reg: The base addresses of four separate register banks. The first
10 bank contains the MIX registers. The second bank the corresponding
12 MIX devices present. The fourth bank is the AGL_PRT_CTL shared by
13 all MIX devices present.
15 - cell-index: A single cell specifying which portion of the shared
16 register banks corresponds to this MIX device.
18 - interrupts: Two interrupt specifiers. The first is the MIX
[all …]
/kernel/linux/linux-5.10/sound/pci/emu10k1/
Demumixer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Multichannel PCM support Copyright (c) Lee Revell <rlrevell@joe-job.com>
9 * Copyright (c) by James Courtier-Dutton <James@superbug.co.uk>
13 * --
16 * --
30 static const DECLARE_TLV_DB_SCALE(snd_audigy_db_scale2, -10350, 50, 1); /* WM8775 gain scale */
34 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; in snd_emu10k1_spdif_info()
35 uinfo->count = 1; in snd_emu10k1_spdif_info()
43 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
46 /* Limit: emu->spdif_bits */ in snd_emu10k1_spdif_get()
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0029_linux_drivers_mfd.patch7 Change-Id: I6657300647d765d5784880d32917e080e86881dc
9 diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
11 --- a/drivers/mfd/Kconfig
13 @@ -497,6 +497,17 @@ config MFD_MX25_TSADC
18 + tristate "NXP i.MX Generic Mix Control Driver"
22 + devices that are a mix of multiple functionalities like reset
31 diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
33 --- a/drivers/mfd/Makefile
35 @@ -115,6 +115,7 @@ obj-$(CONFIG_MFD_TWL4030_AUDIO) += twl4030-audio.o
36 obj-$(CONFIG_TWL6040_CORE) += twl6040.o
[all …]
/kernel/linux/linux-6.6/sound/pci/emu10k1/
Demumixer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Lee Revell <rlrevell@joe-job.com>
6 * James Courtier-Dutton <James@superbug.co.uk>
24 static const DECLARE_TLV_DB_SCALE(snd_audigy_db_scale2, -10350, 50, 1); /* WM8775 gain scale */
36 err = snd_ctl_add(emu->card, snd_ctl_new1(&kctl, emu)); in add_ctls()
46 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; in snd_emu10k1_spdif_info()
47 uinfo->count = 1; in snd_emu10k1_spdif_info()
55 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
57 /* Limit: emu->spdif_bits */ in snd_emu10k1_spdif_get()
59 return -EINVAL; in snd_emu10k1_spdif_get()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_ctl.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
12 (((lm) == LM_5) ? (0x024) : (((lm) - LM_0) * 0x004))
14 (0x40 + (((lm) - LM_0) * 0x004))
16 (0x70 + (((lm) - LM_0) * 0x004))
18 (0xA0 + (((lm) - LM_0) * 0x004))
42 for (i = 0; i < m->ctl_count; i++) { in _ctl_offset()
43 if (ctl == m->ctl[i].id) { in _ctl_offset()
44 b->base_off = addr; in _ctl_offset()
45 b->blk_off = m->ctl[i].base; in _ctl_offset()
[all …]
/kernel/linux/linux-6.6/sound/mips/
Dad1843.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org>
35 ad1843_PDNO = { 0, 14, 1 }, /* Converter Power-Down Flag */
43 ad1843_RD2M = { 3, 0, 5 }, /* Right DAC 2 Mix Gain/Atten */
44 ad1843_RD2MM = { 3, 7, 1 }, /* Right DAC 2 Mix Mute */
45 ad1843_LD2M = { 3, 8, 5 }, /* Left DAC 2 Mix Gain/Atten */
46 ad1843_LD2MM = { 3, 15, 1 }, /* Left DAC 2 Mix Mute */
47 ad1843_RX1M = { 4, 0, 5 }, /* Right Aux 1 Mix Gain/Atten */
48 ad1843_RX1MM = { 4, 7, 1 }, /* Right Aux 1 Mix Mute */
49 ad1843_LX1M = { 4, 8, 5 }, /* Left Aux 1 Mix Gain/Atten */
[all …]
/kernel/linux/linux-5.10/sound/mips/
Dad1843.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org>
35 ad1843_PDNO = { 0, 14, 1 }, /* Converter Power-Down Flag */
43 ad1843_RD2M = { 3, 0, 5 }, /* Right DAC 2 Mix Gain/Atten */
44 ad1843_RD2MM = { 3, 7, 1 }, /* Right DAC 2 Mix Mute */
45 ad1843_LD2M = { 3, 8, 5 }, /* Left DAC 2 Mix Gain/Atten */
46 ad1843_LD2MM = { 3, 15, 1 }, /* Left DAC 2 Mix Mute */
47 ad1843_RX1M = { 4, 0, 5 }, /* Right Aux 1 Mix Gain/Atten */
48 ad1843_RX1MM = { 4, 7, 1 }, /* Right Aux 1 Mix Mute */
49 ad1843_LX1M = { 4, 8, 5 }, /* Left Aux 1 Mix Gain/Atten */
[all …]
/kernel/linux/linux-6.6/sound/pci/au88x0/
Dau88x0_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 and translated the rest of the riddle (Mix, Src and connection stuff).
45 01-03-2003 First revision.
46 01-21-2003 Some bug fixes.
47 17-02-2003 many bugfixes after a big versioning mess.
48 18-02-2003 JAAAAAHHHUUUUUU!!!! The mixer works !! I'm just so happy !
51 20-02-2003 First steps into the ALSA world.
52 28-02-2003 As my birthday present, i discovered how the DMA buffer pages really
53 work :-). It was all wrong.
54 12-03-2003 ALSA driver starts working (2 channels).
[all …]
/kernel/linux/linux-5.10/sound/pci/au88x0/
Dau88x0_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 and translated the rest of the riddle (Mix, Src and connection stuff).
45 01-03-2003 First revision.
46 01-21-2003 Some bug fixes.
47 17-02-2003 many bugfixes after a big versioning mess.
48 18-02-2003 JAAAAAHHHUUUUUU!!!! The mixer works !! I'm just so happy !
51 20-02-2003 First steps into the ALSA world.
52 28-02-2003 As my birthday present, i discovered how the DMA buffer pages really
53 work :-). It was all wrong.
54 12-03-2003 ALSA driver starts working (2 channels).
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/octeon/
Docteon_mgmt.c6 * Copyright (C) 2009-2012 Cavium, Inc
10 #include <linux/dma-mapping.h>
27 #include <asm/octeon/cvmx-mixx-defs.h>
28 #include <asm/octeon/cvmx-agl-defs.h>
119 u64 mix; member
162 spin_lock_irqsave(&p->lock, flags); in octeon_mgmt_set_rx_irq()
163 mix_intena.u64 = cvmx_read_csr(p->mix + MIX_INTENA); in octeon_mgmt_set_rx_irq()
165 cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64); in octeon_mgmt_set_rx_irq()
166 spin_unlock_irqrestore(&p->lock, flags); in octeon_mgmt_set_rx_irq()
174 spin_lock_irqsave(&p->lock, flags); in octeon_mgmt_set_tx_irq()
[all …]

12345678910>>...35