Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/sound/soc/ti/
Domap-twl4030.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-twl4030.c -- SoC audio for TI SoC based boards with twl4030 codec
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
20 #include <linux/platform_data/omap-twl4030.h>
31 #include "omap-mcbsp.h"
42 unsigned int fmt; in omap_twl4030_hw_params() local
46 fmt = SND_SOC_DAIFMT_I2S | in omap_twl4030_hw_params()
51 fmt = SND_SOC_DAIFMT_DSP_A | in omap_twl4030_hw_params()
56 return -EINVAL; in omap_twl4030_hw_params()
59 return snd_soc_runtime_set_dai_fmt(rtd, fmt); in omap_twl4030_hw_params()
[all …]
/kernel/linux/linux-4.19/sound/soc/omap/
Domap-twl4030.c2 * omap-twl4030.c -- SoC audio for TI SoC based boards with twl4030 codec
4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com
29 * 02110-1301 USA
34 #include <linux/platform_data/omap-twl4030.h>
45 #include "omap-mcbsp.h"
55 struct snd_soc_pcm_runtime *rtd = substream->private_data; in omap_twl4030_hw_params()
56 unsigned int fmt; in omap_twl4030_hw_params() local
60 fmt = SND_SOC_DAIFMT_I2S | in omap_twl4030_hw_params()
65 fmt = SND_SOC_DAIFMT_DSP_A | in omap_twl4030_hw_params()
70 return -EINVAL; in omap_twl4030_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax98088.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98088.c -- MAX98088 ALSA SoC Audio driver
35 unsigned int fmt; member
90 { 0x2b, 0x00 }, /* 2B left SPK mixer */
91 { 0x2c, 0x00 }, /* 2C right SPK mixer */
92 { 0x2d, 0x00 }, /* 2D SPK control */
109 { 0x3d, 0x00 }, /* 3D left SPK volume */
110 { 0x3e, 0x00 }, /* 3E right SPK volume */
337 "Off", "100Hz", "400Hz", "600Hz", "800Hz", "1000Hz", "200-400Hz",
338 "400-600Hz", "400-800Hz",
[all …]
Dcs42l73.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver
25 #include <sound/soc-dapm.h>
46 { 6, 0xF1 }, /* r06 - Power Ctl 1 */
47 { 7, 0xDF }, /* r07 - Power Ctl 2 */
48 { 8, 0x3F }, /* r08 - Power Ctl 3 */
49 { 9, 0x50 }, /* r09 - Charge Pump Freq */
50 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */
51 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */
52 { 12, 0x00 }, /* r0C - Aux PCM Ctl */
[all …]
Drt5660.c1 // 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 …]
Drt5640.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver
28 #include <sound/soc-dapm.h>
341 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
342 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
343 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
344 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
434 SOC_ENUM("Class D SPK Ratio Control", rt5640_clsd_spk_ratio_enum),
452 * set_dmic_clk - Set parameter of dmic.
462 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dmax98088.c2 * max98088.c -- MAX98088 ALSA SoC Audio driver
37 unsigned int fmt; member
90 { 0x2b, 0x00 }, /* 2B left SPK mixer */
91 { 0x2c, 0x00 }, /* 2C right SPK mixer */
92 { 0x2d, 0x00 }, /* 2D SPK control */
109 { 0x3d, 0x00 }, /* 3D left SPK volume */
110 { 0x3e, 0x00 }, /* 3E right SPK volume */
337 "Off", "100Hz", "400Hz", "600Hz", "800Hz", "1000Hz", "200-400Hz",
338 "400-600Hz", "400-800Hz",
385 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic1pre_set()
[all …]
Dcs42l73.c2 * cs42l73.c -- CS42L73 ALSA Soc Audio driver
29 #include <sound/soc-dapm.h>
50 { 6, 0xF1 }, /* r06 - Power Ctl 1 */
51 { 7, 0xDF }, /* r07 - Power Ctl 2 */
52 { 8, 0x3F }, /* r08 - Power Ctl 3 */
53 { 9, 0x50 }, /* r09 - Charge Pump Freq */
54 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */
55 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */
56 { 12, 0x00 }, /* r0C - Aux PCM Ctl */
57 { 13, 0x15 }, /* r0D - Aux PCM Master Clock Ctl */
[all …]
Drt5660.c2 * rt5660.c -- RT5660 ALSA SoC audio codec driver
29 #include <sound/soc-dapm.h>
301 static const DECLARE_TLV_DB_SCALE(rt5660_out_vol_tlv, -4650, 150, 0);
302 static const DECLARE_TLV_DB_SCALE(rt5660_dac_vol_tlv, -6525, 75, 0);
303 static const DECLARE_TLV_DB_SCALE(rt5660_adc_vol_tlv, -1725, 75, 0);
305 static const DECLARE_TLV_DB_SCALE(rt5660_bst_tlv, -1200, 75, 0);
347 * rt5660_set_dmic_clk - Set parameter of dmic.
357 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5660_set_dmic_clk()
361 rate = rt5660->sysclk / rl6231_get_pre_div(rt5660->regmap, in rt5660_set_dmic_clk()
365 dev_err(component->dev, "Failed to set DMIC clock\n"); in rt5660_set_dmic_clk()
[all …]
Drt5640.c2 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver
31 #include <sound/soc-dapm.h>
344 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
345 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0);
346 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
347 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0);
437 SOC_ENUM("Class D SPK Ratio Control", rt5640_clsd_spk_ratio_enum),
455 * set_dmic_clk - Set parameter of dmic.
465 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk()
469 rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap, in set_dmic_clk()
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/
Dacp3x-rt5682-max9836.c1 // SPDX-License-Identifier: GPL-2.0+
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()
51 /* set rt5682 dai fmt */ in acp3x_5682_init()
56 dev_err(rtd->card->dev, in acp3x_5682_init()
57 "Failed to set rt5682 dai fmt: %d\n", ret); in acp3x_5682_init()
65 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init()
73 dev_err(rtd->dev, in acp3x_5682_init()
[all …]
/kernel/linux/linux-4.19/sound/soc/intel/boards/
Dcht_bsw_max98090_ti.c2 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
33 #include "../atom/sst-atom-controls.h"
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()
58 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
63 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
64 return -EIO; in platform_clock_control()
68 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
70 dev_err(card->dev, in platform_clock_control()
75 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
[all …]
Dcht_bsw_nau8824.c2 * cht-bsw-nau8824.c - ASoc Machine driver for Intel Cherryview-based
9 * Co-author: John Hsu <KCHSU0@nuvoton.com>
10 * This file is based on cht_bsw_rt5672.c and cht-bsw-max98090.c
30 #include "../atom/sst-atom-controls.h"
52 SND_SOC_DAPM_SPK("Ext Spk", NULL),
56 {"Ext Spk", NULL, "SPKOUTL"},
57 {"Ext Spk", NULL, "SPKOUTR"},
76 SOC_DAPM_PIN_SWITCH("Ext Spk"),
82 struct snd_soc_pcm_runtime *rtd = substream->private_data; in cht_aif1_hw_params()
83 struct snd_soc_dai *codec_dai = rtd->codec_dai; in cht_aif1_hw_params()
[all …]
Dkbl_rt5663_rt5514_max98927.c34 #define KBL_REALTEK_CODEC_DAI "rt5663-aif"
35 #define KBL_REALTEK_DMIC_CODEC_DAI "rt5514-aif1"
36 #define KBL_MAXIM_CODEC_DAI "max98927-aif1"
37 #define MAXIM_DEV0_NAME "i2c-MX98927:00"
38 #define MAXIM_DEV1_NAME "i2c-MX98927:01"
39 #define RT5514_DEV_NAME "i2c-10EC5514:00"
40 #define RT5663_DEV_NAME "i2c-10EC5663:00"
45 #define DMIC_CH(p) p->list[p->count-1]
77 SOC_DAPM_PIN_SWITCH("Left Spk"),
78 SOC_DAPM_PIN_SWITCH("Right Spk"),
[all …]
Dkbl_rt5663_max98927.c32 #include <linux/clk-provider.h>
35 #define KBL_REALTEK_CODEC_DAI "rt5663-aif"
36 #define KBL_MAXIM_CODEC_DAI "max98927-aif1"
37 #define DMIC_CH(p) p->list[p->count-1]
38 #define MAXIM_DEV0_NAME "i2c-MX98927:00"
39 #define MAXIM_DEV1_NAME "i2c-MX98927:01"
73 SOC_DAPM_PIN_SWITCH("Left Spk"),
74 SOC_DAPM_PIN_SWITCH("Right Spk"),
80 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
81 struct snd_soc_card *card = dapm->card; in platform_clock_control()
[all …]
Dkbl_da7219_max98357a.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2017-18 Intel Corporation.
23 #include "../../codecs/da7219-aad.h"
25 #define KBL_DIALOG_CODEC_DAI "da7219-hifi"
57 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
58 struct snd_soc_card *card = dapm->card; in platform_clock_control()
64 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control()
65 return -EIO; in platform_clock_control()
72 dev_err(card->dev, "failed to stop PLL: %d\n", ret); in platform_clock_control()
77 dev_err(card->dev, "failed to start PLL: %d\n", ret); in platform_clock_control()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dcht_bsw_nau8824.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-nau8824.c - ASoc Machine driver for Intel Cherryview-based
10 * Co-author: John Hsu <KCHSU0@nuvoton.com>
11 * This file is based on cht_bsw_rt5672.c and cht-bsw-max98090.c
20 #include <sound/soc-acpi.h>
23 #include "../atom/sst-atom-controls.h"
45 SND_SOC_DAPM_SPK("Ext Spk", NULL),
49 {"Ext Spk", NULL, "SPKOUTL"},
50 {"Ext Spk", NULL, "SPKOUTR"},
69 SOC_DAPM_PIN_SWITCH("Ext Spk"),
[all …]
Dkbl_da7219_max98927.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include "../../codecs/da7219-aad.h"
24 #define KBL_DIALOG_CODEC_DAI "da7219-hifi"
25 #define MAX98927_CODEC_DAI "max98927-aif1"
26 #define MAX98927_DEV0_NAME "i2c-MX98927:00"
27 #define MAX98927_DEV1_NAME "i2c-MX98927:01"
29 #define MAX98373_CODEC_DAI "max98373-aif1"
30 #define MAX98373_DEV0_NAME "i2c-MX98373:00"
31 #define MAX98373_DEV1_NAME "i2c-MX98373:01"
67 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
[all …]
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 …]
Dbxt_da7219_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Broxton-P I2S Machine Driver
19 #include <sound/soc-acpi.h>
22 #include "../../codecs/da7219-aad.h"
23 #include "../common/soc-intel-quirks.h"
26 #define BXT_DIALOG_CODEC_DAI "da7219-hifi"
28 #define MAX98390_DEV0_NAME "i2c-MX98390:00"
29 #define MAX98390_DEV1_NAME "i2c-MX98390:01"
66 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
67 struct snd_soc_card *card = dapm->card; in platform_clock_control()
[all …]
Dkbl_rt5663_rt5514_max98927.c1 // 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 …]
Dkbl_rt5663_max98927.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <sound/soc-acpi.h>
24 #include <linux/clk-provider.h>
27 #define KBL_REALTEK_CODEC_DAI "rt5663-aif"
28 #define KBL_MAXIM_CODEC_DAI "max98927-aif1"
29 #define DMIC_CH(p) p->list[p->count-1]
30 #define MAXIM_DEV0_NAME "i2c-MX98927:00"
31 #define MAXIM_DEV1_NAME "i2c-MX98927:01"
65 SOC_DAPM_PIN_SWITCH("Left Spk"),
66 SOC_DAPM_PIN_SWITCH("Right Spk"),
[all …]
Dkbl_da7219_max98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2017-18 Intel Corporation.
22 #include "../../codecs/da7219-aad.h"
24 #define KBL_DIALOG_CODEC_DAI "da7219-hifi"
56 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
57 struct snd_soc_card *card = dapm->card; in platform_clock_control()
63 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control()
64 return -EIO; in platform_clock_control()
71 dev_err(card->dev, "failed to stop PLL: %d\n", ret); in platform_clock_control()
76 dev_err(card->dev, "failed to start PLL: %d\n", ret); in platform_clock_control()
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/
Dwlf,arizona.txt12 - wlf,inmode : A list of INn_MODE register values, where n is the number
13 of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
20 - wlf,out-mono : A list of boolean values indicating whether each output is
22 (eg. First entry in the list corresponds to output 1). A non-zero value
27 - wlf,dmic-ref : DMIC reference voltage source for each input, can be
29 (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
33 - wlf,max-channels-clocked : The maximum number of channels to be clocked on
41 - wlf,spk-fmt : PDM speaker data format, must contain 2 cells (OUT5 and OUT6).
46 - wlf,spk-mute : PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6).
51 - wlf,out-volume-limit : The volume limit value that should be applied to each
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
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 '#sound-dai-cells':
28 signals. Valid values are 0 (Differential), 1 (Single-ended) and
35 $ref: /schemas/types.yaml#/definitions/uint32-array
43 wlf,out-mono:
47 (eg. First entry in the list corresponds to output 1). A non-zero
51 $ref: /schemas/types.yaml#/definitions/uint32-array
[all …]

1234