/linux/Documentation/devicetree/bindings/sound/ |
H A D | mt8195-mt6359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8195-mt6359.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Trevor Wu <trevor.wu@mediatek.com> 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8195_mt6359_rt1019_rt5682 22 - mediatek,mt8195_mt6359_rt1011_rt5682 23 - mediatek,mt8195_mt6359_max98390_rt5682 29 audio-routing: [all …]
|
H A D | mt8192-mt6359-rt1015-rt5682.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 11 - Shane Chien <shane.chien@mediatek.com> 17 - $ref: sound-card-common.yaml# 22 - mediatek,mt8192_mt6359_rt1015_rt5682 23 - mediatek,mt8192_mt6359_rt1015p_rt5682 24 - mediatek,mt8192_mt6359_rt1015p_rt5682s [all …]
|
H A D | mt8186-mt6366-da7219-max98357.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-da7219-max98357.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8186-mt6366-da7219-max98357-sound 23 audio-routing: 24 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 35 - HDMI1 [all …]
|
H A D | mt8186-mt6366-rt1019-rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound 22 - mediatek,mt8186-mt6366-rt5682s-max98360-sound 23 - mediatek,mt8186-mt6366-rt5650-sound 25 audio-routing: [all …]
|
/linux/sound/soc/sdw_utils/ |
H A D | soc_sdw_maxim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 // soc_sdw_maxim - Helpers to handle maxim codecs 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 22 { "Left Spk", NULL, "Left BE_OUT" }, 23 { "Right Spk", NULL, "Right BE_OUT" }, 26 int asoc_sdw_maxim_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) in asoc_sdw_maxim_spk_rtd_init() argument 28 struct snd_soc_card *card = rtd->card; in asoc_sdw_maxim_spk_rtd_init() 31 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in asoc_sdw_maxim_spk_rtd_init() 32 "%s spk:mx%04x", in asoc_sdw_maxim_spk_rtd_init() [all …]
|
H A D | soc_sdw_cs_amp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * soc_sdw_cs_amp - Helpers to handle CS35L56 from generic machine driver 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dai.h> 20 int asoc_sdw_cs_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) in asoc_sdw_cs_spk_rtd_init() argument 22 const char *dai_name = rtd->dai_link->codecs->dai_name; in asoc_sdw_cs_spk_rtd_init() 23 struct snd_soc_card *card = rtd->card; in asoc_sdw_cs_spk_rtd_init() 31 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in asoc_sdw_cs_spk_rtd_init() 32 "%s spk:%s", in asoc_sdw_cs_spk_rtd_init() 33 card->components, codec_name); in asoc_sdw_cs_spk_rtd_init() [all …]
|
H A D | soc_sdw_cs42l43.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * soc_sdw_cs42l43 - Helpers to handle CS42L43 from generic machine driver 19 #include <sound/soc-acpi.h> 20 #include <sound/soc-dapm.h> 53 int asoc_sdw_cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai) in asoc_sdw_cs42l43_hs_rtd_init() argument 55 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in asoc_sdw_cs42l43_hs_rtd_init() 56 struct asoc_sdw_mc_private *ctx = snd_soc_card_get_drvdata(rtd->card); in asoc_sdw_cs42l43_hs_rtd_init() 57 struct snd_soc_jack *jack = &ctx->sdw_headset; in asoc_sdw_cs42l43_hs_rtd_init() 58 struct snd_soc_card *card = rtd->card; in asoc_sdw_cs42l43_hs_rtd_init() 61 card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43", in asoc_sdw_cs42l43_hs_rtd_init() [all …]
|
H A D | soc_sdw_utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * soc-sdw-utils.c - common SoundWire machine driver helper functions 38 SND_SOC_DAPM_SPK("Left Spk", NULL), 39 SND_SOC_DAPM_SPK("Right Spk", NULL), 43 SOC_DAPM_PIN_SWITCH("Left Spk"), 44 SOC_DAPM_PIN_SWITCH("Right Spk"), 65 .dai_name = "rt700-aif1", 83 .dai_name = "rt711-sdca-aif1", 103 .dai_name = "rt711-aif1", 123 .dai_name = "rt712-sdca-aif1", [all …]
|
H A D | soc_sdw_rt_amp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * soc_sdw_rt_amp - Helpers to handle RT1308/RT1316/RT1318 from generic machine driver 14 #include <sound/soc-acpi.h> 15 #include <sound/soc-dapm.h> 119 pdata = dmi_data->driver_data; in rt_amp_add_device_props() 120 memcpy(¶ms, pdata->bq_params, sizeof(unsigned char) * pdata->bq_params_cnt); in rt_amp_add_device_props() 122 props[0] = PROPERTY_ENTRY_U8_ARRAY("realtek,bq-params", params); in rt_amp_add_device_props() 123 props[1] = PROPERTY_ENTRY_U32("realtek,bq-params-cnt", pdata->bq_params_cnt); in rt_amp_add_device_props() 143 { "Speaker", NULL, "rt1308-1 SPOL" }, 144 { "Speaker", NULL, "rt1308-1 SPOR" }, [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8195-cherry-dojo-r1.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 6 #include "mt8195-cherry.dtsi" 10 chassis-type = "convertible"; 11 compatible = "google,dojo-sku7", "google,dojo-sku5", 12 "google,dojo-sku3", "google,dojo-sku1", 18 realtek,amic-delay-ms = <250>; 25 reset-gpios = <&pio 100 GPIO_ACTIVE_LOW>; 26 sound-name-prefix = "Right"; 27 #sound-dai-cells = <0>; [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | sof_maxim_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <sound/soc-acpi.h> 10 #include <sound/soc-dai.h> 11 #include <sound/soc-dapm.h> 14 #include "../common/soc-intel-quirks.h" 21 SOC_DAPM_PIN_SWITCH("Left Spk"), 22 SOC_DAPM_PIN_SWITCH("Right Spk"), 27 SND_SOC_DAPM_SPK("Left Spk", NULL), 28 SND_SOC_DAPM_SPK("Right Spk", NULL), 37 for_each_acpi_dev_match(adev, hid, NULL, -1) in get_num_codecs() [all …]
|
H A D | cht_bsw_rt5645.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cht-bsw-rt5645.c - ASoc Machine driver for Intel Cherryview-based platforms 25 #include <sound/soc-acpi.h> 27 #include "../atom/sst-atom-controls.h" 28 #include "../common/soc-intel-quirks.h" 31 #define CHT_CODEC_DAI1 "rt5645-aif1" 32 #define CHT_CODEC_DAI2 "rt5645-aif2" 69 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 70 struct snd_soc_card *card = dapm->card; in platform_clock_control() 80 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control() [all …]
|
H A D | sof_rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2019-2020 Intel Corporation. 22 #include <sound/soc-acpi.h> 26 #include "../common/soc-intel-quirks.h" 31 /* Driver-specific board quirks: from bit 0 to 7 */ 40 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb() 57 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"), 74 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98373_ALC5682I_I2S_UP4"), 86 DMI_MATCH(DMI_OEM_STRING, "AUDIO-ADL_MAX98373_ALC5682I_I2S"), 97 DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98390_ALC5682I_I2S"), [all …]
|
H A D | bytcr_rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bytcr_rt5651.c - ASoc Machine driver for Intel Byt CR platform 29 #include <sound/soc-acpi.h> 31 #include "../atom/sst-atom-controls.h" 32 #include "../common/soc-intel-quirks.h" 80 /* jack-detect-source + inv + dmic-en + ovcd-th + -sf + terminating entry */ 93 /* Default: jack-detect on JD1_1, internal mic on in2, headsetmic on in3 */ 97 static int quirk_override = -1; 99 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 112 dev_info(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks() [all …]
|
/linux/sound/soc/amd/acp/ |
H A 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 …]
|
/linux/sound/soc/codecs/ |
H A D | wm9712.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9712.c -- ALSA Soc WM9712 codec support 5 * Copyright 2006-12 Wolfson Microelectronics PLC. 115 static const DECLARE_TLV_DB_SCALE(main_tlv, -3450, 150, 0); 134 SOC_DOUBLE("Speaker Playback Volume", AC97_MASTER, 8, 0, 31, 1), 135 SOC_SINGLE("Speaker Playback Switch", AC97_MASTER, 15, 1, 1), 136 SOC_DOUBLE("Headphone Playback Volume", AC97_HEADPHONE, 8, 0, 31, 1), 137 SOC_SINGLE("Headphone Playback Switch", AC97_HEADPHONE, 15, 1, 1), 138 SOC_DOUBLE("PCM Playback Volume", AC97_PCM, 8, 0, 31, 1), 140 SOC_SINGLE("Speaker Playback ZC Switch", AC97_MASTER, 7, 1, 0), [all …]
|
H A D | wm9713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9713.c -- ALSA Soc WM9713 codec support 5 * Copyright 2006-10 Wolfson Microelectronics PLC. 8 * Features:- 92 static const DECLARE_TLV_DB_SCALE(out_tlv, -4650, 150, 0); 93 static const DECLARE_TLV_DB_SCALE(main_tlv, -3450, 150, 0); 94 static const DECLARE_TLV_DB_SCALE(misc_tlv, -1500, 300, 0); 101 SOC_DOUBLE_TLV("Speaker Playback Volume", AC97_MASTER, 8, 0, 31, 1, out_tlv), 102 SOC_DOUBLE("Speaker Playback Switch", AC97_MASTER, 15, 7, 1, 1), 103 SOC_DOUBLE_TLV("Headphone Playback Volume", AC97_HEADPHONE, 8, 0, 31, 1, [all …]
|
/linux/sound/soc/samsung/ |
H A D | tm2_wm5110.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (C) 2015 - 2016 Samsung Electronics Co., Ltd. 37 struct snd_soc_component *component = priv->component; in tm2_start_sysclk() 43 priv->sysclk_rate); in tm2_start_sysclk() 45 dev_err(component->dev, "Failed to set FLL1 source: %d\n", ret); in tm2_start_sysclk() 52 priv->sysclk_rate); in tm2_start_sysclk() 54 dev_err(component->dev, "Failed to start FLL1: %d\n", ret); in tm2_start_sysclk() 60 priv->sysclk_rate, in tm2_start_sysclk() 63 dev_err(component->dev, "Failed to set SYSCLK source: %d\n", ret); in tm2_start_sysclk() 73 struct snd_soc_component *component = priv->component; in tm2_stop_sysclk() [all …]
|
/linux/sound/soc/ |
H A D | soc-dapm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 12 // o Platform power domain - can support external components i.e. amps and 15 // o Jack insertion power event initiation - e.g. hp insertion will enable 43 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->car 1304 snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai * dai,int stream,struct snd_soc_dapm_widget_list ** list,bool (* custom_stop_condition)(struct snd_soc_dapm_widget *,enum snd_soc_dapm_direction)) snd_soc_dapm_dai_get_connected_widgets() argument 2743 dapm_update_dai_unlocked(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,struct snd_soc_dai * dai) dapm_update_dai_unlocked() argument 2775 snd_soc_dapm_update_dai(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,struct snd_soc_dai * dai) snd_soc_dapm_update_dai() argument 4275 snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context * dapm,struct snd_soc_dai * dai) snd_soc_dapm_new_dai_widgets() argument 4325 struct snd_soc_dai *dai; snd_soc_dapm_link_dai_widgets() local 4380 dapm_connect_dai_routes(struct snd_soc_dapm_context * dapm,struct snd_soc_dai * src_dai,struct snd_soc_dapm_widget * src,struct snd_soc_dapm_widget * dai,struct snd_soc_dai * sink_dai,struct snd_soc_dapm_widget * sink) dapm_connect_dai_routes() argument 4426 struct snd_soc_dapm_widget *dai = snd_soc_dapm_new_dai(card, substream, dapm_connect_dai_pair() local 4441 soc_dapm_dai_stream_event(struct snd_soc_dai * dai,int stream,int event) soc_dapm_dai_stream_event() argument 4513 struct snd_soc_dai *dai; soc_dapm_stream_event() local [all...] |