/linux/drivers/iio/dac/ |
H A D | ad3552r.c | 55 static int ad3552r_transfer(struct ad3552r_desc *dac, u8 addr, u32 len, in ad3552r_transfer() argument 64 return spi_write_then_read(dac->spi, buf, 1, data, len); in ad3552r_transfer() 67 return spi_write_then_read(dac->spi, buf, len + 1, NULL, 0); in ad3552r_transfer() 70 static int ad3552r_write_reg(struct ad3552r_desc *dac, u8 addr, u16 val) in ad3552r_write_reg() argument 77 /* Only DAC register are 2 bytes wide */ in ad3552r_write_reg() 85 return ad3552r_transfer(dac, addr, reg_len, buf, false); in ad3552r_write_reg() 88 static int ad3552r_read_reg(struct ad3552r_desc *dac, u8 addr, u16 *val) in ad3552r_read_reg() argument 94 err = ad3552r_transfer(dac, addr, reg_len, buf, true); in ad3552r_read_reg() 108 static int ad3552r_update_reg_field(struct ad3552r_desc *dac, u8 addr, u16 mask, in ad3552r_update_reg_field() argument 114 ret = ad3552r_read_reg(dac, addr, ®); in ad3552r_update_reg_field() [all …]
|
H A D | lpc18xx_dac.c | 3 * IIO DAC driver for NXP LPC18xx DAC 24 /* LPC18XX DAC registers and bits */ 52 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_read_raw() local 57 reg = readl(dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_read_raw() 64 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw() 77 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_write_raw() local 88 mutex_lock(&dac->lock); in lpc18xx_dac_write_raw() 89 writel(reg, dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_write_raw() 90 writel(LPC18XX_DAC_CTRL_DMA_ENA, dac->base + LPC18XX_DAC_CTRL); in lpc18xx_dac_write_raw() 91 mutex_unlock(&dac->lock); in lpc18xx_dac_write_raw() [all …]
|
H A D | Kconfig | 3 # DAC drivers 21 tristate "Analog Devices AD3552R DAC High Speed driver" 39 tristate "Analog Devices AD3552R DAC driver" 52 tristate "Analog Devices AD5064 and similar multi-channel DAC driver" 66 tristate "Analog Devices AD5360/61/62/63/70/71/73 DAC driver" 71 Digital to Analog Converters (DAC). 77 tristate "Analog Devices AD5380/81/82/83/84/90/91/92 DAC driver" 84 Digital to Analog Converters (DAC). 90 tristate "Analog Devices AD5421 DAC driver" 94 digital-to-analog converters (DAC). [all …]
|
H A D | dpot-dac.c | 3 * IIO DAC emulation driver using a digital potentiometer 24 * | '---' dac output voltage 56 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_read_raw() local 62 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw() 65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw() 69 do_div(tmp, dac->max_ohms); in dpot_dac_read_raw() 70 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw() 84 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw() 85 *val2 *= dac->max_ohms; in dpot_dac_read_raw() 100 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_read_avail() local [all …]
|
H A D | stm32-dac.c | 3 * This file is part of STM32 DAC driver 22 #include "stm32-dac-core.h" 31 * struct stm32_dac - private data of DAC driver 32 * @common: reference to DAC common data 43 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_is_enabled() local 47 ret = regmap_read(dac->common->regmap, STM32_DAC_CR, &val); in stm32_dac_is_enabled() 61 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_set_enable_state() local 68 mutex_lock(&dac->lock); in stm32_dac_set_enable_state() 71 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() 78 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() [all …]
|
H A D | ad5755.c | 128 * struct ad5755_platform_data - AD5755 DAC driver platform data 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 138 * @dac.enable_voltage_overrange: Whether to enable 20% voltage output overrange. 139 * @dac.slew.enable: Whether to enable digital slew. 140 * @dac.slew.rate: Slew rate of the digital slew. 141 * @dac.slew.step_size: Slew step size of the digital slew. 158 } dac[4]; member 608 for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { in ad5755_setup_pdata() [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_lpphy.c | 1070 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 152, }, 1071 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 147, }, 1072 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 143, }, 1073 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 139, }, 1074 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 135, }, 1075 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 131, }, 1076 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 128, }, 1077 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 124, }, 1078 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 121, }, 1079 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 117, }, [all …]
|
/linux/sound/soc/codecs/ |
H A D | rt5665.c | 976 SOC_DAPM_ENUM("IF2_1 DAC Swap Source", rt5665_if2_1_dac_enum); 982 SOC_DAPM_ENUM("IF2_2 DAC Swap Source", rt5665_if2_2_dac_enum); 988 SOC_DAPM_ENUM("IF3 DAC Swap Source", rt5665_if3_dac_enum); 1309 /* DAC Digital Volume */ 1549 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER, 1551 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER, 1553 SOC_DAPM_SINGLE("DAC L2 Switch", RT5665_STO1_DAC_MIXER, 1555 SOC_DAPM_SINGLE("DAC R2 Switch", RT5665_STO1_DAC_MIXER, 1560 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER, 1562 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER, [all …]
|
H A D | rt5645.c | 824 /* DAC Digital Volume */ 829 SOC_DOUBLE_TLV("Mono DAC Playback Volume", RT5645_DAC2_DIG_VOL, 1098 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER, 1100 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_STO_DAC_MIXER, 1102 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER, 1107 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER, 1109 SOC_DAPM_SINGLE("DAC R2 Switch", RT5645_STO_DAC_MIXER, 1111 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER, 1116 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_MONO_DAC_MIXER, 1118 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_MONO_DAC_MIXER, [all …]
|
H A D | sti-sas.c | 17 /* DAC definitions */ 19 /* stih407 DAC registers */ 22 /* sysconf 5042: Audio-DAC-Control */ 25 /* DAC definitions */ 65 const struct snd_soc_dai_ops *dac_ops; /* DAC function callbacks */ 72 struct sti_dac_audio dac; member 84 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg() 96 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg() 104 * DAC and SPDIF are activated by default in sti_sas_init_sas_registers() 121 /* Init DAC configuration */ in sti_sas_init_sas_registers() [all …]
|
H A D | rt5677.c | 1008 /* DAC Digital Volume */ 1591 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix L Switch", RT5677_DD1_MIXER, 1593 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix L Switch", RT5677_DD1_MIXER, 1602 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix R Switch", RT5677_DD1_MIXER, 1604 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix R Switch", RT5677_DD1_MIXER, 1613 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix L Switch", RT5677_DD2_MIXER, 1615 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix L Switch", RT5677_DD2_MIXER, 1624 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix R Switch", RT5677_DD2_MIXER, 1626 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix R Switch", RT5677_DD2_MIXER, 1740 "IF1 DAC 01", "IF2 DAC 01", "IF3 DAC LR", "IF4 DAC LR", "SLB DAC 01", [all …]
|
H A D | ak4619.c | 46 #define DAC_IS 0x12 /* DAC Input Select Setting */ 47 #define DAC_DEMP 0x13 /* DAC De-Emphasis Setting */ 48 #define DAC_MF 0x14 /* DAC Mute & Filter Setting */ 118 /* DAC Digital Volume */ 122 /* DAC Input Select Setting */ 126 /* DAC De-Emphasis Setting */ 140 /* DAC Mute & Filter Setting */ 161 * DAC Volume 189 /* ADC & DAC Volume Level Transition Time select */ 209 /* DAC De-Emphasis Filter select */ [all …]
|
H A D | 88pm860x-codec.c | 70 /* DAC Offset Register (0xcb) */ 100 /* DAC Enable Register 2 (0xe1) */ 117 * This widget should be just after DAC & PGA in DAPM power-on sequence and 118 * before DAC & PGA in DAPM power-off sequence. 400 unsigned int dac = 0; in pm860x_dac_event() local 403 if (!snd_soc_dapm_widget_name_cmp(w, "Left DAC")) in pm860x_dac_event() 404 dac = DAC_LEFT; in pm860x_dac_event() 405 if (!snd_soc_dapm_widget_name_cmp(w, "Right DAC")) in pm860x_dac_event() 406 dac = DAC_RIGHT; in pm860x_dac_event() 409 if (dac) { in pm860x_dac_event() [all …]
|
H A D | es8316.c | 101 SOC_DOUBLE_R_TLV("DAC Playback Volume", ES8316_DAC_VOLL, 103 SOC_SINGLE("DAC Soft Ramp Switch", ES8316_DAC_SET1, 4, 1, 1), 104 SOC_SINGLE("DAC Soft Ramp Rate", ES8316_DAC_SET1, 2, 3, 0), 105 SOC_SINGLE("DAC Notch Filter Switch", ES8316_DAC_SET2, 6, 1, 0), 106 SOC_SINGLE("DAC Double Fs Switch", ES8316_DAC_SET2, 7, 1, 0), 107 SOC_SINGLE("DAC Stereo Enhancement", ES8316_DAC_SET3, 0, 7, 0), 108 SOC_SINGLE("DAC Mono Mix Switch", ES8316_DAC_SET3, 3, 1, 0), 189 SOC_DAPM_SINGLE("Left DAC Switch", ES8316_HPMIX_SWITCH, 7, 1, 0), 193 SOC_DAPM_SINGLE("Right DAC Switch", ES8316_HPMIX_SWITCH, 3, 1, 0), 196 /* DAC data source mux */ [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | st,stm32-dac.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml# 7 title: STMicroelectronics STM32 DAC 10 The STM32 DAC is a 12-bit voltage output digital-to-analog converter. The DAC 14 triggers for conversions. The DAC's output buffer allows a high drive output 23 - st,stm32f4-dac-core 24 - st,stm32h7-dac-core 64 "^dac@[1-2]+$": 67 A DAC block node should contain at least one subnode, representing an 68 DAC instance/channel available on the machine. 72 const: st,stm32-dac [all …]
|
H A D | adi,ltc2672.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# 7 title: Analog Devices LTC2672 DAC 14 Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC 35 description: Positive Supply Voltage Input for DAC OUT0. 38 description: Positive Supply Voltage Input for DAC OUT1. 41 description: Positive Supply Voltage Input for DAC OUT2. 44 description: Positive Supply Voltage Input for DAC OUT3. 47 description: Positive Supply Voltage Input for DAC OUT4. 90 $ref: dac.yaml 96 description: The channel number representing the DAC output channel. [all …]
|
H A D | nxp,lpc1850-dac.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/nxp,lpc1850-dac.yaml# 7 title: NXP LPC1850 DAC 13 Supports the DAC found on the LPC1850 SoC. 17 const: nxp,lpc1850-dac 49 dac: dac@400e1000 { 50 compatible = "nxp,lpc1850-dac";
|
H A D | fsl,vf610-dac.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml# 14 const: fsl,vf610-dac 26 const: dac 47 dac@400cc000 { 48 compatible = "fsl,vf610-dac"; 51 clock-names = "dac";
|
H A D | dpot-dac.yaml | 4 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml# 7 title: DAC emulation using a digital potentiometer 26 | '---' dac output voltage 32 const: dpot-dac 58 dac { 59 compatible = "dpot-dac";
|
/linux/sound/spi/ |
H A D | at73c213.h | 3 * Driver for the AT73C213 16-bit stereo DAC on Atmel ATSTK1000 11 /* DAC control register */ 22 /* DAC left line in gain register */ 26 /* DAC right line in gain register */ 30 /* DAC Left Master Playback Gain Register */ 34 /* DAC Right Master Playback Gain Register */ 38 /* DAC Left Line Out Gain Register */ 42 /* DAC Right Line Out Gain Register */ 46 /* DAC Output Level Control Register */ 53 /* DAC Mixer Control Register */ [all …]
|
/linux/drivers/leds/ |
H A D | leds-dac124s085.c | 6 * LED driver for the DAC124S085 SPI DAC 52 struct dac124s085 *dac; in dac124s085_probe() local 56 dac = devm_kzalloc(&spi->dev, sizeof(*dac), GFP_KERNEL); in dac124s085_probe() 57 if (!dac) in dac124s085_probe() 62 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { in dac124s085_probe() 63 led = dac->leds + i; in dac124s085_probe() 77 spi_set_drvdata(spi, dac); in dac124s085_probe() 83 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_probe() 90 struct dac124s085 *dac = spi_get_drvdata(spi); in dac124s085_remove() local 93 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) in dac124s085_remove() [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | envelope-detector.yaml | 7 title: ADC envelope detector using a DAC and a comparator 13 The DAC is used to find the peak level of an alternating voltage input 22 | dac|-->--|- / | 36 description: Channel node of the dac to be used for comparator input. 39 const: dac 69 dac: dac { 70 compatible = "dpot-dac"; 79 io-channels = <&dac 0>; 80 io-channel-names = "dac";
|
/linux/drivers/iio/adc/ |
H A D | envelope-detector.c | 3 * Driver for an envelope detector using a DAC and a comparator 11 * The DAC is used to find the peak level of an alternating voltage input 20 * | dac|-->--|- / | 55 struct iio_channel *dac; member 133 * when that level is "trapped" between two adjacent DAC in envelope_detector_setup_compare() 148 /* Set a "safe" DAC level (if there is such a thing)... */ in envelope_detector_setup_compare() 149 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare() 156 /* ...set the real DAC level... */ in envelope_detector_setup_compare() 157 ret = iio_write_channel_raw(env->dac, env->level); in envelope_detector_setup_compare() 202 * in the same range as the DAC and is a value that has not in envelope_detector_read_raw() [all …]
|
/linux/include/linux/spi/ |
H A D | at73c213.h | 3 * Board-specific data used to set up AT73c213 audio DAC driver. 10 * at73c213_board_info - how the external DAC is wired to the device. 12 * @ssc_id: SSC platform_driver id the DAC shall use to stream the audio. 13 * @dac_clk: the external clock used to provide master clock to the DAC. 14 * @shortname: a short discription for the DAC, seen by userspace tools. 17 * external DAC. The DAC needs a master clock and a I2S audio stream. It also
|
/linux/include/sound/ac97/ |
H A D | regs.h | 36 #define AC97_PCM_FRONT_DAC_RATE 0x2c /* PCM Front DAC Rate */ 37 #define AC97_PCM_SURR_DAC_RATE 0x2e /* PCM Surround DAC Rate */ 38 #define AC97_PCM_LFE_DAC_RATE 0x30 /* PCM LFE DAC Rate */ 47 #define AC97_LINE1_RATE 0x40 /* Line1 DAC/ADC Rate */ 48 #define AC97_LINE2_RATE 0x42 /* Line2 DAC/ADC Rate */ 49 #define AC97_HANDSET_RATE 0x44 /* Handset DAC/ADC Rate */ 50 #define AC97_LINE1_LEVEL 0x46 /* Line1 DAC/ADC Level */ 51 #define AC97_LINE2_LEVEL 0x48 /* Line2 DAC/ADC Level */ 52 #define AC97_HANDSET_LEVEL 0x4a /* Handset DAC/ADC Level */ 108 #define AC97_BC_16BIT_DAC 0x0000 /* 16-bit DAC resolution */ [all …]
|