/linux/sound/soc/codecs/ |
H A D | wcd9335.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 3 // Copyright (c) 2017-2018, Linaro Limited 19 #include <sound/soc-dapm.h> 26 #include "wcd-clsh-v2.h" 28 #include <dt-bindings/sound/qcom,wcd9335.h> 99 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25) 405 {24000, -EINVAL},/* 24K */ 547 "Class H Invalid", "Class-H Hi-Fi", "Class-H Low Power", "Class-AB", 548 "Class-H Hi-Fi Low Power" [all …]
|
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-mbhc-v2.h" 97 /* As fine version info cannot be retrieved before wcd probe. 98 * Define three coarse versions for possible future use before wcd probe. 430 COMPANDER_5, /* LO3_SE - not used in Tavil */ 431 COMPANDER_6, /* LO4_SE - not used in Tavil */ 515 .name = "WCD9335-IFC-DEV", [all …]
|
H A D | msm8916-wcd-analog.c | 1 // SPDX-License-Identifier: GPL-2.0 109 #define MICB_VOLTAGE_REGVAL(v) (((v - MICB_MIN_VAL)/MICB_STEP_SIZE) << 3) 283 "vdd-cdc-io", 284 "vdd-cdc-tx-rx-cx", 350 struct pm8916_wcd_analog_priv *wcd = snd_soc_component_get_drvdata(component); in pm8916_wcd_analog_micbias_enable() local 358 if (wcd->micbias_mv) { in pm8916_wcd_analog_micbias_enable() 361 MICB_VOLTAGE_REGVAL(wcd->micbias_mv)); in pm8916_wcd_analog_micbias_enable() 366 if (wcd->micbias_mv >= 2700) in pm8916_wcd_analog_micbias_enable() 394 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias_int() 411 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias1() [all …]
|
H A D | wcd937x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. 20 #include <sound/soc-dapm.h> 24 #include "wcd-clsh-v2.h" 25 #include "wcd-mbhc-v2.h" 118 static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800); 214 regmap_write(wcd937x->regmap, WCD937X_DIGITAL_INTR_CLEAR_0, 0); in wcd937x_handle_post_irq() 215 regmap_write(wcd937x->regmap, WCD937X_DIGITAL_INTR_CLEAR_1, 0); in wcd937x_handle_post_irq() 216 regmap_write(wcd937x->regmap, WCD937X_DIGITAL_INTR_CLEAR_2, 0); in wcd937x_handle_post_irq() 245 gpiod_set_value(wcd937x->reset_gpio, 1); in wcd937x_reset() [all …]
|
H A D | wcd938x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 21 #include <sound/soc-dapm.h> 24 #include "wcd-clsh-v2.h" 25 #include "wcd-mbhc-v2.h" 193 static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800); 194 static const DECLARE_TLV_DB_SCALE(line_gain, -3000, 150, 0); 350 struct regmap *rm = wcd938x->regmap; in wcd938x_io_init() 409 port_num = ch_info->port_num; in wcd938x_sdw_connect_port() 410 ch_mask = ch_info->ch_mask; in wcd938x_sdw_connect_port() [all …]
|
H A D | wcd939x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. 26 #include <sound/soc-dapm.h> 31 #include "wcd-clsh-v2.h" 32 #include "wcd-mbhc-v2.h" 217 static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800); 421 port_num = ch_info->port_num; in wcd939x_sdw_connect_port() 422 ch_mask = ch_info->ch_mask; in wcd939x_sdw_connect_port() 424 port_config->num = port_num; in wcd939x_sdw_connect_port() [all …]
|
H A D | msm8916-wcd-digital.c | 1 // SPDX-License-Identifier: GPL-2.0 331 /* Digital Gain control -84 dB to +40 dB in 1 dB steps */ 332 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); 334 /* Cutoff Freq for High Pass Filter at -3dB */ 360 snd_soc_dapm_to_component(w->dapm); in msm8x16_wcd_codec_set_iir_gain() 365 if (w->shift == 0) in msm8x16_wcd_codec_set_iir_gain() 367 else if (w->shift == 1) in msm8x16_wcd_codec_set_iir_gain() 429 (struct wcd_iir_filter_ctl *)kcontrol->private_value; in msm8x16_wcd_get_iir_band_audio_mixer() 430 struct soc_bytes_ext *params = &ctl->bytes_ext; in msm8x16_wcd_get_iir_band_audio_mixer() 431 int iir_idx = ctl->iir_idx; in msm8x16_wcd_get_iir_band_audio_mixer() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | google,sc7280-herobrine.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Google SC7280-Herobrine ASoC sound card driver 10 - Judy Hsiao <judyhsiao@chromium.org> 16 - $ref: sound-card-common.yaml# 21 - google,sc7280-herobrine 23 "#address-cells": 26 "#size-cells": [all …]
|
H A D | qcom,apq8016-sbc-sndcard.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,apq8016-sbc-sndcard.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 11 - Stephan Gerhold <stephan@gerhold.net> 16 - qcom,apq8016-sbc-sndcard 17 - qcom,msm8916-qdsp6-sndcard 21 - description: Microphone I/O mux register address 22 - description: Speaker I/O mux register address [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | apq8039-t2.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2020-2023, Linaro Ltd. 8 /dts-v1/; 11 #include "msm8939-pm8916.dtsi" 12 #include <dt-bindings/arm/qcom,ids.h> 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 #include <dt-bindings/sound/apq8016-lpass.h> 19 compatible = "square,apq8039-t2", "qcom,msm8939"; 21 qcom,board-id = <0x53 0x54>; [all …]
|
H A D | sm8550-mtp.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 22 compatible = "qcom,sm8550-mtp", "qcom,sm8550"; 23 chassis-type = "handset"; 29 wcd938x: audio-codec { 30 compatible = "qcom,wcd9385-codec"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&wcd_default>; 35 qcom,micbias1-microvolt = <1800000>; [all …]
|
H A D | sm8250-mtp.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/sound/qcom,q6afe.h> 10 #include <dt-bindings/sound/qcom,q6asm.h> 11 #include <dt-bindings/gpio/gpio.h> 20 compatible = "qcom,sm8250-mtp", "qcom,sm8250"; 21 chassis-type = "handset"; 27 wcd938x: audio-codec { 28 compatible = "qcom,wcd9380-codec"; [all …]
|
H A D | x1e80100-qcp.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include "x1e80100-pmics.dtsi" 16 compatible = "qcom,x1e80100-qcp", "qcom,x1e80100"; 22 wcd938x: audio-codec { 23 compatible = "qcom,wcd9385-codec"; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&wcd_default>; [all …]
|
H A D | sm8450-hdk.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 10 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350b.h> 11 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 12 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 13 #include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h> 24 compatible = "qcom,sm8450-hdk", "qcom,sm8450"; 25 chassis-type = "embedded"; [all …]
|
H A D | sm8550-qrd.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 23 compatible = "qcom,sm8550-qrd", "qcom,sm8550"; 24 chassis-type = "handset"; 31 wcd938x: audio-codec { 32 compatible = "qcom,wcd9385-codec"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&wcd_default>; [all …]
|
H A D | x1e80100-crd.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14 #include "x1e80100-pmics.dtsi" 18 compatible = "qcom,x1e80100-crd", "qcom,x1e80100"; 24 wcd938x: audio-codec { 25 compatible = "qcom,wcd9385-codec"; [all …]
|
H A D | msm8916-huawei-g7.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 6 /dts-v1/; 8 #include "msm8916-pm8916.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/sound/apq8016-lpass.h> 16 * Note: The original firmware from Huawei can only boot 32-bit kernels. 17 * To boot this device tree using arm64 it is necessary to flash 64-bit TZ/HYP [all …]
|
H A D | sm8550-hdk.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 22 compatible = "qcom,sm8550-hdk", "qcom,sm8550"; 23 chassis-type = "embedded"; 30 wcd938x: audio-codec { 31 compatible = "qcom,wcd9385-codec"; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&wcd_default>; [all …]
|
H A D | apq8016-schneider-hmibsc.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 9 #include "msm8916-pm8916.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 15 #include <dt-bindings/sound/apq8016-lpass.h> 19 compatible = "schneider,apq8016-hmibsc", "qcom,apq8016"; [all …]
|
H A D | sm8650-qrd.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 22 compatible = "qcom,sm8650-qrd", "qcom,sm8650"; 30 stdout-path = "serial0:115200n8"; 33 gpio-keys { 34 compatible = "gpio-keys"; 36 pinctrl-0 = <&volume_up_n>; 37 pinctrl-names = "default"; [all …]
|
H A D | sdm850-samsung-w737.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 8 /dts-v1/; 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/input/gpio-keys.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14 #include <dt-bindings/sound/qcom,q6afe.h> 15 #include <dt-bindings/sound/qcom,q6asm.h> 17 #include "sdm845-wcd9340.dtsi" 24 /delete-node/ &qseecom_mem; [all …]
|
H A D | sc8280xp-lenovo-thinkpad-x13s.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/gpio-keys.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 17 #include "sc8280xp-pmics.dtsi" 21 compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp"; [all …]
|
H A D | sm8650-hdk.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 21 compatible = "qcom,sm8650-hdk", "qcom,sm8650"; 22 chassis-type = "embedded"; 30 stdout-path = "serial0:115200n8"; 33 hdmi-out { 34 compatible = "hdmi-connector"; 39 remote-endpoint = <<9611_out>; [all …]
|
H A D | sdm850-lenovo-yoga-c630.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 8 /dts-v1/; 10 #include <dt-bindings/input/gpio-keys.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 16 #include "sdm845-wcd9340.dtsi" 24 /delete-node/ &ipa_fw_mem; 25 /delete-node/ &ipa_gsi_mem; [all …]
|
/linux/sound/soc/qcom/ |
H A D | lpass-sc7280.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. 5 * lpass-sc7180.c -- ALSA SoC platform-machine driver for QTi LPASS 13 #include <dt-bindings/sound/sc7180-lpass.h> 15 #include "lpass-lpaif-reg.h" 31 .capture = { 32 .stream_name = "Primary Capture", 72 .stream_name = "WCD Playback", 84 .capture = { 85 .stream_name = "WCD Capture", [all …]
|