Home
last modified time | relevance | path

Searched +full:codec +full:- +full:aif1 +full:- +full:bclk (Results 1 – 25 of 88) sorted by relevance

1234

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dcirrus,lochnagar.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
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-6.6/Documentation/devicetree/bindings/pinctrl/
Dcirrus,lochnagar.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
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-6.6/sound/soc/sunxi/
Dsun8i-codec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * This driver supports the digital controls for the internal codec
6 * (C) Copyright 2010-2016
9 * Mylène Josserand <mylene.josserand@free-electrons.com>
23 #include <sound/soc-dapm.h>
200 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume()
202 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume()
215 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend()
216 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend()
252 return -EINVAL; in sun8i_codec_get_hw_rate()
[all …]
/kernel/linux/linux-6.6/sound/soc/amd/acp/
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()
83 /* Declare RT5682 codec components */
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Dsmdk_wm8994pcm.c1 // 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-6.6/sound/soc/samsung/
Dsmdk_wm8994pcm.c1 // 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-6.6/sound/soc/intel/boards/
Dcht_bsw_rt5672.c1 // 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"
24 #include "../common/soc-intel-quirks.h"
27 /* The platform clock #3 outputs 19.2Mhz clock to codec as I2S MCLK */
29 #define CHT_CODEC_DAI "rt5670-aif1"
53 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
54 struct snd_soc_card *card = dapm->card; in platform_clock_control()
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dwm8993.c1 // 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 …]
Dwm9081.c1 // 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 …]
Dwm5100.c1 // 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 …]
Dwm8904.c1 // 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 …]
Dwm8995.c1 // 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 …]
Dmax98373-i2c.c1 // SPDX-License-Identifier: GPL-2.0
125 struct snd_soc_component *component = codec_dai->component; in max98373_dai_set_fmt()
130 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98373_dai_set_fmt()
139 dev_err(component->dev, "DAI invert mode unsupported\n"); in max98373_dai_set_fmt()
140 return -EINVAL; in max98373_dai_set_fmt()
143 regmap_update_bits(max98373->regmap, in max98373_dai_set_fmt()
163 return -EINVAL; in max98373_dai_set_fmt()
166 regmap_update_bits(max98373->regmap, in max98373_dai_set_fmt()
179 static int max98373_get_bclk_sel(int bclk) in max98373_get_bclk_sel() argument
184 if (bclk_sel_table[i] == bclk) in max98373_get_bclk_sel()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8993.c1 // 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 …]
Dwm9081.c1 // 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 …]
Dwm5100.c1 // 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 …]
Dwm8904.c1 // 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 …]
Dwm8995.c1 // 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 …]
Dmax98373-i2c.c1 // 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 …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dcht_bsw_rt5672.c1 // 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 …]
/kernel/linux/linux-6.6/sound/soc/amd/
Dacp-da7219-max98357a.c1 // SPDX-License-Identifier: MIT
3 // Machine driver for AMD ACP Audio engine using DA7219, RT5682 & MAX98357 codec
5 //Copyright 2017-2021 Advanced Micro Devices, Inc.
11 #include <sound/soc-dapm.h>
56 struct snd_soc_card *card = rtd->card; in cz_da7219_init()
58 struct snd_soc_component *component = codec_dai->component; in cz_da7219_init()
60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in cz_da7219_init()
65 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); in cz_da7219_init()
72 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); in cz_da7219_init()
76 da7219_dai_wclk = devm_clk_get(component->dev, "da7219-dai-wclk"); in cz_da7219_init()
[all …]
/kernel/linux/linux-6.6/sound/soc/amd/vangogh/
Dacp5x-mach.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/input-event-codes.h>
18 #include <sound/soc-dapm.h>
27 #define ACP5X_NAU8821_COMP_NAME "i2c-NVTN2020:00"
28 #define ACP5X_NAU8821_DAI_NAME "nau8821-hifi"
29 #define ACP5X_CS35L41_COMP_LNAME "spi-VLV1776:00"
30 #define ACP5X_CS35L41_COMP_RNAME "spi-VLV1776:01"
31 #define ACP5X_CS35L41_DAI_NAME "cs35l41-pcm"
32 #define ACP5X_MAX98388_COMP_LNAME "i2c-ADS8388:00"
33 #define ACP5X_MAX98388_COMP_RNAME "i2c-ADS8388:01"
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp3x-rt5682-max9836.c1 // 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/
Dcs47l24-tables.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/mfd/
Dcs47l24-tables.c1 // 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 …]

1234