/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/ |
D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 DFSDM ADC device driver 10 - Fabrice Gasnier <fabrice.gasnier@st.com> 11 - Olivier Moysan <olivier.moysan@st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) [all …]
|
/Linux-v5.10/sound/soc/codecs/ |
D | adau1373.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 25 #include "adau-utils.h" 324 0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1), 325 8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0), 326 16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0), 327 24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0) 330 static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0); 331 static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1); 332 static const DECLARE_TLV_DB_SCALE(adau1373_ep_tlv, -600, 600, 1); [all …]
|
D | nau8540.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <sound/soc-dapm.h> 51 /* ratio for input clk freq */ 71 { 32, 3 }, /* OSR 32, SRC 1/8 */ 72 { 64, 2 }, /* OSR 64, SRC 1/4 */ 73 { 128, 1 }, /* OSR 128, SRC 1/2 */ 74 { 256, 0 }, /* OSR 256, SRC 1 */ 183 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -12800, 3600); 184 static const DECLARE_TLV_DB_MINMAX(fepga_gain_tlv, -100, 3600); 207 "ADC channel 1", "ADC channel 2", "ADC channel 3", "ADC channel 4" [all …]
|
D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/clk.h> 35 /* the ADC threshold of headset */ 38 /* the ADC threshold of headset */ 60 /* ratio for input clk freq */ 83 { 64, 2 }, /* OSR 64, SRC 1/4 */ 84 { 256, 0 }, /* OSR 256, SRC 1 */ 85 { 128, 1 }, /* OSR 128, SRC 1/2 */ 87 { 32, 3 }, /* OSR 32, SRC 1/8 */ 91 { 32, 3 }, /* OSR 32, SRC 1/8 */ [all …]
|
D | rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682.c -- RT5682 ALSA SoC audio component driver 26 #include <sound/soc-dapm.h> 53 ret = regmap_multi_reg_write(rt5682->regmap, patch_list, in rt5682_apply_patch_list() 742 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 743 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); 778 SOC_DAPM_ENUM("IF2 ADC Swap Mux", rt5682_if2_adc_enum); 781 SOC_DAPM_ENUM("IF1 01 ADC Swap Mux", rt5682_if1_01_adc_enum); 784 SOC_DAPM_ENUM("IF1 23 ADC Swap Mux", rt5682_if1_23_adc_enum); 787 SOC_DAPM_ENUM("IF1 45 ADC Swap Mux", rt5682_if1_45_adc_enum); [all …]
|
D | tscs42xx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // tscs42xx.c -- TSCS42xx ALSA SoC Audio driver 15 #include <linux/clk.h> 19 #include <sound/soc-dapm.h> 45 struct clk *sysclk; 108 dev_err(component->dev, in plls_locked() 115 } while (count--); in plls_locked() 135 return -EINVAL; in sample_rate_to_pll_freq_out() 153 dev_err(component->dev, in write_coeff_ram() 162 ret = -EIO; in write_coeff_ram() [all …]
|
D | tscs454.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // tscs454.c -- TSCS454 ALSA SoC Audio driver 7 #include <linux/clk.h> 21 #include <sound/soc-dapm.h> 50 pll->id = id; in pll_init() 51 mutex_init(&pll->lock); in pll_init() 66 aif->id = id; in aif_init() 85 cache[((norm_addrs[i] + 1) * COEFF_SIZE) - 1] = 0x40; in init_coeff_ram_cache() 90 init_coeff_ram_cache(ram->cache); in coeff_ram_init() 91 mutex_init(&ram->lock); in coeff_ram_init() [all …]
|
D | rt5677.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5677.c -- RT5677 ALSA SoC audio codec driver 31 #include <sound/soc-dapm.h> 37 #include "rt5677-spi.h" 554 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode. 565 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr() 568 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr() 570 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr() 573 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr() 577 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr() [all …]
|
D | rt5668.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5668.c -- RT5668B ALSA SoC audio component driver 27 #include <sound/soc-dapm.h> 746 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 747 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 748 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 783 SOC_DAPM_ENUM("IF2 ADC Swap Mux", rt5668_if2_adc_enum); 786 SOC_DAPM_ENUM("IF1 01 ADC Swap Mux", rt5668_if1_01_adc_enum); 789 SOC_DAPM_ENUM("IF1 23 ADC Swap Mux", rt5668_if1_23_adc_enum); 792 SOC_DAPM_ENUM("IF1 45 ADC Swap Mux", rt5668_if1_45_adc_enum); [all …]
|
D | rt5665.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 888 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 889 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0); 890 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 891 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 892 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 893 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 895 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 17 #include <linux/clk.h> 34 #define NUVOTON_CODEC_DAI "nau8825-hifi" 81 /* ratio for input clk freq */ 106 { 64, 2 }, /* OSR 64, SRC 1/4 */ 107 { 256, 0 }, /* OSR 256, SRC 1 */ 108 { 128, 1 }, /* OSR 128, SRC 1/2 */ 110 { 32, 3 }, /* OSR 32, SRC 1/8 */ 114 { 32, 3 }, /* OSR 32, SRC 1/8 */ [all …]
|
D | rt5659.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver 9 #include <linux/clk.h> 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); [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/sound/ |
D | st,stm32-adfsdm.txt | 5 For details on DFSDM bindings refer to ../iio/adc/st,stm32-dfsdm-adc.txt 8 - compatible: "st,stm32h7-dfsdm-dai". 10 - #sound-dai-cells : Must be equal to 0 12 - io-channels : phandle to iio dfsdm instance node. 17 compatible = "audio-graph-card"; 23 compatible = "st,stm32h7-dfsdm"; 26 clock-names = "dfsdm"; 27 #interrupt-cells = <1>; 28 #address-cells = <1>; 29 #size-cells = <0>; [all …]
|
/Linux-v5.10/drivers/iio/adc/ |
D | stm32-dfsdm-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file is the ADC part of the STM32 DFSDM driver 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/dma-mapping.h> 11 #include <linux/iio/adc/stm32-dfsdm-adc.h> 13 #include <linux/iio/hw-consumer.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 27 #include "stm32-dfsdm.h" 42 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */ [all …]
|
/Linux-v5.10/sound/soc/stm/ |
D | stm32_adfsdm.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/clk.h> 18 #include <linux/iio/adc/stm32-dfsdm-adc.h> 23 #define STM32_ADFSDM_DRV_NAME "stm32-adfsdm" 65 mutex_lock(&priv->lock); in stm32_adfsdm_shutdown() 66 if (priv->iio_active) { in stm32_adfsdm_shutdown() 67 iio_channel_stop_all_cb(priv->iio_cb); in stm32_adfsdm_shutdown() 68 priv->iio_active = false; in stm32_adfsdm_shutdown() 70 mutex_unlock(&priv->lock); in stm32_adfsdm_shutdown() [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | exynos3250.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "exynos4-cpu-thermal.dtsi" 18 #include <dt-bindings/clock/exynos3250.h> 19 #include <dt-bindings/interrupt-controller/arm-gic.h> 20 #include <dt-bindings/interrupt-controller/irq.h> 24 interrupt-parent = <&gic>; 25 #address-cells = <1>; 26 #size-cells = <1>; 50 #address-cells = <1>; 51 #size-cells = <0>; [all …]
|
D | r8a7791.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the R-Car M2-W (R8A77910) SoC 5 * Copyright (C) 2013-2015 Renesas Electronics Corporation 6 * Copyright (C) 2013-2014 Renesas Solutions Corp. 10 #include <dt-bindings/clock/r8a7791-cpg-mssr.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/power/r8a7791-sysc.h> 17 #address-cells = <2>; 18 #size-cells = <2>; [all …]
|
/Linux-v5.10/sound/pci/korg1212/ |
D | korg1212.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 // ---------------------------------------------------------------------------- 28 // ---------------------------------------------------------------------------- 41 // ---------------------------------------------------------------------------- 44 // ---------------------------------------------------------------------------- 47 // ---------------------------------------------------------------------------- 49 // ---------------------------------------------------------------------------- 68 // ---------------------------------------------------------------------------- 70 // host-to-card doorbell to initiate a command. 71 // ---------------------------------------------------------------------------- [all …]
|
/Linux-v5.10/drivers/staging/comedi/drivers/ |
D | cb_pcidas64.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * This is a driver for the ComputerBoards/MeasurementComputing PCI-DAS 13 * his pci-das6402 driver, and source code for working QNX pci-6402 18 * John Sims, for much testing and feedback on pcidas-4020 support. 20 * COMEDI - Linux Control and Measurement Device Interface 21 * Copyright (C) 1997-8 David A. Schleef <ds@schleef.org> 26 * Description: MeasurementComputing PCI-DAS64xx, 60XX, and 4020 series 31 * Devices: [Measurement Computing] PCI-DAS6402/16 (cb_pcidas64), 32 * PCI-DAS6402/12, PCI-DAS64/M1/16, PCI-DAS64/M2/16, 33 * PCI-DAS64/M3/16, PCI-DAS6402/16/JR, PCI-DAS64/M1/16/JR, [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/exynos/ |
D | exynos5433.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <dt-bindings/clock/exynos5433.h> 17 #include <dt-bindings/interrupt-controller/arm-gic.h> 21 #address-cells = <2>; 22 #size-cells = <2>; 24 interrupt-parent = <&gic>; 27 compatible = "arm,cortex-a53-pmu"; 32 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 36 compatible = "arm,cortex-a57-pmu"; 41 interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; [all …]
|
/Linux-v5.10/include/sound/ |
D | soc-dapm.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management 15 #include <sound/soc-topology.h> 23 #define SND_SOC_NOPM -1 29 * 1. Codec domain - VREF, VMID 32 * 2. Platform/Machine domain - physically connected inputs and outputs 35 * 3. Path domain - Internal codec path mixers 38 * 4. Stream domain - DAC's and ADC's. 137 /* path domain with event - event handler must return 0 for success */ 221 .channel = wchan, SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), } [all …]
|
/Linux-v5.10/sound/soc/ |
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 32 #include <linux/clk.h> 42 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 65 /* dapm power sequences - make this per codec in the future */ 150 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked() 151 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked() 183 return !list_empty(&w->dirty); in dapm_dirty_widget() [all …]
|
/Linux-v5.10/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* cx25840 - Conexant CX25840 audio/video decoder driver 10 * - cleanup/rewrite for V4L2 API (2005) 36 #include <media/v4l2-common.h> 37 #include <media/drv-intf/cx25840.h> 39 #include "cx25840-core.h" 73 /* ----------------------------------------------------------------------- */ 107 msgs[0].addr = client->addr; in cx25840_read() 113 msgs[1].addr = client->addr; in cx25840_read() 118 if (i2c_transfer(client->adapter, msgs, 2) < 2) in cx25840_read() [all …]
|
/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|