/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
D | cirrus,lochnagar.yaml | 1 # 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 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 15 Logic devices on mini-cards, as well as allowing connection of various 26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt 29 [3] include/dt-bindings/pinctrl/lochnagar.h 37 - cirrus,lochnagar-pinctrl 39 gpio-controller: true [all …]
|
/kernel/linux/linux-5.10/sound/soc/samsung/ |
D | smdk_wm8994pcm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 * SMDKC210, SMDKV310: CFG3- 1001, CFG5-1000, CFG7-111111 24 * Configure audio route as :- 28 * $ amixer sset 'DAC1R Mixer AIF1.1' on 29 * $ amixer sset 'DAC1L Mixer AIF1.1' on 57 dev_err(cpu_dai->dev, "%s:%d Sampling Rate %u not supported!\n", in smdk_wm8994_pcm_hw_params() 59 return -EINVAL; in smdk_wm8994_pcm_hw_params() 80 /* Set SCLK_DIV for making bclk */ in smdk_wm8994_pcm_hw_params() 93 DAILINK_COMP_ARRAY(COMP_CPU("samsung-pcm.0")), 94 DAILINK_COMP_ARRAY(COMP_CODEC("wm8994-codec", "wm8994-aif1")), [all …]
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | wm8993.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8993.c -- WM8993 ALSA SoC audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 42 { 1, 0x0000 }, /* R1 - Power Management (1) */ 43 { 2, 0x6000 }, /* R2 - Power Management (2) */ 44 { 3, 0x0000 }, /* R3 - Power Management (3) */ 45 { 4, 0x4050 }, /* R4 - Audio Interface (1) */ 46 { 5, 0x4000 }, /* R5 - Audio Interface (2) */ 47 { 6, 0x01C8 }, /* R6 - Clocking 1 */ 48 { 7, 0x0000 }, /* R7 - Clocking 2 */ [all …]
|
D | wm9081.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm9081.c -- WM9081 ALSA SoC Audio driver 7 * Copyright 2009-12 Wolfson Microelectronics plc 30 { 2, 0x00B9 }, /* R2 - Analogue Lineout */ 31 { 3, 0x00B9 }, /* R3 - Analogue Speaker PGA */ 32 { 4, 0x0001 }, /* R4 - VMID Control */ 33 { 5, 0x0068 }, /* R5 - Bias Control 1 */ 34 { 7, 0x0000 }, /* R7 - Analogue Mixer */ 35 { 8, 0x0000 }, /* R8 - Anti Pop Control */ 36 { 9, 0x01DB }, /* R9 - Analogue Speaker 1 */ [all …]
|
D | wm5100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5100.c -- WM5100 ALSA SoC Audio driver 5 * Copyright 2011-2 Wolfson Microelectronics plc 51 /* codec private data */ 127 dev_err(component->dev, "Unsupported sample rate: %dHz\n", rate); in wm5100_alloc_sr() 128 return -EINVAL; in wm5100_alloc_sr() 132 if ((wm5100->sysclk % rate) == 0) { in wm5100_alloc_sr() 134 sr_free = -1; in wm5100_alloc_sr() 136 if (!wm5100->sr_ref[i] && sr_free == -1) { in wm5100_alloc_sr() 146 wm5100->sr_ref[i]++; in wm5100_alloc_sr() [all …]
|
D | wm8904.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8904.c -- WM8904 ALSA SoC Audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 45 /* codec private data */ 81 int bclk; member 84 /* DC servo configuration - cached offset values */ 89 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 90 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 91 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ 92 { 7, 0x0000 }, /* R7 - Mic Bias Control 1 */ [all …]
|
D | wm8995.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8995.c -- WM8995 ALSA SoC Audio driver 26 #include <sound/soc-dapm.h> 400 regcache_mark_dirty(wm8995->regmap); \ 414 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 415 static const DECLARE_TLV_DB_SCALE(in1lr_pga_tlv, -1650, 150, 0); 417 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 420 "Differential", "Single-ended IN1LN", "Single-ended IN1LP" 427 "Differential", "Single-ended IN1RN", "Single-ended IN1RP" 495 dev_dbg(component->dev, "Class W source AIF2DAC\n"); in wm8995_update_class_w() [all …]
|
D | max98373-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 119 struct snd_soc_component *component = codec_dai->component; in max98373_dai_set_fmt() 124 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98373_dai_set_fmt() 133 dev_err(component->dev, "DAI invert mode unsupported\n"); in max98373_dai_set_fmt() 134 return -EINVAL; in max98373_dai_set_fmt() 137 regmap_update_bits(max98373->regmap, in max98373_dai_set_fmt() 157 return -EINVAL; in max98373_dai_set_fmt() 160 regmap_update_bits(max98373->regmap, in max98373_dai_set_fmt() 173 static int max98373_get_bclk_sel(int bclk) in max98373_get_bclk_sel() argument 178 if (bclk_sel_table[i] == bclk) in max98373_get_bclk_sel() [all …]
|
D | wm8996.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8996.c - WM8996 audio codec interface 5 * Copyright 2011-2 Wolfson Microelectronics PLC. 108 regcache_mark_dirty(wm8996->regmap); \ 299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 300 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 301 static const DECLARE_TLV_DB_SCALE(out_digital_tlv, -1200, 150, 0); 302 static const DECLARE_TLV_DB_SCALE(out_tlv, -900, 75, 0); 303 static const DECLARE_TLV_DB_SCALE(spk_tlv, -900, 150, 0); 304 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); [all …]
|
D | wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8994.c -- WM8994 ALSA SoC Audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() 120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate() 124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate() 126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate() 128 if (control->pdata.micd_rates) { in wm8958_micd_set_rate() 129 rates = control->pdata.micd_rates; in wm8958_micd_set_rate() 130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() [all …]
|
D | max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max98927.c -- MAX98927 ALSA Soc Audio driver 5 * Copyright (C) 2016-2017 Maxim Integrated Products 141 struct snd_soc_component *component = codec_dai->component; in max98927_dai_set_fmt() 148 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98927_dai_set_fmt() 155 max98927->master = true; in max98927_dai_set_fmt() 159 dev_err(component->dev, "DAI clock mode unsupported\n"); in max98927_dai_set_fmt() 160 return -EINVAL; in max98927_dai_set_fmt() 163 regmap_update_bits(max98927->regmap, in max98927_dai_set_fmt() 175 dev_err(component->dev, "DAI invert mode unsupported\n"); in max98927_dai_set_fmt() [all …]
|
D | rt5616.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5616.c -- RT5616 ALSA SoC audio codec driver 22 #include <sound/soc-dapm.h> 150 int bclk[RT5616_AIFS]; member 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 351 val = snd_soc_component_read(snd_soc_dapm_to_component(source->dapm), RT5616_GLB_CLK); in is_sys_clk_from_pll() 466 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_adc_event() [all …]
|
D | rt274.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt274.c -- RT274 ALSA SoC audio codec driver 23 #include <sound/soc-dapm.h> 344 snd_soc_component_write(component, rt274->index_cache[i].reg, in rt274_index_sync() 345 rt274->index_cache[i].def); in rt274_index_sync() 358 if (!rt274->component) in rt274_jack_detect() 359 return -EINVAL; in rt274_jack_detect() 361 ret = regmap_read(rt274->regmap, RT274_GET_HP_SENSE, &buf); in rt274_jack_detect() 366 ret = regmap_read(rt274->regmap, RT274_GET_MIC_SENSE, &buf); in rt274_jack_detect() 394 snd_soc_jack_report(rt274->jack, status, in rt274_jack_detect_work() [all …]
|
D | rt5660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5660.c -- RT5660 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 298 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0); 299 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0); 300 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0); 302 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0); 344 * rt5660_set_dmic_clk - Set parameter of dmic. 354 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk() 358 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk() [all …]
|
D | max98925.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98925.c -- ALSA SoC Stereo MAX98925 driver 4 * Copyright 2013-15 Maxim Integrated Products 105 regmap_update_bits(max98925->regmap, in max98925_dac_event() 113 regmap_update_bits(max98925->regmap, in max98925_dac_event() 187 static DECLARE_TLV_DB_SCALE(max98925_spk_tlv, -600, 100, 0); 191 M98925_SPK_GAIN_SHIFT, (1<<M98925_SPK_GAIN_WIDTH)-1, 0, 200 (1<<M98925_ALC_TH_WIDTH)-1, 0), 204 /* codec sample rate and n/m dividers parameter table */ 260 int ret = -EINVAL; in max98925_rate_value() [all …]
|
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
D | cht_bsw_rt5672.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms 4 * Cherrytrail and Braswell, with RT5672 codec. 21 #include <sound/soc-acpi.h> 23 #include "../atom/sst-atom-controls.h" 26 /* The platform clock #3 outputs 19.2Mhz clock to codec as I2S MCLK */ 28 #define CHT_CODEC_DAI "rt5670-aif1" 51 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 52 struct snd_soc_card *card = dapm->card; in platform_clock_control() 59 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control() [all …]
|
D | kbl_rt5663_rt5514_max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <sound/soc-acpi.h> 26 #include <linux/clk-provider.h> 29 #define KBL_REALTEK_CODEC_DAI "rt5663-aif" 30 #define KBL_REALTEK_DMIC_CODEC_DAI "rt5514-aif1" 31 #define KBL_MAXIM_CODEC_DAI "max98927-aif1" 32 #define MAXIM_DEV0_NAME "i2c-MX98927:00" 33 #define MAXIM_DEV1_NAME "i2c-MX98927:01" 34 #define RT5514_DEV_NAME "i2c-10EC5514:00" 35 #define RT5663_DEV_NAME "i2c-10EC5663:00" [all …]
|
D | sof_rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2019-2020 Intel Corporation. 5 * Intel SOF Machine Driver with Realtek rt5682 Codec 6 * and speaker codec MAX98357A or RT1015. 20 #include <sound/soc-acpi.h> 24 #include "../common/soc-intel-quirks.h" 71 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb() 88 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"), 126 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98373_ALC5682I_I2S_UP4"), 140 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init() [all …]
|
/kernel/linux/linux-5.10/sound/soc/amd/ |
D | acp3x-rt5682-max9836.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Machine driver for AMD ACP Audio engine using DA7219 & MAX98357 codec. 11 #include <sound/soc-dapm.h> 45 struct snd_soc_card *card = rtd->card; in acp3x_5682_init() 47 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init() 49 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init() 56 dev_err(rtd->card->dev, in acp3x_5682_init() 61 /* set codec PLL */ in acp3x_5682_init() 65 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init() 69 /* Set codec sysclk */ in acp3x_5682_init() [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | cs47l24-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Data tables for CS47L24 codec 29 return regmap_register_patch(arizona->regmap, in cs47l24_patch() 183 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 184 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 185 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ 186 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */ 187 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */ 188 { 0x00000024, 0x0000 }, /* R36 - Tone Generator 5 */ 189 { 0x00000030, 0x0000 }, /* R48 - PWM Drive 1 */ [all …]
|
D | cs47l15-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regmap tables for CS47L15 codec 5 * Copyright (C) 2016-2019 Cirrus Logic, Inc. and 35 ret = regmap_register_patch(madera->regmap, in cs47l15_patch() 39 dev_err(madera->dev, in cs47l15_patch() 40 "Error in applying 16-bit patch: %d\n", ret); in cs47l15_patch() 49 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */ 50 { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */ 51 { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */ 52 { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */ [all …]
|
D | cs47l35-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regmap tables for CS47L35 codec 5 * Copyright (C) 2015-2017 Cirrus Logic 55 ret = regmap_register_patch(madera->regmap, cs47l35_reva_16_patch, in cs47l35_patch() 58 dev_err(madera->dev, "Error applying patch: %d\n", ret); in cs47l35_patch() 65 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */ 66 { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */ 67 { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */ 68 { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */ 69 { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */ [all …]
|
D | cs47l92-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regmap tables for CS47L92 codec 5 * Copyright (C) 2016-2019 Cirrus Logic, Inc. and 96 ret = regmap_register_patch(madera->regmap, in cs47l92_patch() 100 dev_err(madera->dev, in cs47l92_patch() 101 "Error in applying 16-bit patch: %d\n", ret); in cs47l92_patch() 105 ret = regmap_register_patch(madera->regmap_32bit, in cs47l92_patch() 109 dev_err(madera->dev, in cs47l92_patch() 110 "Error in applying 32-bit patch: %d\n", ret); in cs47l92_patch() 119 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */ [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/cirrus/ |
D | pinctrl-lochnagar.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2017-2018 Cirrus Logic, Inc. and 21 #include <linux/pinctrl/pinconf-generic.h> 27 #include <dt-bindings/pinctrl/lochnagar.h> 29 #include "../pinctrl-utils.h" 33 #define LN_CDC_AIF1_STR "codec-aif1" 34 #define LN_CDC_AIF2_STR "codec-aif2" 35 #define LN_CDC_AIF3_STR "codec-aif3" 36 #define LN_DSP_AIF1_STR "dsp-aif1" 37 #define LN_DSP_AIF2_STR "dsp-aif2" [all …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/ |
D | mt8183-mt6358-ts3a227-max98357.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt8183-mt6358.c -- 4 // MT8183-MT6358-TS3A227-MAX98357 ALSA SoC machine driver 18 #include "mt8183-afe-common.h" 20 #define RT1015_CODEC_DAI "rt1015-aif" 21 #define RT1015_DEV0_NAME "rt1015.6-0028" 22 #define RT1015_DEV1_NAME "rt1015.6-0029" 66 struct snd_soc_card *card = rtd->card; in mt8183_mt6358_rt1015_i2s_hw_params() 73 dev_err(card->dev, "failed to set bclk ratio\n"); in mt8183_mt6358_rt1015_i2s_hw_params() 80 dev_err(card->dev, "failed to set pll\n"); in mt8183_mt6358_rt1015_i2s_hw_params() [all …]
|