/linux/Documentation/devicetree/bindings/sound/ |
H A D | maxim,max98925.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ryan Lee <ryans.lee@maximintegrated.com> 15 - maxim,max98925 16 - maxim,max98926 17 - maxim,max98927 22 reset-gpios: 25 '#sound-dai-cells': 28 vmon-slot-no: [all …]
|
H A D | max98373.txt | 7 - compatible : "maxim,max98373" 9 - reg : the I2C address of the device. 13 - maxim,vmon-slot-no : slot number used to send voltage information 15 interleave slot. 16 slot range : 0 ~ 15, Default : 0 18 - maxim,imon-slot-no : slot number used to send current information 19 slot range : 0 ~ 15, Default : 0 21 - maxim,spkfb-slot-no : slot number used to send speaker feedback information 22 slot range : 0 ~ 15, Default : 0 24 - maxim,interleave-mode : For cases where a single combined channel [all …]
|
H A D | adi,max98388.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ryan Lee <ryans.lee@analog.com> 13 The MAX98388 is a mono Class-D speaker amplifier with I/V feedback. 18 - $ref: dai-common.yaml# 23 - adi,max98388 28 '#sound-dai-cells': 31 adi,vmon-slot-no: 32 description: slot number of the voltage feedback monitor [all …]
|
H A D | ti,tas27xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020-2022 Texas Instruments Incorporated 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Shenghao Ding <shenghao-ding@ti.com> 14 The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier 20 - $ref: dai-common.yaml# 25 - ti,tas2764 26 - ti,tas2780 33 reset-gpios: [all …]
|
H A D | ti,tas2770.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2019-20 Texas Instruments Incorporated 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Shi Fu <shifu0704@thundersoft.com> 14 The TAS2770 is a mono, digital input Class-D audio amplifier optimized for 20 - $ref: dai-common.yaml# 25 - ti,tas2770 32 reset-gpio: 36 shutdown-gpios: [all …]
|
H A D | adi,max98396.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ryan Lee <ryans.lee@analog.com> 13 The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. 21 - adi,max98396 22 - adi,max98397 27 avdd-supply: 30 dvdd-supply: 33 dvddio-supply: [all …]
|
H A D | ti,tas2562.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Andrew Davis <afd@ti.com> 14 The TAS2562 is a mono, digital input Class-D audio amplifier optimized for 25 - $ref: dai-common.yaml# 30 - ti,tas2562 31 - ti,tas2564 32 - ti,tas2110 39 shut-down-gpios: [all …]
|
/linux/sound/soc/codecs/ |
H A D | tas2770.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // ALSA SoC Texas Instruments TAS2770 20-W Digital Input Mono Class-D 6 // Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/ 7 // Author: Tracy Yi <tracy-yi@ti.com> 35 if (tas2770->reset_gpio) { in tas2770_reset() 36 gpiod_set_value_cansleep(tas2770->reset_gpio, 0); in tas2770_reset() 38 gpiod_set_value_cansleep(tas2770->reset_gpio, 1); in tas2770_reset() 42 snd_soc_component_write(tas2770->component, TAS2770_SW_RST, in tas2770_reset() 49 struct snd_soc_component *component = tas2770->component; in tas2770_update_pwr_ctrl() 53 if (tas2770->dac_powered) in tas2770_update_pwr_ctrl() [all …]
|
H A D | tas2562.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <sound/soc-dapm.h> 129 dev_info(tas2562->dev, "%s, unsupported sample rate, %d\n", in tas2562_set_samplerate() 131 return -EINVAL; in tas2562_set_samplerate() 134 snd_soc_component_update_bits(tas2562->component, TAS2562_TDM_CFG0, in tas2562_set_samplerate() 136 snd_soc_component_update_bits(tas2562->component, TAS2562_TDM_CFG0, in tas2562_set_samplerate() 146 struct snd_soc_component *component = dai->component; in tas2562_set_dai_tdm_slot() 153 dev_err(component->dev, "tx masks must not be 0\n"); in tas2562_set_dai_tdm_slot() 154 return -EINVAL; in tas2562_set_dai_tdm_slot() 159 return -EINVAL; in tas2562_set_dai_tdm_slot() [all …]
|
H A D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0 23 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event() 28 regmap_update_bits(max98373->regmap, in max98373_dac_event() 34 regmap_update_bits(max98373->regmap, in max98373_dac_event() 38 max98373->tdm_mode = false; in max98373_dac_event() 81 SND_SOC_DAPM_SIGGEN("IMON"), 85 static DECLARE_TLV_DB_SCALE(max98373_digital_tlv, -6350, 50, 1); 101 0, 1, TLV_DB_SCALE_ITEM(-3000, 500, 0), 102 2, 4, TLV_DB_SCALE_ITEM(-2200, 200, 0), 103 5, 6, TLV_DB_SCALE_ITEM(-1500, 300, 0), [all …]
|
H A D | max98926.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98926.c -- ALSA SoC MAX98926 driver 4 * Copyright 2013-15 Maxim Integrated Products 55 { 0x21, 0x00 }, /* TDM Slot Select */ 57 { 0x23, 0x00 }, /* DOUT Configuration IMON */ 205 static DECLARE_TLV_DB_SCALE(max98926_spk_tlv, -600, 100, 0); 222 (1<<MAX98926_SPK_GAIN_WIDTH)-1, 0, 232 (1<<MAX98926_ALC_TH_WIDTH)-1, 0), 236 (1<<MAX98926_BST_ILIM_SHIFT)-1, 0, 291 regmap_update_bits(max98926->regmap, in max98926_set_sense_data() [all …]
|
H A D | max98925.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98925.c -- ALSA SoC Stereo MAX98925 driver 4 * Copyright 2013-15 Maxim Integrated Products 58 { 0x21, 0x00 }, /* TDM Slot Select */ 60 { 0x23, 0x00 }, /* DOUT Configuration IMON */ 105 regmap_update_bits(max98925->regmap, in max98925_dac_event() 113 regmap_update_bits(max98925->regmap, in max98925_dac_event() 187 static DECLARE_TLV_DB_SCALE(max98925_spk_tlv, -600, 100, 0); 191 M98925_SPK_GAIN_SHIFT, (1<<M98925_SPK_GAIN_WIDTH)-1, 0, 200 (1<<M98925_ALC_TH_WIDTH)-1, 0), [all …]
|
H A D | cs35l34.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs35l34.c -- CS35l34 ALSA SoC audio driver 28 #include <sound/soc-dapm.h> 48 struct gpio_desc *reset_gpio; /* Active-low reset GPIO */ 235 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l34_sdin_event() 241 if (priv->tdm_mode) in cs35l34_sdin_event() 242 regmap_update_bits(priv->regmap, CS35L34_PWRCTL3, in cs35l34_sdin_event() 245 ret = regmap_update_bits(priv->regmap, CS35L34_PWRCTL1, in cs35l34_sdin_event() 248 dev_err(component->dev, "Cannot set Power bits %d\n", ret); in cs35l34_sdin_event() 254 if (priv->tdm_mode) { in cs35l34_sdin_event() [all …]
|
H A D | max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max98927.c -- MAX98927 ALSA Soc Audio driver 5 * Copyright (C) 2016-2017 Maxim Integrated Products 140 struct snd_soc_component *component = codec_dai->component; in max98927_dai_set_fmt() 147 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98927_dai_set_fmt() 151 max98927->provider = false; in max98927_dai_set_fmt() 155 max98927->provider = true; in max98927_dai_set_fmt() 159 dev_err(component->dev, "DAI clock mode unsupported\n"); in max98927_dai_set_fmt() 160 return -EINVAL; in max98927_dai_set_fmt() 163 regmap_update_bits(max98927->regmap, MAX98927_R0021_PCM_MASTER_MODE, in max98927_dai_set_fmt() [all …]
|
H A D | tas2780.c | 1 // SPDX-License-Identifier: GPL-2.0 33 if (tas2780->reset_gpio) { in tas2780_reset() 34 gpiod_set_value_cansleep(tas2780->reset_gpio, 0); in tas2780_reset() 36 gpiod_set_value_cansleep(tas2780->reset_gpio, 1); in tas2780_reset() 40 ret = snd_soc_component_write(tas2780->component, TAS2780_SW_RST, in tas2780_reset() 43 dev_err(tas2780->dev, "%s:errCode:0x%x Reset error!\n", in tas2780_reset() 57 dev_err(tas2780->dev, "%s:errCode:0x%0x:power down error\n", in tas2780_codec_suspend() 62 regcache_cache_only(tas2780->regmap, true); in tas2780_codec_suspend() 63 regcache_mark_dirty(tas2780->regmap); in tas2780_codec_suspend() 78 dev_err(tas2780->dev, "%s:errCode:0x%0x:power down error\n", in tas2780_codec_resume() [all …]
|
H A D | max98388.c | 1 // SPDX-License-Identifier: GPL-2.0 75 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event() 80 regmap_write(max98388->regmap, in max98388_dac_event() 85 regmap_write(max98388->regmap, in max98388_dac_event() 88 max98388->tdm_mode = false; in max98388_dac_event() 128 SND_SOC_DAPM_SIGGEN("IMON"), 131 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1); 132 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0); 135 "0dBFS", "-1dBFS", "-2dBFS", "-3dBFS", "-4dBFS", "-5dBFS", 136 "-6dBFS", "-7dBFS", "-8dBFS", "-9dBFS", "-10dBFS", "-11dBFS", [all …]
|
H A D | tas2764.c | 1 // SPDX-License-Identifier: GPL-2.0 69 latched[i] = snd_soc_component_read(tas2764->component, in tas2764_irq() 74 dev_crit_ratelimited(tas2764->dev, "%s\n", in tas2764_irq() 81 dev_err_ratelimited(tas2764->dev, "other context to the fault: %02x,%02x,%02x,%02x,%02x", in tas2764_irq() 83 snd_soc_component_update_bits(tas2764->component, in tas2764_irq() 94 if (tas2764->reset_gpio) { in tas2764_reset() 95 gpiod_set_value_cansleep(tas2764->reset_gpio, 0); in tas2764_reset() 97 gpiod_set_value_cansleep(tas2764->reset_gpio, 1); in tas2764_reset() 101 snd_soc_component_write(tas2764->component, TAS2764_SW_RST, in tas2764_reset() 108 struct snd_soc_component *component = tas2764->component; in tas2764_update_pwr_ctrl() [all …]
|
H A D | max98396.c | 1 // SPDX-License-Identifier: GPL-2.0 349 struct snd_soc_component *component = codec_dai->component; in max98396_dai_set_fmt() 360 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98396_dai_set_fmt() 377 dev_err(component->dev, "DAI invert mode %d unsupported\n", in max98396_dai_set_fmt() 379 return -EINVAL; in max98396_dai_set_fmt() 397 dev_err(component->dev, "DAI format %d unsupported\n", in max98396_dai_set_fmt() 399 return -EINVAL; in max98396_dai_set_fmt() 402 ret = regmap_read(max98396->regmap, MAX98396_R210F_GLOBAL_EN, &status); in max98396_dai_set_fmt() 404 return -EINVAL; in max98396_dai_set_fmt() 407 ret = regmap_read(max98396->regmap, MAX98396_R2041_PCM_MODE_CFG, ®); in max98396_dai_set_fmt() [all …]
|
H A D | cs35l56.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 #include <sound/cs-amp-lib.h> 31 #include <sound/soc-dapm.h> 43 flush_work(&cs35l56->dsp_work); in cs35l56_wait_dsp_ready() 66 static DECLARE_TLV_DB_SCALE(vol_tlv, -10000, 25, 0); 162 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l56_play_event() 167 dev_dbg(cs35l56->base.dev, "play: %d\n", event); in cs35l56_play_event() 172 return regmap_write(cs35l56->base.regmap, CS35L56_DSP_VIRTUAL1_MBOX_1, in cs35l56_play_event() 176 ret = regmap_read_poll_timeout(cs35l56->base.regmap, in cs35l56_play_event() 182 dev_err(cs35l56->base.dev, "PS0 wait failed: %d\n", ret); in cs35l56_play_event() [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdm845-oneplus-enchilada.dts | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "sdm845-oneplus-common.dtsi" 13 chassis-type = "handset"; 14 qcom,msm-id = <0x141 0x20001>; 15 qcom,board-id = <8 0 17819 22>; 18 compatible = "simple-battery"; 20 charge-full-design-microamp-hours = <3300000>; 21 voltage-min-design-microvolt = <3400000>; 22 voltage-max-design-microvolt = <4400000>; 33 monitored-battery = <&battery>; [all …]
|
H A D | msm8953-xiaomi-tissot.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 11 #include <dt-bindings/leds/common.h> 13 /delete-node/ &adsp_fw_mem; 14 /delete-node/ &qseecom_mem; 15 /delete-node/ &wcnss_fw_mem; 20 chassis-type = "handset"; 21 qcom,msm-id = <293 0>; 22 qcom,board-id = <0x1000b 0x00>; 24 gpio-keys { [all …]
|
H A D | msm8953-xiaomi-daisy.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 5 /dts-v1/; 11 /delete-node/ &adsp_fw_mem; 12 /delete-node/ &qseecom_mem; 13 /delete-node/ &wcnss_fw_mem; 18 chassis-type = "handset"; 19 qcom,msm-id = <293 0>; 20 qcom,board-id = <0x1000b 0x9>; 23 #address-cells = <2>; 24 #size-cells = <2>; [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" 37 for_each_acpi_dev_match(adev, hid, NULL, -1) in get_num_codecs() 89 * The tx mask indicates which channel(s) contains output IV-sense data and 90 * others should set to Hi-Z. Here we get the channel number from codec's ACPI 91 * device property "maxim,vmon-slot-no" and "maxim,imon-slot-no" to generate the 99 if (device_property_read_u32(dev, "maxim,vmon-slot-no", &vmon_slot)) in max_98373_get_tx_mask() [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3568-mecsbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/pwm/pwm.h> 20 stdout-path = "serial2:1500000n8"; 23 tas2562-sound { 24 compatible = "simple-audio-card"; 25 simple-audio-card,format = "i2s"; [all …]
|
/linux/sound/pci/hda/ |
H A D | cs35l41_hda.c | 1 // SPDX-License-Identifier: GPL-2.0 37 #define CS35L41_UUID "50d90cdc-3de4-4f18-b528-c7fe3b71f40d" 89 { CS35L41_SP_HIZ_CTRL, 0x00000002 }, // Hi-Z unused 90 { CS35L41_SP_TX_WL, 0x00000018 }, // 24 cycles/slot 91 { CS35L41_SP_RX_WL, 0x00000018 }, // 24 cycles/slot 94 { CS35L41_ASP_TX2_SRC, 0x00000019 }, // ASPTX2 SRC = IMON 100 { CS35L41_DSP1_RX4_SRC, 0x00000019 }, // DSP1RX4 SRC = IMON 111 { CS35L41_SP_HIZ_CTRL, 0x00000003 }, // Hi-Z unused/disabled 112 { CS35L41_SP_TX_WL, 0x00000018 }, // 24 cycles/slot 113 { CS35L41_SP_RX_WL, 0x00000018 }, // 24 cycles/slot [all …]
|