| /linux/Documentation/devicetree/bindings/iio/proximity/ |
| H A D | semtech,sx9324.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Gwendal Grignou <gwendal@chromium.org> 11 - Daniel Campello <campello@chromium.org> 17 - $ref: /schemas/iio/iio.yaml# 32 vdd-supply: 35 svdd-supply: 38 "#io-channel-cells": 41 semtech,ph0-pin: [all …]
|
| /linux/sound/soc/codecs/ |
| H A 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 250 static bool max98090_volatile_register(struct device *dev, unsigned int reg) in max98090_volatile_register() 263 static bool max98090_readable_register(struct device *dev, unsigned int reg) in max98090_readable_register() 275 static int max98090_reset(struct max98090_priv *max98090) in max98090_reset() 277 int ret; in max98090_reset() 279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 283 dev_err(max98090->component->dev, in max98090_reset() [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-common.h" 25 #include "wcd-mbhc-v 1384 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_mclk() local 1491 struct snd_soc_component *comp = dai->component; wcd934x_set_prim_interpolator_rate() local 1617 struct snd_soc_component *comp = dai->component; wcd934x_set_decimator_rate() local 2196 wcd934x_init_dmic(struct snd_soc_component * comp) wcd934x_init_dmic() argument 3065 wcd934x_comp_remove(struct snd_soc_component * comp) wcd934x_comp_remove() argument 3073 wcd934x_comp_set_sysclk(struct snd_soc_component * comp,int clk_id,int source,unsigned int freq,int dir) wcd934x_comp_set_sysclk() argument 3208 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; wcd934x_compander_get() local 3221 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; wcd934x_compander_set() local 3424 struct snd_soc_component *comp; wcd934x_dec_enum_put() local 4149 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_slim() local 4200 wcd934x_codec_hphdelay_lutbypass(struct snd_soc_component * comp,u16 interp_idx,int event) wcd934x_codec_hphdelay_lutbypass() argument 4236 wcd934x_config_compander(struct snd_soc_component * comp,int interp_n,int event) wcd934x_config_compander() argument 4296 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_interp_clk() local 4337 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_mix_path() local 4368 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_set_iir_gain() local 4403 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_main_path() local 4422 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_ear_dac_event() local 4448 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_hphl_dac_event() local 4500 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_hphr_dac_event() local 4549 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_lineout_dac_event() local 4570 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_hphl_pa() local 4634 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_hphr_pa() local 4695 wcd934x_get_dmic_sample_rate(struct snd_soc_component * comp,unsigned int dmic,struct wcd934x_codec * wcd) wcd934x_get_dmic_sample_rate() argument 4741 wcd934x_get_dmic_clk_val(struct snd_soc_component * comp,u32 mclk_rate,u32 dmic_clk_rate) wcd934x_get_dmic_clk_val() argument 4794 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_dmic() local 4868 wcd934x_codec_find_amic_input(struct snd_soc_component * comp,int adc_mux_n) wcd934x_codec_find_amic_input() argument 4935 wcd934x_codec_get_amic_pwlvl_reg(struct snd_soc_component * comp,int amic) wcd934x_codec_get_amic_pwlvl_reg() argument 4960 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_dec() local 5091 wcd934x_codec_set_tx_hold(struct snd_soc_component * comp,u16 amic_reg,bool set) wcd934x_codec_set_tx_hold() argument 5122 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); wcd934x_codec_enable_adc() local 5800 wcd934x_codec_set_jack(struct snd_soc_component * comp,struct snd_soc_jack * jack,void * data) wcd934x_codec_set_jack() argument [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. 20 #include <sound/soc-dapm.h> 24 #include "wcd-clsh-v2.h" 25 #include "wcd-common.h" 26 #include "wcd-mbh 1849 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd938x_get_swr_port() local 1868 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd938x_set_swr_port() local 3177 wcd938x_codec_set_jack(struct snd_soc_component * comp,struct snd_soc_jack * jack,void * data) wcd938x_codec_set_jack() argument [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. 19 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-common.h" 25 #include "wcd-mbh 1317 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd937x_get_swr_port() local 1336 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd937x_set_swr_port() local 2605 wcd937x_codec_set_jack(struct snd_soc_component * comp,struct snd_soc_jack * jack,void * data) wcd937x_codec_set_jack() argument [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. 25 #include <sound/soc-dapm.h> 30 #include "wcd-clsh-v2.h" 31 #include "wcd-commo 1794 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd939x_get_swr_port() local 1821 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); wcd939x_set_swr_port() local 3128 wcd939x_codec_set_jack(struct snd_soc_component * comp,struct snd_soc_jack * jack,void * data) wcd939x_codec_set_jack() argument [all...] |
| H A D | mt6359-accdet.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6359-accdet.c -- ALSA SoC mt6359 accdet driver 27 #include "mt6359-accdet.h" 31 #define REGISTER_VAL(x) ((x) - 1) 58 static void accdet_set_debounce(struct mt6359_accdet *priv, int state, 59 unsigned int debounce); 60 static unsigned int adjust_eint_analog_setting(struct mt6359_accdet *priv); 64 static unsigned int mt6359_accdet_jd_setting(struct mt6359_accdet *priv); 71 static unsigned int adjust_eint_analog_setting(struct mt6359_accdet *priv) in adjust_eint_analog_setting() 73 if (priv->data->eint_detect_mode == 0x3 || in adjust_eint_analog_setting() [all …]
|
| /linux/drivers/iio/proximity/ |
| H A D | sx9324.c | 1 // SPDX-License-Identifier: GPL-2.0 182 unsigned int val; in sx9324_phase_configuration_show() 183 int i, ret, pin_idx; in sx9324_phase_configuration_show() 186 ret = regmap_read(data->regmap, SX9324_REG_AFE_PH0 + chan->channel, &val); in sx9324_phase_configuration_show() 195 buf[len - 1] = '\n'; in sx9324_phase_configuration_show() 246 int val; 247 int val2; 283 static const unsigned int sx9324_scan_period_table[] = { 315 regmap_reg_range(SX9324_REG_IRQ_CFG2 + 1, SX9324_REG_GNRL_CTRL0 - 1), 316 regmap_reg_range(SX9324_REG_GNRL_CTRL1 + 1, SX9324_REG_AFE_CTRL0 - 1), [all …]
|