Home
last modified time | relevance | path

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

12345678910>>...19

/linux/drivers/clk/mmp/
H A 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 …]
/linux/sound/ppc/
H A 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 …]
H A 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 …]
/linux/sound/soc/sh/rcar/
H A 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 …]
H A Dcmd.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car CMD support
16 #define rsnd_cmd_nr(priv) ((priv)->cmd_nr)
20 ((pos) = (struct rsnd_cmd *)(priv)->cmd + i); \
28 struct rsnd_mod *mix = rsnd_io_to_mod_mix(io); in rsnd_cmd_init() local
38 if (!mix && !dvc) in rsnd_cmd_init()
42 return -ENXIO; in rsnd_cmd_init()
44 if (mix) { in rsnd_cmd_init()
55 struct rsnd_dai_stream *tio = &rdai->playback; in rsnd_cmd_init()
58 if (mix == rsnd_io_to_mod_mix(tio)) in rsnd_cmd_init()
[all …]
/linux/sound/soc/codecs/
H A 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 …]
H A 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 …]
H A 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 …]
H A Drt5640.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver
27 #include <sound/soc-dapm.h>
340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
451 * set_dmic_clk - Set parameter of dmic.
461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
465 rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap, in set_dmic_clk()
[all …]
H A Dlpass-wsa-macro.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
12 #include <linux/clk-provider.h>
14 #include <sound/soc-dapm.h>
19 #include "lpass-macro-common.h"
20 #include "lpass-wsa-macro.h"
352 {24000, -EINVAL},/* 24K */
377 * struct wsa_reg_layout - Register layout differences
382 * @compander1_reg_offset: offset between compander registers (compander1 - compander0)
384 * @softclip1_reg_offset: offset between compander registers (softclip1 - softclip0)
[all …]
H A Drt5651.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5651.c -- RT5651 ALSA SoC audio codec driver
23 #include <sound/soc-dapm.h>
287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
369 * set_dmic_clk - Set parameter of dmic.
379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
383 rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap, in set_dmic_clk()
[all …]
/linux/Documentation/devicetree/bindings/net/
H A 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 …]
/linux/sound/pci/emu10k1/
H A 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 …]
H A Demupcm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Lee Revell <rlrevell@joe-job.com>
5 * James Courtier-Dutton <James@superbug.co.uk>
25 epcm = voice->epcm; in snd_emu10k1_pcm_interrupt()
28 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt()
31 dev_dbg(emu->card->dev, in snd_emu10k1_pcm_interrupt()
33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
34 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt()
35 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt()
37 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt()
[all …]
/linux/sound/pci/au88x0/
H A 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 …]
/linux/sound/mips/
H A 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 …]
/linux/drivers/net/ethernet/cavium/octeon/
H A 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 …]
/linux/arch/arm64/boot/dts/renesas/
H A Dulcb-audio-graph-card2-mix+split.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for ULCB + Audio Graph Card2 (MIX + TDM Split)
12 * (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX-0)
13 * (B) CPU1 (2ch) --/ (MIX-1)
15 * (A) aplay -D plughw:0,0 xxx.wav
16 * (B) aplay -D plughw:0,1 xxx.wav
18 * (A) arecord -D plughw:0,0 xxx.wav
22 compatible = "audio-graph-card2";
23 label = "snd-ulcb-mix";
35 #address-cells = <1>;
[all …]
H A Dulcb-audio-graph-card-mix+split.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for ULCB + Audio Graph Card (MIX)
12 * (A) CPU0 (2ch) <-----> (2ch) (X) ak4613 (MIX-0)
13 * (B) CPU1 (2ch) --/ (MIX-1)
15 * (A) aplay -D plughw:0,0 xxx.wav
16 * (B) aplay -D plughw:0,1 xxx.wav
18 * (A) arecord -D plughw:0,0 xxx.wav
23 compatible = "audio-graph-scu-card";
24 label = "snd-ulcb-mix";
38 #address-cells = <1>;
[all …]
H A Dulcb-kf-simple-audio-card-mix+split.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for ULCB + Kingfisher + Simple Audio Card (MIX + TDM Split)
12 * (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX-0)
13 * (B) CPU1 (2ch) --/ (MIX-1)
14 * (C) CPU3 (2ch) ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
15 * (D) CPU2 (2ch) --/ (TDM-1 : 2,3ch)
16 * (E) CPU4 (2ch) --/ (TDM-2 : 4,5ch)
17 * (F) CPU5 (2ch) --/ (TDM-3 : 6,7ch)
18 * (G) CPU6 (6ch) <---- (6ch) (Z) PCM3168A-c
20 * (A) aplay -D plughw:0,0 xxx.wav (MIX-0)
[all …]
H A Dulcb-kf-audio-graph-card-mix+split.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for ULCB + Kingfisher + Audio Graph Card (MIX + TDM Split)
12 * (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX-0)
13 * (B) CPU1 (2ch) --/ (MIX-1)
14 * (C) CPU2 (2ch) ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
15 * (D) CPU3 (2ch) --/ (TDM-1 : 2,3ch)
16 * (E) CPU4 (2ch) --/ (TDM-2 : 4,5ch)
17 * (F) CPU5 (2ch) --/ (TDM-3 : 6,7ch)
18 * (G) CPU6 (6ch) <---- (6ch) (Z) PCM3168A-c
20 * (A) aplay -D plughw:0,0 xxx.wav (MIX-0)
[all …]
H A Dulcb-kf-audio-graph-card2-mix+split.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree for ULCB + Kingfisher + Audio Graph Card2 (MIX + TDM Split)
12 * (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX-0)
13 * (B) CPU1 (2ch) --/ (MIX-1)
14 * (C) CPU3 (2ch) ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
15 * (D) CPU2 (2ch) --/ (TDM-1 : 2,3ch)
16 * (E) CPU4 (2ch) --/ (TDM-2 : 4,5ch)
17 * (F) CPU5 (2ch) --/ (TDM-3 : 6,7ch)
18 * (G) CPU6 (6ch) <---- (6ch) (Z) PCM3168A-c
20 * (A) aplay -D plughw:0,0 xxx.wav (MIX-0)
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-atom-controls.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * sst-atom-controls.c - Intel MID Platform driver DPCM ALSA controls for Mrfld
5 * Copyright (C) 2013-14 Intel Corp
20 #include "sst-mfld-platform.h"
21 #include "sst-atom-controls.h"
28 struct snd_sst_bytes_v2 *byte_data = drv->byte_stream; in sst_fill_byte_control()
30 byte_data->type = SST_CMD_BYTES_SET; in sst_fill_byte_control()
31 byte_data->ipc_msg = ipc_msg; in sst_fill_byte_control()
32 byte_data->block = block; in sst_fill_byte_control()
33 byte_data->task_id = task_id; in sst_fill_byte_control()
[all …]
/linux/sound/soc/fsl/
H A Dfsl_audmix.c1 // SPDX-License-Identifier: GPL-2.0
52 /* DIS->DIS, do nothing */
54 /* DIS->TDM1*/
55 { .tdms = 1, .clk = 1, .msg = "DIS->TDM1: TDM1 not started!\n" },
56 /* DIS->TDM2*/
57 { .tdms = 2, .clk = 2, .msg = "DIS->TDM2: TDM2 not started!\n" },
58 /* DIS->MIX */
59 { .tdms = 3, .clk = 0, .msg = "DIS->MIX: Please start both TDMs!\n" }
60 }, { /* TDM1->DIS */
61 { .tdms = 1, .clk = 0, .msg = "TDM1->DIS: TDM1 not started!\n" },
[all …]
/linux/arch/x86/boot/
H A Dvideo-mode.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* -*- linux-c -*- ------------------------------------------------------- *
5 * Copyright 2007-2008 rPath, Inc. - All Rights Reserved
7 * ----------------------------------------------------------------------- */
10 * arch/i386/boot/video-mode.c
42 if (card->unsafe == unsafe) { in probe_cards()
43 if (card->probe) in probe_cards()
44 card->nmodes = card->probe(); in probe_cards()
46 card->nmodes = 0; in probe_cards()
59 mi = card->modes; in mode_defined()
[all …]

12345678910>>...19