Home
last modified time | relevance | path

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

12

/linux/sound/soc/intel/avs/boards/
H A Dmax98927.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
17 #define MAX98927_DEV0_NAME "i2c-MX98927:00"
18 #define MAX98927_DEV1_NAME "i2c-MX98927:01"
19 #define MAX98927_CODEC_NAME "max98927-aif1"
33 SOC_DAPM_PIN_SWITCH("Left Spk"),
51 struct snd_mask *fmt; avs_max98927_be_fixup() local
[all...]
H A Dmax98373.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
17 #define MAX98373_DEV0_NAME "i2c-MX98373:00"
18 #define MAX98373_DEV1_NAME "i2c-MX98373:01"
19 #define MAX98373_CODEC_NAME "max98373-aif1"
33 SOC_DAPM_PIN_SWITCH("Left Spk"),
51 struct snd_mask *fmt; avs_max98373_be_fixup() local
[all...]
H A Dmax98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2021-2022 Intel Corporation
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-dapm.h>
18 SOC_DAPM_PIN_SWITCH("Spk"),
22 SND_SOC_DAPM_SPK("Spk", NULL),
26 { "Spk", NUL
33 struct snd_mask *fmt; avs_max98357a_be_fixup() local
[all...]
/linux/sound/soc/amd/acp/
H A Dacp-mach-common.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
19 #include <sound/soc-dapm.h>
29 #include "acp-mach.h"
35 #define NAU8821_CODEC_DAI "nau8821-hifi"
38 #define MAX98388_CODEC_DAI "max98388-aif1"
44 /* Google skyrim proto-0 */
77 clk_set_rate(drvdata->wclk, srate); in acp_clk_enable()
78 clk_set_rate(drvdata->bclk, srate * bclk_ratio); in acp_clk_enable()
80 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable()
85 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1")));
[all …]
/linux/sound/soc/codecs/
H A Dcs42l73.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver
26 #include <sound/soc-dapm.h>
54 { 6, 0xF1 }, /* r06 - Power Ctl 1 */
55 { 7, 0xDF }, /* r07 - Power Ctl 2 */
56 { 8, 0x3F }, /* r08 - Power Ctl 3 */
57 { 9, 0x50 }, /* r09 - Charge Pump Freq */
58 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */
59 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */
60 { 12, 0x00 }, /* r0C - Aux PCM Ctl */
[all …]
H A Dcs35l56.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #include <sound/cs-amp-lib.h>
31 #include <sound/soc-dapm.h>
43 flush_work(&cs35l56->dsp_work); in cs35l56_wait_dsp_ready()
66 static DECLARE_TLV_DB_SCALE(vol_tlv, -10000, 25, 0);
181 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l56_play_event()
186 dev_dbg(cs35l56->base.dev, "play: %d\n", event); in cs35l56_play_event()
191 return regmap_write(cs35l56->base.regmap, CS35L56_DSP_VIRTUAL1_MBOX_1, in cs35l56_play_event()
195 ret = regmap_read_poll_timeout(cs35l56->base.regmap, in cs35l56_play_event()
196 cs35l56->base.fw_reg->transducer_actual_ps, in cs35l56_play_event()
[all …]
H A Drt5660.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5660.c -- RT5660 ALSA SoC audio codec driver
24 #include <sound/soc-dapm.h>
296 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0);
297 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0);
298 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0);
300 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0);
342 * rt5660_set_dmic_clk - Set parameter of dmic.
352 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk()
356 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk()
[all …]
H A Dcs42l52.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l52.c -- CS42L52 ALSA SoC audio driver
29 #include <sound/soc-dapm.h>
43 /* MICA mode selection Differential or Single-ended */
46 /* MICB mode selection Differential or Single-ended */
147 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0);
149 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1);
151 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0);
155 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
157 static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0);
[all …]
H A Dak4535.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4535.c -- AK4535 ALSA Soc Audio driver
65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
174 SND_SOC_DAPM_PGA("Spk Amp", AK4535_PM2, 3, 0, NULL, 0),
232 {"Speaker Enable", "Switch", "Spk Amp"},
233 {"Spk Amp", NULL, "MIN"},
251 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_sysclk()
254 ak4535->sysclk = freq; in ak4535_set_dai_sysclk()
262 struct snd_soc_component *component = dai->component; in ak4535_hw_params()
[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);
436 SOC_ENUM("Class D SPK Ratio Control", rt5640_clsd_spk_ratio_enum),
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()
[all …]
H A Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
73 { 0x2E, 0x00 }, /* 2E Left Spk Mixer */
74 { 0x2F, 0x00 }, /* 2F Right Spk Mixer */
76 { 0x30, 0x00 }, /* 30 Spk Control */
77 { 0x31, 0x2C }, /* 31 Left Spk Volume */
78 { 0x32, 0x2C }, /* 32 Right Spk Volume */
279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset()
280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset()
[all …]
H A Drt9123.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt9123.c -- RT9123 (SW I2C Mode) ALSA SoC Codec driver
25 #include <sound/soc-dai.h>
26 #include <sound/soc-dapm.h>
57 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rt9123_enable_event()
58 struct device *dev = comp->dev; in rt9123_enable_event()
70 return -EINVAL; in rt9123_enable_event()
86 SND_SOC_DAPM_OUTPUT("SPK"),
93 { "SPK", NULL, "Amp Drv" },
96 static const DECLARE_TLV_DB_SCALE(dig_tlv, -10375, 25, 0);
[all …]
H A Dcs35l45.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l45.c - CS35L45 ALSA SoC audio driver
5 // Copyright 2019-2022 Cirrus Logic, Inc.
53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd()
54 dev_err(cs35l45->dev, "DSP not running\n"); in cs35l45_set_cspl_mbox_cmd()
55 return -EPERM; in cs35l45_set_cspl_mbox_cmd()
62 dev_err(cs35l45->dev, "Failed to write MBOX: %d\n", ret); in cs35l45_set_cspl_mbox_cmd()
72 dev_err(cs35l45->dev, "Failed to read MBOX STS: %d\n", ret); in cs35l45_set_cspl_mbox_cmd()
77 dev_dbg(cs35l45->dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l45_set_cspl_mbox_cmd()
83 dev_err(cs35l45->dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); in cs35l45_set_cspl_mbox_cmd()
[all …]
H A Dwm_adsp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm_adsp.c -- Wolfson ADSP support
36 #define adsp_crit(_dsp, fmt, ...) \ argument
37 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_ds
38 adsp_err(_dsp,fmt,...) global() argument
40 adsp_warn(_dsp,fmt,...) global() argument
42 adsp_info(_dsp,fmt,...) global() argument
44 adsp_dbg(_dsp,fmt,...) global() argument
47 compr_err(_obj,fmt,...) global() argument
50 compr_dbg(_obj,fmt,...) global() argument
[all...]
H A Drtq9124.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rtq9124.c -- RTQ9124 ALSA SoC Codec driver
24 #include <sound/soc-dai.h>
25 #include <sound/soc-dapm.h>
65 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rtq9124_enable_event()
78 return -EINVAL; in rtq9124_enable_event()
92 SND_SOC_DAPM_OUTPUT("SPK"),
99 { "SPK", NULL, "Amp Drv" },
102 static const DECLARE_TLV_DB_SCALE(dig_tlv, -10375, 25, 0);
104 0, 3, TLV_DB_SCALE_ITEM(-600, 600, 0),
[all …]
H A Drt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5645.c -- RT5645 ALSA SoC audio codec driver
26 #include <sound/soc-dapm.h>
41 static unsigned int quirk = -1;
439 /* Some (package) variants have the headset-mic pin not-connected */
671 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
672 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0);
673 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
674 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
688 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */
[all …]
H A Dsma1307.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 // sma1307.c -- sma1307 ALSA SoC Audio driver
114 /* Initial register value - 6.0W SPK (8ohm load) */
255 static const DECLARE_TLV_DB_SCALE(sma1307_spk_tlv, -6000, 50, 0);
310 ucontrol->value.integer.value[0] = (int)sma1307->force_mute_status; in sma1307_force_mute_get()
321 bool change = false, val = (bool)ucontrol->value.integer.value[0]; in sma1307_force_mute_put()
323 if (sma1307->force_mute_status == val) { in sma1307_force_mute_put()
327 sma1307->force_mute_status = val; in sma1307_force_mute_put()
341 regmap_read(sma1307->regmap, SMA1307_A5_TDM1, &val1); in sma1307_tdm_slot_get()
342 regmap_read(sma1307->regmap, SMA1307_A6_TDM2, &val2); in sma1307_tdm_slot_get()
[all …]
H A Dsma1303.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 // sma1303.c -- sma1303 ALSA SoC Audio driver
236 static const DECLARE_TLV_DB_SCALE(sma1303_spk_tlv, -6000, 50, 0);
242 int cnt = sma1303->retry_cnt; in sma1303_regmap_write()
244 while (cnt--) { in sma1303_regmap_write()
245 ret = regmap_write(sma1303->regmap, reg, val); in sma1303_regmap_write()
247 dev_err(sma1303->dev, in sma1303_regmap_write()
259 int cnt = sma1303->retry_cnt; in sma1303_regmap_update_bits()
261 while (cnt--) { in sma1303_regmap_update_bits()
262 ret = regmap_update_bits_check(sma1303->regmap, reg, in sma1303_regmap_update_bits()
[all …]
H A Drk3328_codec.c1 // SPDX-License-Identifier: GPL-2.0
22 * 0: -39dB
58 regmap_write(rk3328->regmap, CODEC_RESET, 0x00); in rk3328_codec_reset()
60 regmap_write(rk3328->regmap, CODEC_RESET, 0x03); in rk3328_codec_reset()
65 static int rk3328_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) in rk3328_set_dai_fmt() argument
68 snd_soc_component_get_drvdata(dai->component); in rk3328_set_dai_fmt()
71 switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in rk3328_set_dai_fmt()
79 return -EINVAL; in rk3328_set_dai_fmt()
82 regmap_update_bits(rk3328->regmap, DAC_INIT_CTRL1, in rk3328_set_dai_fmt()
85 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in rk3328_set_dai_fmt()
[all …]
H A Dwm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8903.c -- WM8903 ALSA SoC Audio driver
5 * Copyright 2008-12 Wolfson Microelectronics
6 * Copyright 2011-2012 NVIDIA, Inc.
11 * - TDM mode configuration.
41 { 4, 0x0018 }, /* R4 - Bias Control 0 */
42 { 5, 0x0000 }, /* R5 - VMID Control 0 */
43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */
45 { 10, 0x0001 }, /* R10 - Analogue ADC 0 */
[all …]
/linux/sound/soc/intel/boards/
H A Dcht_bsw_max98090_ti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
24 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
46 struct snd_soc_card *card = dapm->card; in platform_clock_control()
52 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
57 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
58 return -EIO; in platform_clock_control()
62 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dwlf,arizona.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
20 - $ref: dai-common.yaml#
23 '#sound-dai-cells':
31 signals. Valid values are 0 (Differential), 1 (Single-ended) and
38 $ref: /schemas/types.yaml#/definitions/uint32-array
46 wlf,out-mono:
50 (eg. First entry in the list corresponds to output 1). A non-zero
[all …]
/linux/sound/soc/qcom/
H A Dsdm845.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/sound/qcom,q6afe.h>
15 #include <uapi/linux/input-event-codes.h>
65 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params()
73 substream->stream); in sdm845_slim_snd_hw_params()
74 if (sruntime != ERR_PTR(-ENOTSUPP)) in sdm845_slim_snd_hw_params()
75 pdata->sruntime[cpu_dai->id] = sruntime; in sdm845_slim_snd_hw_params()
80 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params()
83 } else if (ret == -ENOTSUPP) { in sdm845_slim_snd_hw_params()
88 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdm845_slim_snd_hw_params()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-compressed.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
8 .. _compressed-formats:
18 .. flat-table:: Compressed Image Formats
19 :header-rows: 1
20 :stub-columns: 0
23 * - Identifier
24 - Code
25 - Details
26 * .. _V4L2-PIX-FMT-JPEG:
28 - ``V4L2_PIX_FMT_JPEG``
[all …]
/linux/sound/soc/tegra/
H A Dtegra210_i2s.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES.
5 // tegra210_i2s.c - Tegra210 I2S driver
56 regmap_write(i2s->regmap, TEGRA210_I2S_SLOT_CTRL + i2s->soc_data->i2s_ctrl_offset, in tegra210_i2s_set_slot_ctrl()
57 total_slots - 1); in tegra210_i2s_set_slot_ctrl()
58 regmap_write(i2s->regmap, TEGRA210_I2S_TX_SLOT_CTRL + i2s->soc_data->tx_offset, in tegra210_i2s_set_slot_ctrl()
60 regmap_write(i2s->regmap, TEGRA210_I2S_RX_SLOT_CTRL, rx_slot_mask); in tegra210_i2s_set_slot_ctrl()
70 regmap_read(i2s->regmap, TEGRA210_I2S_CTRL + i2s->soc_data->i2s_ctrl_offset, &val); in tegra210_i2s_set_clock_rate()
76 err = clk_set_rate(i2s->clk_i2s, clock_rate); in tegra210_i2s_set_clock_rate()
83 if (!IS_ERR(i2s->clk_sync_input)) { in tegra210_i2s_set_clock_rate()
[all …]

12