/Linux-v6.1/sound/soc/intel/boards/ |
D | sof_sdw_max98373.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 // sof_sdw_max98373 - Helpers to handle 2x MAX98373 11 #include <sound/soc-acpi.h> 12 #include <sound/soc-dapm.h> 17 SND_SOC_DAPM_SPK("Left Spk", NULL), 18 SND_SOC_DAPM_SPK("Right Spk", NULL), 22 SOC_DAPM_PIN_SWITCH("Left Spk"), 23 SOC_DAPM_PIN_SWITCH("Right Spk"), 28 struct snd_soc_card *card = rtd->card; in spk_init() 31 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in spk_init() [all …]
|
D | sof_pcm512x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2018-2020 Intel Corporation. 20 #include <sound/soc-acpi.h> 22 #include "../common/soc-intel-quirks.h" 55 sof_pcm512x_quirk = (unsigned long)id->driver_data; in sof_pcm512x_quirk_cb() 64 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"), 73 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init() 77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init() 79 return -ENOMEM; in sof_hdmi_init() 82 pcm->device = rtd->dai_link->id; in sof_hdmi_init() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/ |
D | cirrus,madera.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 30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 33 pin-settings: 40 '-pins$': 43 - $ref: "pincfg-node.yaml#" 44 - $ref: "pinmux-node.yaml#" 63 dmic6, io, dsp-gpio, irq1, irq2, fll1-clk, [all …]
|
/Linux-v6.1/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() 56 dev_err(rtd->card->dev, 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() 81 dev_err(rtd->dev, in acp3x_5682_init() 86 rt5682_dai_wclk = clk_get(component->dev, "rt5682-dai-wclk"); in acp3x_5682_init() [all …]
|
/Linux-v6.1/sound/soc/pxa/ |
D | poodle.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * poodle.c -- SoC audio for Poodle 22 #include <asm/mach-types.h> 24 #include <linux/platform_data/asoc-pxa.h> 25 #include <linux/platform_data/asoc-poodle.h> 28 #include "pxa2xx-i2s.h" 35 /* audio clock in Hz - rounded from 12.235MHz */ 48 locomo_gpio_write(poodle_pdata->locomo_dev, in poodle_ext_control() 49 poodle_pdata->gpio_mute_l, 1); in poodle_ext_control() 50 locomo_gpio_write(poodle_pdata->locomo_dev, in poodle_ext_control() [all …]
|
D | corgi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * corgi.c -- SoC audio for Corgi 23 #include <asm/mach-types.h> 24 #include <linux/platform_data/asoc-pxa.h> 27 #include "pxa2xx-i2s.h" 37 /* audio clock in Hz - rounded from 12.235MHz */ 89 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control() 91 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in corgi_ext_control() 104 corgi_ext_control(&rtd->card->dapm); in corgi_startup() 109 /* we need to unmute the HP at shutdown as the mute burns power on corgi */ [all …]
|
/Linux-v6.1/sound/soc/ti/ |
D | n810.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * n810.c -- SoC audio for Nokia N810 17 #include <asm/mach-types.h> 20 #include <linux/platform_data/asoc-ti-mcbsp.h> 22 #include "omap-mcbsp.h" 61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 86 struct snd_pcm_runtime *runtime = substream->runtime; in n810_startup() 91 n810_ext_control(&rtd->card->dapm); in n810_startup() 117 .shutdown = n810_shutdown, [all …]
|
/Linux-v6.1/Documentation/admin-guide/ |
D | spkguide.txt | 16 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A 25 http://linux-speakup.org/. Speakup is a set of patches to the standard 33 the system is shutdown. This means that if you have obtained Linux 72 acntsa -- Accent SA 73 acntpc -- Accent PC 74 apollo -- Apollo 75 audptr -- Audapter 76 bns -- Braille 'n Speak 77 dectlk -- DecTalk Express (old and new, db9 serial only) 78 decext -- DecTalk (old) External [all …]
|
/Linux-v6.1/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> 28 #include "acp-mach.h" 59 clk_set_rate(drvdata->wclk, 48000); in acp_clk_enable() 60 clk_set_rate(drvdata->bclk, 48000 * 64); in acp_clk_enable() 62 return clk_prepare_enable(drvdata->wclk); in acp_clk_enable() 67 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5682:00", "rt5682-aif1"))); 78 struct snd_soc_card *card = rtd->card; in acp_card_rt5682_init() 79 struct acp_card_drvdata *drvdata = card->drvdata; in acp_card_rt5682_init() 81 struct snd_soc_component *component = codec_dai->component; in acp_card_rt5682_init() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | max98090.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98090.c -- MAX98090 ALSA SoC Audio driver 5 * Copyright 2011-2012 Maxim Integrated Products 74 { 0x2E, 0x00 }, /* 2E Left Spk Mixer */ 75 { 0x2F, 0x00 }, /* 2F Right Spk Mixer */ 77 { 0x30, 0x00 }, /* 30 Spk Control */ 78 { 0x31, 0x2C }, /* 31 Left Spk Volume */ 79 { 0x32, 0x2C }, /* 32 Right Spk Volume */ 99 { 0x45, 0x00 }, /* 45 Device Shutdown */ 280 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() [all …]
|
D | rt700.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rt700.c -- rt700 ALSA SoC audio driver 23 #include <sound/soc-dapm.h> 65 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE1, &val80); in rt700_button_detect() 68 ret = rt700_index_read(rt700->regmap, RT700_IRQ_FLAG_TABLE2, &val81); in rt700_button_detect() 111 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect() 121 ret = rt700_index_read(rt700->regmap, in rt700_headset_detect() 127 ret = regmap_read(rt700->regmap, reg, &jack_status); in rt700_headset_detect() 136 rt700->jack_type = SND_JACK_HEADPHONE; in rt700_headset_detect() 139 rt700->jack_type = SND_JACK_HEADSET; in rt700_headset_detect() [all …]
|
D | rt5659.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 1137 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0); 1138 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 1139 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 1140 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 1141 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 1143 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); 1250 * rt5659_headset_detect - Detect headset. [all …]
|
D | rk3328_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 23 * 0: -39dB 59 regmap_write(rk3328->regmap, CODEC_RESET, 0x00); in rk3328_codec_reset() 61 regmap_write(rk3328->regmap, CODEC_RESET, 0x03); in rk3328_codec_reset() 69 snd_soc_component_get_drvdata(dai->component); in rk3328_set_dai_fmt() 80 return -EINVAL; in rk3328_set_dai_fmt() 83 regmap_update_bits(rk3328->regmap, DAC_INIT_CTRL1, in rk3328_set_dai_fmt() 101 return -EINVAL; in rk3328_set_dai_fmt() 104 regmap_update_bits(rk3328->regmap, DAC_INIT_CTRL2, in rk3328_set_dai_fmt() 113 snd_soc_component_get_drvdata(dai->component); in rk3328_mute_stream() [all …]
|
D | rt5645.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5645.c -- RT5645 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 42 static unsigned int quirk = -1; 434 /* Some (package) variants have the headset-mic pin not-connected */ 664 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 665 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 666 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 667 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); 681 /* {-6, -4.5, -3, -1.5, 0, 0.82, 1.58, 2.28} dB */ [all …]
|
D | wm8985.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8985.c -- WM8985 / WM8758 ALSA SoC Audio driver 49 { 1, 0x0000 }, /* R1 - Power management 1 */ 50 { 2, 0x0000 }, /* R2 - Power management 2 */ 51 { 3, 0x0000 }, /* R3 - Power management 3 */ 52 { 4, 0x0050 }, /* R4 - Audio Interface */ 53 { 5, 0x0000 }, /* R5 - Companding control */ 54 { 6, 0x0140 }, /* R6 - Clock Gen control */ 55 { 7, 0x0000 }, /* R7 - Additional control */ 56 { 8, 0x0000 }, /* R8 - GPIO Control */ [all …]
|
D | wm8983.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8983.c -- WM8983 ALSA SoC Audio driver 29 { 0x01, 0x0000 }, /* R1 - Power management 1 */ 30 { 0x02, 0x0000 }, /* R2 - Power management 2 */ 31 { 0x03, 0x0000 }, /* R3 - Power management 3 */ 32 { 0x04, 0x0050 }, /* R4 - Audio Interface */ 33 { 0x05, 0x0000 }, /* R5 - Companding control */ 34 { 0x06, 0x0140 }, /* R6 - Clock Gen control */ 35 { 0x07, 0x0000 }, /* R7 - Additional control */ 36 { 0x08, 0x0000 }, /* R8 - GPIO Control */ [all …]
|
D | rt1011.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * rt1011.c -- rt1011 ALSA SoC amplifier component driver 27 #include <sound/soc-dapm.h> 685 regmap_multi_reg_write(rt1011->regmap, in rt1011_reg_init() 1044 ucontrol->value.integer.value[0] = rt1011->recv_spk_mode; in rt1011_recv_spk_mode_get() 1057 if (ucontrol->value.integer.value[0] == rt1011->recv_spk_mode) in rt1011_recv_spk_mode_put() 1061 rt1011->recv_spk_mode = ucontrol->value.integer.value[0]; in rt1011_recv_spk_mode_put() 1063 if (rt1011->recv_spk_mode) { in rt1011_recv_spk_mode_put() 1121 (struct rt1011_bq_drc_params *)ucontrol->value.integer.value; in rt1011_bq_drc_coeff_get() 1124 if (strstr(ucontrol->id.name, "AdvanceMode Initial Set")) in rt1011_bq_drc_coeff_get() [all …]
|
D | mt6359.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6359.c -- mt6359 ALSA SoC audio codec driver 24 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ffe); in mt6359_set_playback_gpio() 25 regmap_write(priv->regmap, MT6359_GPIO_MODE2_SET, 0x0249); in mt6359_set_playback_gpio() 28 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x6); in mt6359_set_playback_gpio() 29 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x1); in mt6359_set_playback_gpio() 39 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ff8); in mt6359_reset_playback_gpio() 40 regmap_update_bits(priv->regmap, MT6359_GPIO_DIR0, 0x7 << 9, 0x0); in mt6359_reset_playback_gpio() 46 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x0e00); in mt6359_set_capture_gpio() 47 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x0200); in mt6359_set_capture_gpio() [all …]
|
D | cs35l35.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs35l35.c -- CS35L35 ALSA SoC audio driver 27 #include <sound/soc-dapm.h> 163 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); in cs35l35_reset() 165 gpiod_set_value_cansleep(cs35l35->reset_gpio, 1); in cs35l35_reset() 173 if (cs35l35->pdata.ext_bst) { in cs35l35_wait_for_pdn() 178 reinit_completion(&cs35l35->pdn_done); in cs35l35_wait_for_pdn() 180 ret = wait_for_completion_timeout(&cs35l35->pdn_done, in cs35l35_wait_for_pdn() 183 dev_err(cs35l35->dev, "PDN_DONE did not complete\n"); in cs35l35_wait_for_pdn() 184 return -ETIMEDOUT; in cs35l35_wait_for_pdn() [all …]
|
/Linux-v6.1/drivers/pinctrl/cirrus/ |
D | pinctrl-madera-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2018 Cirrus Logic 19 #include <linux/pinctrl/pinconf-generic.h> 24 #include "../pinctrl-utils.h" 26 #include "pinctrl-madera.h" 30 * NOTE: IDs are zero-indexed for coding convenience 76 * All single-pin functions can be mapped to any GPIO, however pinmux applies 80 * Since these do not correspond to anything in the actual hardware - they are 81 * merely an adaptation to pinctrl's view of the world - we use the same name 93 /* set of pin numbers for single-pin groups, zero-indexed */ [all …]
|
/Linux-v6.1/sound/soc/qcom/ |
D | sdm845.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include <uapi/linux/input-event-codes.h> 53 struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(rtd->card); in sdm845_slim_snd_hw_params() 61 substream->stream); in sdm845_slim_snd_hw_params() 62 if (sruntime != ERR_PTR(-ENOTSUPP)) in sdm845_slim_snd_hw_params() 63 pdata->sruntime[cpu_dai->id] = sruntime; in sdm845_slim_snd_hw_params() 68 if (ret != 0 && ret != -ENOTSUPP) { in sdm845_slim_snd_hw_params() 71 } else if (ret == -ENOTSUPP) { in sdm845_slim_snd_hw_params() 76 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdm845_slim_snd_hw_params() 101 dev_err(rtd->dev, "%s: invalid param format 0x%x\n", in sdm845_tdm_snd_hw_params() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | tegra20-asus-tf101.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/atmel-maxtouch.h> 5 #include <dt-bindings/input/gpio-keys.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra20-cpu-opp.dtsi" 11 #include "tegra20-cpu-opp-microvolt.dtsi" 16 chassis-type = "convertible"; 33 * pre-existing /chosen node to be available to insert the [all …]
|
D | tegra20-acer-a500-picasso.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/atmel-maxtouch.h> 5 #include <dt-bindings/input/gpio-keys.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra20-cpu-opp.dtsi" 11 #include "tegra20-cpu-opp-microvolt.dtsi" 32 * pre-existing /chosen node to be available to insert the 41 reserved-memory { [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/rockchip/ |
D | rk3399-eaidk-610.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/pwm/pwm.h> 9 #include <dt-bindings/usb/pd.h> 11 #include "rk3399-opp.dtsi" 14 model = "OPEN AI LAB EAIDK-610"; 15 compatible = "openailab,eaidk-610", "rockchip,rk3399"; 24 compatible = "pwm-backlight"; 26 brightness-levels = < [all …]
|
/Linux-v6.1/sound/pci/hda/ |
D | cs35l41_hda.c | 1 // SPDX-License-Identifier: GPL-2.0 48 { CS35L41_SP_HIZ_CTRL, 0x00000002 }, // Hi-Z unused 72 { CS35L41_SP_HIZ_CTRL, 0x00000003 }, // Hi-Z unused/disabled 98 info.device_name = cs35l41->amp_name; in cs35l41_add_controls() 99 info.fw_type = cs35l41->firmware_type; in cs35l41_add_controls() 100 info.card = cs35l41->codec->card; in cs35l41_add_controls() 102 hda_cs_dsp_add_controls(&cs35l41->cs_dsp, &info); in cs35l41_add_controls() 114 const char * const dsp_name = cs35l41->cs_dsp.name; in cs35l41_request_firmware_file() 118 if (spkid > -1 && ssid && amp_name) in cs35l41_request_firmware_file() 119 *filename = kasprintf(GFP_KERNEL, "%s%s-%s-%s-%s-spkid%d-%s.%s", dir, CS35L41_PART, in cs35l41_request_firmware_file() [all …]
|