Home
last modified time | relevance | path

Searched full:dac (Results 1 – 25 of 1039) sorted by relevance

12345678910>>...42

/openbmc/linux/sound/soc/img/
H A Dpistachio-internal-dac.c3 * Pistachio internal dac driver
53 SND_SOC_DAPM_DAC("DAC", "Playback", SND_SOC_NOPM, 0, 0),
59 { "AOUTL", NULL, "DAC" },
60 { "AOUTR", NULL, "DAC" },
82 static void pistachio_internal_dac_pwr_off(struct pistachio_internal_dac *dac) in pistachio_internal_dac_pwr_off() argument
84 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_CTRL, in pistachio_internal_dac_pwr_off()
88 pistachio_internal_dac_reg_writel(dac->regmap, 0, in pistachio_internal_dac_pwr_off()
92 static void pistachio_internal_dac_pwr_on(struct pistachio_internal_dac *dac) in pistachio_internal_dac_pwr_on() argument
94 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_SRST, in pistachio_internal_dac_pwr_on()
98 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_SRST, in pistachio_internal_dac_pwr_on()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dtables_lpphy.c1070 { .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 …]
/openbmc/linux/drivers/iio/dac/
H A Dlpc18xx_dac.c3 * 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 Dad3552r.c226 /* DAC powerdown */
228 /* DAC amplifier powerdown */
247 /* Channel select. When set allow Input -> DAC and Mask -> DAC */
339 static int ad3552r_transfer(struct ad3552r_desc *dac, u8 addr, u32 len, in ad3552r_transfer() argument
348 return spi_write_then_read(dac->spi, buf, 1, data, len); in ad3552r_transfer()
351 return spi_write_then_read(dac->spi, buf, len + 1, NULL, 0); in ad3552r_transfer()
354 static int ad3552r_write_reg(struct ad3552r_desc *dac, u8 addr, u16 val) in ad3552r_write_reg() argument
361 /* Only DAC register are 2 bytes wide */ in ad3552r_write_reg()
369 return ad3552r_transfer(dac, addr, reg_len, buf, false); in ad3552r_write_reg()
372 static int ad3552r_read_reg(struct ad3552r_desc *dac, u8 addr, u16 *val) in ad3552r_read_reg() argument
[all …]
H A DKconfig3 # DAC drivers
10 tristate "Analog Devices AD3552R DAC driver"
22 tristate "Analog Devices AD5064 and similar multi-channel DAC driver"
36 tristate "Analog Devices AD5360/61/62/63/70/71/73 DAC driver"
41 Digital to Analog Converters (DAC).
47 tristate "Analog Devices AD5380/81/82/83/84/90/91/92 DAC driver"
54 Digital to Analog Converters (DAC).
60 tristate "Analog Devices AD5421 DAC driver"
64 digital-to-analog convertors (DAC).
96 tristate "Analog Devices AD5592R ADC/DAC driver"
[all …]
H A Ddpot-dac.c3 * 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 Dstm32-dac.c3 * This file is part of STM32 DAC driver
21 #include "stm32-dac-core.h"
30 * struct stm32_dac - private data of DAC driver
31 * @common: reference to DAC common data
42 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_is_enabled() local
46 ret = regmap_read(dac->common->regmap, STM32_DAC_CR, &val); in stm32_dac_is_enabled()
60 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_set_enable_state() local
67 mutex_lock(&dac->lock); in stm32_dac_set_enable_state()
70 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
77 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Drk817_codec.c144 SND_SOC_DAPM_SUPPLY("DAC Clock", RK817_CODEC_DTOP_DIGEN_CLKE, 3, 0, NULL, 0),
146 SND_SOC_DAPM_SUPPLY("DAC Channel Enable", RK817_CODEC_DTOP_DIGEN_CLKE, 1, 0, NULL, 0),
148 SND_SOC_DAPM_SUPPLY("DAC Bias", RK817_CODEC_ADAC_CFG1, 3, 1, NULL, 0),
149 SND_SOC_DAPM_SUPPLY("DAC Mute Off", RK817_CODEC_DDAC_MUTE_MIXCTL, 0, 1, NULL, 0),
154 SND_SOC_DAPM_DAC("SPK DAC", "Playback", RK817_CODEC_ADAC_CFG1, 2, 1),
169 SND_SOC_DAPM_DAC("DAC L", "Playback", RK817_CODEC_ADAC_CFG1, 1, 1),
170 SND_SOC_DAPM_DAC("DAC R", "Playback", RK817_CODEC_ADAC_CFG1, 0, 1),
224 {"SPK DAC", NULL, "LDO Regulator"},
225 {"SPK DAC", NULL, "IBIAS Block"},
226 {"SPK DAC", NULL, "VAvg Buffer"},
[all …]
H A Drt5665.c979 SOC_DAPM_ENUM("IF2_1 DAC Swap Source", rt5665_if2_1_dac_enum);
985 SOC_DAPM_ENUM("IF2_2 DAC Swap Source", rt5665_if2_2_dac_enum);
991 SOC_DAPM_ENUM("IF3 DAC Swap Source", rt5665_if3_dac_enum);
1408 /* DAC Digital Volume */
1648 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER,
1650 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER,
1652 SOC_DAPM_SINGLE("DAC L2 Switch", RT5665_STO1_DAC_MIXER,
1654 SOC_DAPM_SINGLE("DAC R2 Switch", RT5665_STO1_DAC_MIXER,
1659 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER,
1661 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER,
[all …]
H A Drt5659.c1186 SOC_DAPM_ENUM("IF2 DAC Swap Source", rt5659_if2_dac_enum);
1192 SOC_DAPM_ENUM("IF3 DAC Swap Source", rt5659_if3_dac_enum);
1496 /* DAC Digital Volume */
1548 SOC_SINGLE("DAC IF1 DAC1 L Data Switch", RT5659_TDM_CTRL_4, 12, 7, 0),
1549 SOC_SINGLE("DAC IF1 DAC1 R Data Switch", RT5659_TDM_CTRL_4, 8, 7, 0),
1550 SOC_SINGLE("DAC IF1 DAC2 L Data Switch", RT5659_TDM_CTRL_4, 4, 7, 0),
1551 SOC_SINGLE("DAC IF1 DAC2 R Data Switch", RT5659_TDM_CTRL_4, 0, 7, 0),
1763 SOC_DAPM_SINGLE("DAC L1 Switch", RT5659_STO_DAC_MIXER,
1765 SOC_DAPM_SINGLE("DAC R1 Switch", RT5659_STO_DAC_MIXER,
1767 SOC_DAPM_SINGLE("DAC L2 Switch", RT5659_STO_DAC_MIXER,
[all …]
H A Drt5670.c690 /* DAC Digital Volume */
698 SOC_DOUBLE_TLV("Mono DAC Playback Volume", RT5670_DAC2_DIG_VOL,
731 SOC_ENUM("DAC IF2 Data Switch", rt5670_if2_dac_enum),
1005 SOC_DAPM_SINGLE("DAC L1 Switch", RT5670_STO_DAC_MIXER,
1007 SOC_DAPM_SINGLE("DAC L2 Switch", RT5670_STO_DAC_MIXER,
1009 SOC_DAPM_SINGLE("DAC R1 Switch", RT5670_STO_DAC_MIXER,
1014 SOC_DAPM_SINGLE("DAC R1 Switch", RT5670_STO_DAC_MIXER,
1016 SOC_DAPM_SINGLE("DAC R2 Switch", RT5670_STO_DAC_MIXER,
1018 SOC_DAPM_SINGLE("DAC L1 Switch", RT5670_STO_DAC_MIXER,
1023 SOC_DAPM_SINGLE("DAC L1 Switch", RT5670_DD_MIXER,
[all …]
H A Drt5640.c399 /* DAC Digital Volume */
439 SOC_ENUM("DAC IF1 Data Switch", rt5640_if1_dac_enum),
441 SOC_ENUM("DAC IF2 Data Switch", rt5640_if2_dac_enum),
532 SOC_DAPM_SINGLE("DAC L1 Switch", RT5640_STO_DAC_MIXER,
534 SOC_DAPM_SINGLE("DAC L2 Switch", RT5640_STO_DAC_MIXER,
541 SOC_DAPM_SINGLE("DAC R1 Switch", RT5640_STO_DAC_MIXER,
543 SOC_DAPM_SINGLE("DAC R2 Switch", RT5640_STO_DAC_MIXER,
550 SOC_DAPM_SINGLE("DAC L1 Switch", RT5640_STO_DAC_MIXER,
552 SOC_DAPM_SINGLE("DAC L2 Switch", RT5640_STO_DAC_MIXER,
557 SOC_DAPM_SINGLE("DAC R1 Switch", RT5640_STO_DAC_MIXER,
[all …]
H A Drt5645.c820 /* DAC Digital Volume */
825 SOC_DOUBLE_TLV("Mono DAC Playback Volume", RT5645_DAC2_DIG_VOL,
1094 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER,
1096 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_STO_DAC_MIXER,
1098 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER,
1103 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER,
1105 SOC_DAPM_SINGLE("DAC R2 Switch", RT5645_STO_DAC_MIXER,
1107 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER,
1112 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_MONO_DAC_MIXER,
1114 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_MONO_DAC_MIXER,
[all …]
H A Drt5651.c322 /* DAC Digital Volume */
328 SOC_DOUBLE_TLV("Mono DAC Playback Volume", RT5651_DAC2_DIG_VOL,
365 SOC_ENUM("DAC IF2 Data Switch", rt5651_if2_dac_enum),
439 SOC_DAPM_SINGLE("DAC L1 Switch", RT5651_STO_DAC_MIXER,
441 SOC_DAPM_SINGLE("DAC L2 Switch", RT5651_STO_DAC_MIXER,
443 SOC_DAPM_SINGLE("DAC R1 Switch", RT5651_STO_DAC_MIXER,
448 SOC_DAPM_SINGLE("DAC R1 Switch", RT5651_STO_DAC_MIXER,
450 SOC_DAPM_SINGLE("DAC R2 Switch", RT5651_STO_DAC_MIXER,
452 SOC_DAPM_SINGLE("DAC L1 Switch", RT5651_STO_DAC_MIXER,
457 SOC_DAPM_SINGLE("DAC L1 Switch", RT5651_DD_MIXER,
[all …]
H A Dsti-sas.c17 /* 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 */
76 struct sti_dac_audio dac; member
88 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
100 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
108 * DAC and SPDIF are activated by default in sti_sas_init_sas_registers()
125 /* Init DAC configuration */ in sti_sas_init_sas_registers()
[all …]
H A Drt5677.c1008 /* 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 Drt5660.c315 /* DAC Digital Volume */
412 SOC_DAPM_SINGLE("DAC L1 Switch", RT5660_STO_DAC_MIXER,
414 SOC_DAPM_SINGLE("DAC R1 Switch", RT5660_STO_DAC_MIXER,
419 SOC_DAPM_SINGLE("DAC R1 Switch", RT5660_STO_DAC_MIXER,
421 SOC_DAPM_SINGLE("DAC L1 Switch", RT5660_STO_DAC_MIXER,
501 SOC_DAPM_SINGLE("DAC Switch", RT5660_LOUT_MIXER,
531 SOC_DAPM_ENUM("IF1 DAC Swap Source", rt5660_if1_dac_enum);
631 SND_SOC_DAPM_PGA("IF1 DAC", SND_SOC_NOPM, 0, 0, NULL, 0),
632 SND_SOC_DAPM_PGA("IF1 DAC L", SND_SOC_NOPM, 0, 0, NULL, 0),
633 SND_SOC_DAPM_PGA("IF1 DAC R", SND_SOC_NOPM, 0, 0, NULL, 0),
[all …]
H A Drt5616.c320 /* DAC Digital Volume */
385 SOC_DAPM_SINGLE("DAC L1 Switch", RT5616_STO_DAC_MIXER,
387 SOC_DAPM_SINGLE("DAC R1 Switch", RT5616_STO_DAC_MIXER,
392 SOC_DAPM_SINGLE("DAC R1 Switch", RT5616_STO_DAC_MIXER,
394 SOC_DAPM_SINGLE("DAC L1 Switch", RT5616_STO_DAC_MIXER,
428 SOC_DAPM_SINGLE("DAC L1 Switch", RT5616_OUT_L3_MIXER,
441 SOC_DAPM_SINGLE("DAC R1 Switch", RT5616_OUT_R3_MIXER,
453 SOC_DAPM_SINGLE("DAC L1 Switch", RT5616_LOUT_MIXER,
455 SOC_DAPM_SINGLE("DAC R1 Switch", RT5616_LOUT_MIXER,
758 SND_SOC_DAPM_PGA("IF1 DAC", SND_SOC_NOPM, 0, 0, NULL, 0),
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/dac/
H A Dst,stm32-dac.yaml4 $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
60 "^dac@[1-2]+$":
63 A DAC block node should contain at least one subnode, representing an
64 DAC instance/channel available on the machine.
68 const: st,stm32-dac
[all …]
H A Dnxp,lpc1850-dac.yaml4 $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";
/openbmc/linux/sound/spi/
H A Dat73c213.h3 * 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 …]
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/
H A Dtve.h37 u32 unknown1; /* 0x024, seems to be 1 byte per dac */
71 * Select input 0 to disable dac, 1 - 4 to feed dac from tve0, 5 - 8 to feed
72 * dac from tve1. When using tve1 the mux value must be written to both tve0's
75 #define SUNXI_TVE_GCTRL_DAC_INPUT_MASK(dac) (0xf << (((dac) + 1) * 4)) argument
76 #define SUNXI_TVE_GCTRL_DAC_INPUT(dac, sel) ((sel) << (((dac) + 1) * 4)) argument
97 #define SUNXI_TVE_AUTO_DETECT_EN_DET_EN(dac) (1 << ((dac) + 0)) argument
98 #define SUNXI_TVE_AUTO_DETECT_EN_INT_EN(dac) (1 << ((dac) + 16)) argument
99 #define SUNXI_TVE_AUTO_DETECT_INT_STATUS(dac) (1 << ((dac) + 0)) argument
100 #define SUNXI_TVE_AUTO_DETECT_STATUS_SHIFT(dac) ((dac) * 8) argument
101 #define SUNXI_TVE_AUTO_DETECT_STATUS_MASK(dac) (3 << ((dac) * 8)) argument
/openbmc/linux/drivers/leds/
H A Dleds-dac124s085.c6 * 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 …]
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/
H A Denvelope-detector.yaml7 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";
/openbmc/linux/sound/soc/meson/
H A Dt9015.c130 SOC_DAPM_ENUM("Right DAC Source", dacr_in_enum);
132 SOC_DAPM_ENUM("Left DAC Source", dacl_in_enum);
137 SND_SOC_DAPM_MUX("Right DAC Sel", SND_SOC_NOPM, 0, 0,
139 SND_SOC_DAPM_MUX("Left DAC Sel", SND_SOC_NOPM, 0, 0,
141 SND_SOC_DAPM_DAC("Right DAC", NULL, BLOCK_EN, DACR_EN, 0),
142 SND_SOC_DAPM_DAC("Left DAC", NULL, BLOCK_EN, DACL_EN, 0),
160 { "Right DAC Sel", "Right", "Right IN" },
161 { "Right DAC Sel", "Left", "Left IN" },
162 { "Left DAC Sel", "Right", "Right IN" },
163 { "Left DAC Sel", "Left", "Left IN" },
[all …]

12345678910>>...42