| /kernel/linux/linux-6.6/sound/soc/ti/ |
| D | omap-twl4030.c | 1 // 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-5.10/sound/soc/ti/ |
| D | omap-twl4030.c | 1 // 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-6.6/sound/soc/intel/avs/boards/ |
| D | max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 16 #define MAX98927_DEV0_NAME "i2c-MX98927:00" 17 #define MAX98927_DEV1_NAME "i2c-MX98927:01" 18 #define MAX98927_CODEC_NAME "max98927-aif1" 32 SOC_DAPM_PIN_SWITCH("Left Spk"), 33 SOC_DAPM_PIN_SWITCH("Right Spk"), 37 SND_SOC_DAPM_SPK("Left Spk", NULL), 38 SND_SOC_DAPM_SPK("Right Spk", NULL), [all …]
|
| D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 16 #define MAX98373_DEV0_NAME "i2c-MX98373:00" 17 #define MAX98373_DEV1_NAME "i2c-MX98373:01" 18 #define MAX98373_CODEC_NAME "max98373-aif1" 32 SOC_DAPM_PIN_SWITCH("Left Spk"), 33 SOC_DAPM_PIN_SWITCH("Right Spk"), 37 SND_SOC_DAPM_SPK("Left Spk", NULL), 38 SND_SOC_DAPM_SPK("Right Spk", NULL), [all …]
|
| D | max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 17 SOC_DAPM_PIN_SWITCH("Spk"), 21 SND_SOC_DAPM_SPK("Spk", NULL), 25 { "Spk", NULL, "Speaker" }, 32 struct snd_mask *fmt; in avs_max98357a_be_fixup() local 36 fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in avs_max98357a_be_fixup() 39 rate->min = rate->max = 48000; in avs_max98357a_be_fixup() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | max98088.c | 1 // 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 …]
|
| D | cs42l73.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | max98088.c | 1 // 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 …]
|
| D | rk817_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 33 * I don't have another implementation to compare from the Rockchip sources. Hard-coding for now. 46 if (rk817->mic_in_differential) { in rk817_init() 62 /* Set the PLL pre-divide value (values not documented). */ in rk817_set_component_pll() 74 * 0db~-95db, 0.375db/step, for example: 76 * 0xff: -95dB 79 static const DECLARE_TLV_DB_MINMAX(rk817_vol_tlv, -9500, 0); 83 * 27db~-18db, 3db/step, for example: 84 * 0x0: -18dB 88 static const DECLARE_TLV_DB_MINMAX(rk817_gain_tlv, -1800, 2700); [all …]
|
| D | cs42l73.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l73.c -- CS42L73 ALSA Soc Audio driver 25 #include <sound/soc-dapm.h> 47 { 6, 0xF1 }, /* r06 - Power Ctl 1 */ 48 { 7, 0xDF }, /* r07 - Power Ctl 2 */ 49 { 8, 0x3F }, /* r08 - Power Ctl 3 */ 50 { 9, 0x50 }, /* r09 - Charge Pump Freq */ 51 { 10, 0x53 }, /* r0A - Output Load MicBias Short Detect */ 52 { 11, 0x00 }, /* r0B - DMIC Master Clock Ctl */ 53 { 12, 0x00 }, /* r0C - Aux PCM Ctl */ [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/acp/ |
| D | acp-mach-common.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/sound/soc/amd/ |
| D | acp3x-rt5682-max9836.c | 1 // 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-6.6/sound/soc/amd/ |
| D | acp3x-rt5682-max9836.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <sound/soc-dapm.h> 56 struct snd_soc_card *card = rtd->card; in acp3x_5682_init() 58 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init() 60 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init() 62 /* set rt5682 dai fmt */ in acp3x_5682_init() 67 dev_err(rtd->card->dev, in acp3x_5682_init() 68 "Failed to set rt5682 dai fmt: %d\n", ret); in acp3x_5682_init() 76 dev_err(rtd->dev, "can't set rt5682 PLL: %d\n", ret); in acp3x_5682_init() 84 dev_err(rtd->dev, in acp3x_5682_init() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/intel/boards/ |
| D | cht_bsw_nau8824.c | 1 // 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 …]
|
| D | kbl_da7219_max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #define KBL_DIALOG_CODEC_DAI "da7219-hifi" 24 #define MAX98927_CODEC_DAI "max98927-aif1" 25 #define MAX98927_DEV0_NAME "i2c-MX98927:00" 26 #define MAX98927_DEV1_NAME "i2c-MX98927:01" 28 #define MAX98373_CODEC_DAI "max98373-aif1" 29 #define MAX98373_DEV0_NAME "i2c-MX98373:00" 30 #define MAX98373_DEV1_NAME "i2c-MX98373: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 …]
|
| D | cht_bsw_max98090_ti.c | 1 // 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 …]
|
| D | bxt_da7219_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Intel Broxton-P I2S Machine Driver 19 #include <sound/soc-acpi.h> 22 #include "../common/soc-intel-quirks.h" 25 #define BXT_DIALOG_CODEC_DAI "da7219-hifi" 27 #define MAX98390_DEV0_NAME "i2c-MX98390:00" 28 #define MAX98390_DEV1_NAME "i2c-MX98390:01" 65 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 66 struct snd_soc_card *card = dapm->card; in platform_clock_control() 71 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\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 …]
|
| /kernel/linux/linux-5.10/sound/soc/intel/boards/ |
| D | cht_bsw_nau8824.c | 1 // 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 …]
|
| D | kbl_da7219_max98927.c | 1 // 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 …]
|
| D | cht_bsw_max98090_ti.c | 1 // 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 …]
|
| D | bxt_da7219_max98357a.c | 1 // 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | wlf,arizona.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 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | wlf,arizona.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 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 …]
|