| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/pwm/ |
| D | microchip,corepwm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Conor Dooley <conor.dooley@microchip.com> 16 https://www.microsemi.com/existing-parts/parts/152118 19 - $ref: pwm.yaml# 24 - const: microchip,corepwm-rtl-v4 32 "#pwm-cells": 37 microchip,sync-update-mask: 40 In synchronous mode, all channels are updated at the beginning of the PWM period, [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/dac/ |
| D | ad5755.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AD5755, AD5755-1, AD5757, AD5735, AD5737 Digital to analog converters driver 128 * struct ad5755_platform_data - AD5755 DAC driver platform data 129 * @ext_dc_dc_compenstation_resistor: Whether an external DC-DC converter 131 * @dc_dc_phase: DC-DC converter phase. 132 * @dc_dc_freq: DC-DC converter frequency. 133 * @dc_dc_maxv: DC-DC maximum allowed boost voltage. 134 * @dac: Per DAC instance parameters. 135 * @dac.mode: The mode to be used for the DAC output. 136 * @dac.ext_current_sense_resistor: Whether an external current sense resistor [all …]
|
| D | vf610_dac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Freescale Vybrid vf610 DAC driver 47 info->conv_mode = VF610_DAC_CONV_LOW_POWER; in vf610_dac_init() 50 writel(val, info->regs + VF610_DACx_STATCTRL); in vf610_dac_init() 57 val = readl(info->regs + VF610_DACx_STATCTRL); in vf610_dac_exit() 59 writel(val, info->regs + VF610_DACx_STATCTRL); in vf610_dac_exit() 64 unsigned int mode) in vf610_set_conversion_mode() argument 69 mutex_lock(&info->lock); in vf610_set_conversion_mode() 70 info->conv_mode = mode; in vf610_set_conversion_mode() 71 val = readl(info->regs + VF610_DACx_STATCTRL); in vf610_set_conversion_mode() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 59 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 71 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 81 return -EIO; in twl4030_read() 90 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 108 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 112 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 116 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
| D | pcm3168a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 51 /* ADC/DAC side parameters */ 100 "DAC 1/2/3/4 AND", "DAC 1/2/3/4 OR", "DAC 1/2/3 AND", 101 "DAC 1/2/3 OR", "DAC 4 AND", "DAC 4 OR" }; 111 static const char *const pcm3168a_con[] = { "Differential", "Single-Ended" }; 129 /* -100db to 0db, register values 0-54 cause mute */ 130 static const DECLARE_TLV_DB_SCALE(pcm3168a_dac_tlv, -10050, 50, 1); 132 /* -100db to 20db, register values 0-14 cause mute */ 133 static const DECLARE_TLV_DB_SCALE(pcm3168a_adc_tlv, -10050, 50, 1); 136 SOC_SINGLE("DAC Power-Save Switch", PCM3168A_DAC_PWR_MST_FMT, [all …]
|
| D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 31 #include <linux/mfd/abx500/ab8500-sysctrl.h> 32 #include <linux/mfd/abx500/ab8500-codec.h> 41 #include <sound/soc-dapm.h> 44 #include "ab8500-codec.h" 58 /* Nr of FIR/IIR-coeff banks in ANC-block */ 123 /* Private data for AB8500 device-driver */ [all …]
|
| D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 26 /* In slave mode at single speed, the codec is documented as accepting 5 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), [all …]
|
| D | tlv320aic31xx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2017 Texas Instruments Incorporated - https://www.ti.com/ 10 * The TLV320AIC31xx series of audio codecs are low-power, highly integrated 11 * high performance codecs which provides a stereo DAC, a mono ADC, 12 * and mono/stereo Class-D speaker driver. 34 #include <dt-bindings/sound/tlv320aic31xx-micbias.h> 177 u8 ocmv; /* output common-mode voltage */ 287 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6350, 50, 0); 289 static const DECLARE_TLV_DB_SCALE(adc_cgain_tlv, -2000, 50, 0); 293 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -6350, 50, 0); [all …]
|
| D | ssm2602.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 46 *(Mask value to extract the corresponding Register field) 59 /*Left DAC Volume Control (SSM2602_REG_LEFT_DAC_VOL)*/ 64 /*Right DAC Volume Control (SSM2602_REG_RIGHT_DAC_VOL)*/ 74 #define APANA_SELECT_DAC 0x010 /* Select DAC (1=Select DAC, 0=Don't Select DAC) … 81 #define APDIGI_DE_EMPHASIS 0x006 /* De-Emphasis Control … 82 #define APDIGI_ENABLE_DAC_MUTE 0x008 /* DAC Mute Control … 91 #define PWR_DAC_PDN 0x008 /* DAC Power Down … 95 #define PWR_POWER_OFF 0x080 /* POWEROFF Mode … 101 #define IFACE_DAC_LR_SWAP 0x020 /* Swap DAC data control … [all …]
|
| D | cs42l51.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Based on cs4270.c - Copyright (c) Freescale Semiconductor 12 * - Only I2C is support. Not SPI 13 * - master mode *NOT* supported 47 unsigned int audio_mode; /* The mode (I2S or left-justified) */ 69 ucontrol->value.enumerated.item[0] = 0; in cs42l51_get_chan_mix() 74 ucontrol->value.enumerated.item[0] = 1; in cs42l51_get_chan_mix() 77 ucontrol->value.enumerated.item[0] = 2; in cs42l51_get_chan_mix() 94 switch (ucontrol->value.enumerated.item[0]) { in cs42l51_set_chan_mix() 112 static const DECLARE_TLV_DB_SCALE(adc_pcm_tlv, -5150, 50, 0); [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 89 return -EIO; in twl4030_read() 98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 124 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 128 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
| D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 29 #include <linux/mfd/abx500/ab8500-sysctrl.h> 30 #include <linux/mfd/abx500/ab8500-codec.h> 39 #include <sound/soc-dapm.h> 42 #include "ab8500-codec.h" 56 /* Nr of FIR/IIR-coeff banks in ANC-block */ 114 /* Private data for AB8500 device-driver */ [all …]
|
| D | pcm3168a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 /* ADC/DAC side parameters */ 98 "DAC 1/2/3/4 AND", "DAC 1/2/3/4 OR", "DAC 1/2/3 AND", 99 "DAC 1/2/3 OR", "DAC 4 AND", "DAC 4 OR" }; 109 static const char *const pcm3168a_con[] = { "Differential", "Single-Ended" }; 127 /* -100db to 0db, register values 0-54 cause mute */ 128 static const DECLARE_TLV_DB_SCALE(pcm3168a_dac_tlv, -10050, 50, 1); 130 /* -100db to 20db, register values 0-14 cause mute */ 131 static const DECLARE_TLV_DB_SCALE(pcm3168a_adc_tlv, -10050, 50, 1); 134 SOC_SINGLE("DAC Power-Save Switch", PCM3168A_DAC_PWR_MST_FMT, [all …]
|
| D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 26 /* In slave mode at single speed, the codec is documented as accepting 5 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), [all …]
|
| D | ssm2602.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 46 *(Mask value to extract the corresponding Register field) 59 /*Left DAC Volume Control (SSM2602_REG_LEFT_DAC_VOL)*/ 64 /*Right DAC Volume Control (SSM2602_REG_RIGHT_DAC_VOL)*/ 74 #define APANA_SELECT_DAC 0x010 /* Select DAC (1=Select DAC, 0=Don't Select DAC) … 81 #define APDIGI_DE_EMPHASIS 0x006 /* De-Emphasis Control … 82 #define APDIGI_ENABLE_DAC_MUTE 0x008 /* DAC Mute Control … 91 #define PWR_DAC_PDN 0x008 /* DAC Power Down … 95 #define PWR_POWER_OFF 0x080 /* POWEROFF Mode … 101 #define IFACE_DAC_LR_SWAP 0x020 /* Swap DAC data control … [all …]
|
| D | tlv320aic31xx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2017 Texas Instruments Incorporated - https://www.ti.com/ 10 * The TLV320AIC31xx series of audio codecs are low-power, highly integrated 11 * high performance codecs which provides a stereo DAC, a mono ADC, 12 * and mono/stereo Class-D speaker driver. 35 #include <dt-bindings/sound/tlv320aic31xx.h> 179 u8 ocmv; /* output common-mode voltage */ 310 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6350, 50, 0); 312 static const DECLARE_TLV_DB_SCALE(adc_cgain_tlv, -2000, 50, 0); 316 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -6350, 50, 0); [all …]
|
| D | adau17x1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2011-2014 Analog Devices Inc. 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 26 #include "adau-utils.h" 48 static const DECLARE_TLV_DB_MINMAX(adau17x1_digital_tlv, -9563, 0); 60 SOC_SINGLE("Playback De-emphasis Switch", ADAU17X1_DAC_CONTROL0, 65 SOC_ENUM("Mic Bias Mode", adau17x1_mic_bias_mode_enum), 74 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in adau17x1_pll_event() 78 adau->pll_regs[5] = 1; in adau17x1_pll_event() 80 adau->pll_regs[5] = 0; in adau17x1_pll_event() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/dac/ |
| D | ad5755.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AD5755, AD5755-1, AD5757, AD5735, AD5737 Digital to analog converters driver 67 * struct ad5755_chip_info - chip specific information 79 * struct ad5755_state - driver instance specific data 164 st->data[0].d32 = cpu_to_be32((reg << 16) | val); in ad5755_write_unlocked() 166 return spi_write(st->spi, &st->data[0].d8[1], 3); in ad5755_write_unlocked() 182 mutex_lock(&st->lock); in ad5755_write() 184 mutex_unlock(&st->lock); in ad5755_write() 195 mutex_lock(&st->lock); in ad5755_write_ctrl() 197 mutex_unlock(&st->lock); in ad5755_write_ctrl() [all …]
|
| D | vf610_dac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Freescale Vybrid vf610 DAC driver 46 info->conv_mode = VF610_DAC_CONV_LOW_POWER; in vf610_dac_init() 49 writel(val, info->regs + VF610_DACx_STATCTRL); in vf610_dac_init() 56 val = readl(info->regs + VF610_DACx_STATCTRL); in vf610_dac_exit() 58 writel(val, info->regs + VF610_DACx_STATCTRL); in vf610_dac_exit() 63 unsigned int mode) in vf610_set_conversion_mode() argument 68 mutex_lock(&info->lock); in vf610_set_conversion_mode() 69 info->conv_mode = mode; in vf610_set_conversion_mode() 70 val = readl(info->regs + VF610_DACx_STATCTRL); in vf610_set_conversion_mode() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ice1712/ |
| D | maya44.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write() 86 wm->regs[reg] = val; in wm8776_write() 90 * update the given register with and/or mask and save the data to the cache 94 unsigned short mask, unsigned short val) in wm8776_write_bits() argument 96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 97 if (val != wm->regs[reg]) { in wm8776_write_bits() 112 unsigned short mask; /* value mask */ member 113 unsigned short offset; /* zero-value offset */ 123 .mask = 0x7f, [all …]
|
| /kernel/linux/linux-6.6/sound/pci/ice1712/ |
| D | maya44.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write() 86 wm->regs[reg] = val; in wm8776_write() 90 * update the given register with and/or mask and save the data to the cache 94 unsigned short mask, unsigned short val) in wm8776_write_bits() argument 96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 97 if (val != wm->regs[reg]) { in wm8776_write_bits() 112 unsigned short mask; /* value mask */ member 113 unsigned short offset; /* zero-value offset */ 123 .mask = 0x7f, [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
| D | s626.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 69 * struct s626_private - Working data for s626 driver. 70 * @ai_cmd_running: non-zero if ai_cmd is running. 74 * @counter_int_enabs: counter interrupt enable mask for MISC2 register. 77 * @ana_buf: DMA buffer used to receive ADC data and hold DAC data. 78 * @dac_wbuf: pointer to logical adrs of DMA buffer used to hold DAC data. 79 * @dacpol: image of DAC polarity register. 99 #define S626_INDXMASK(C) (1 << (((C) > 2) ? ((C) * 2 - 1) : ((C) * 2 + 4))) [all …]
|
| /kernel/linux/linux-6.6/drivers/comedi/drivers/ |
| D | s626.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 68 * struct s626_private - Working data for s626 driver. 69 * @ai_cmd_running: non-zero if ai_cmd is running. 73 * @counter_int_enabs: counter interrupt enable mask for MISC2 register. 76 * @ana_buf: DMA buffer used to receive ADC data and hold DAC data. 77 * @dac_wbuf: pointer to logical adrs of DMA buffer used to hold DAC data. 78 * @dacpol: image of DAC polarity register. 98 #define S626_INDXMASK(C) (1 << (((C) > 2) ? ((C) * 2 - 1) : ((C) * 2 + 4))) [all …]
|
| /kernel/linux/linux-5.10/include/video/ |
| D | sstfb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/drivers/video/sstfb.h -- voodoo graphics frame buffer 105 # define LFB_WORD_SWIZZLE_WR BIT(11) /* enable write-wordswap (big-endian) */ 106 # define LFB_BYTE_SWIZZLE_WR BIT(12) /* enable write-byteswap (big-endian) */ 108 # define LFB_WORD_SWIZZLE_RD BIT(15) /* enable read-wordswap (big-endian) */ 109 # define LFB_BYTE_SWIZZLE_RD BIT(16) /* enable read-byteswap (big-endian) */ 157 #define DAC_READ FBIINIT2 /* in remap mode */ 164 # define DAC_READ_CMD BIT(11) /* set read dacreg mode */ 166 # define FBIINIT5_MASK 0xfa40ffff /* mask video bits*/ 191 #define BLTCOMMAND 0x02f8 /* BitBLT command mode (v2 specific) */ [all …]
|
| /kernel/linux/linux-6.6/include/video/ |
| D | sstfb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/drivers/video/sstfb.h -- voodoo graphics frame buffer 105 # define LFB_WORD_SWIZZLE_WR BIT(11) /* enable write-wordswap (big-endian) */ 106 # define LFB_BYTE_SWIZZLE_WR BIT(12) /* enable write-byteswap (big-endian) */ 108 # define LFB_WORD_SWIZZLE_RD BIT(15) /* enable read-wordswap (big-endian) */ 109 # define LFB_BYTE_SWIZZLE_RD BIT(16) /* enable read-byteswap (big-endian) */ 157 #define DAC_READ FBIINIT2 /* in remap mode */ 164 # define DAC_READ_CMD BIT(11) /* set read dacreg mode */ 166 # define FBIINIT5_MASK 0xfa40ffff /* mask video bits*/ 191 #define BLTCOMMAND 0x02f8 /* BitBLT command mode (v2 specific) */ [all …]
|