Home
last modified time | relevance | path

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

12345678910>>...39

/Linux-v6.1/drivers/net/wireless/broadcom/b43/
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 …]
/Linux-v6.1/sound/soc/img/
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 …]
/Linux-v6.1/drivers/iio/dac/
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 …]
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 …]
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 …]
DKconfig3 # DAC drivers
10 tristate "Analog Devices AD3552R DAC driver"
20 tristate "Analog Devices AD5064 and similar multi-channel DAC driver"
34 tristate "Analog Devices AD5360/61/62/63/70/71/73 DAC driver"
39 Digital to Analog Converters (DAC).
45 tristate "Analog Devices AD5380/81/82/83/84/90/91/92 DAC driver"
52 Digital to Analog Converters (DAC).
58 tristate "Analog Devices AD5421 DAC driver"
62 digital-to-analog convertors (DAC).
94 tristate "Analog Devices AD5592R ADC/DAC driver"
[all …]
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 …]
/Linux-v6.1/sound/soc/codecs/
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 …]
Drt5665.c980 SOC_DAPM_ENUM("IF2_1 DAC Swap Source", rt5665_if2_1_dac_enum);
986 SOC_DAPM_ENUM("IF2_2 DAC Swap Source", rt5665_if2_2_dac_enum);
992 SOC_DAPM_ENUM("IF3 DAC Swap Source", rt5665_if3_dac_enum);
1409 /* DAC Digital Volume */
1649 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER,
1651 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER,
1653 SOC_DAPM_SINGLE("DAC L2 Switch", RT5665_STO1_DAC_MIXER,
1655 SOC_DAPM_SINGLE("DAC R2 Switch", RT5665_STO1_DAC_MIXER,
1660 SOC_DAPM_SINGLE("DAC L1 Switch", RT5665_STO1_DAC_MIXER,
1662 SOC_DAPM_SINGLE("DAC R1 Switch", RT5665_STO1_DAC_MIXER,
[all …]
Drt5659.c1187 SOC_DAPM_ENUM("IF2 DAC Swap Source", rt5659_if2_dac_enum);
1193 SOC_DAPM_ENUM("IF3 DAC Swap Source", rt5659_if3_dac_enum);
1497 /* DAC Digital Volume */
1549 SOC_SINGLE("DAC IF1 DAC1 L Data Switch", RT5659_TDM_CTRL_4, 12, 7, 0),
1550 SOC_SINGLE("DAC IF1 DAC1 R Data Switch", RT5659_TDM_CTRL_4, 8, 7, 0),
1551 SOC_SINGLE("DAC IF1 DAC2 L Data Switch", RT5659_TDM_CTRL_4, 4, 7, 0),
1552 SOC_SINGLE("DAC IF1 DAC2 R Data Switch", RT5659_TDM_CTRL_4, 0, 7, 0),
1764 SOC_DAPM_SINGLE("DAC L1 Switch", RT5659_STO_DAC_MIXER,
1766 SOC_DAPM_SINGLE("DAC R1 Switch", RT5659_STO_DAC_MIXER,
1768 SOC_DAPM_SINGLE("DAC L2 Switch", RT5659_STO_DAC_MIXER,
[all …]
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 …]
Drt5640.c401 /* DAC Digital Volume */
441 SOC_ENUM("DAC IF1 Data Switch", rt5640_if1_dac_enum),
443 SOC_ENUM("DAC IF2 Data Switch", rt5640_if2_dac_enum),
534 SOC_DAPM_SINGLE("DAC L1 Switch", RT5640_STO_DAC_MIXER,
536 SOC_DAPM_SINGLE("DAC L2 Switch", RT5640_STO_DAC_MIXER,
543 SOC_DAPM_SINGLE("DAC R1 Switch", RT5640_STO_DAC_MIXER,
545 SOC_DAPM_SINGLE("DAC R2 Switch", RT5640_STO_DAC_MIXER,
552 SOC_DAPM_SINGLE("DAC L1 Switch", RT5640_STO_DAC_MIXER,
554 SOC_DAPM_SINGLE("DAC L2 Switch", RT5640_STO_DAC_MIXER,
559 SOC_DAPM_SINGLE("DAC R1 Switch", RT5640_STO_DAC_MIXER,
[all …]
Drt5645.c818 /* DAC Digital Volume */
823 SOC_DOUBLE_TLV("Mono DAC Playback Volume", RT5645_DAC2_DIG_VOL,
1092 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER,
1094 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_STO_DAC_MIXER,
1096 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER,
1101 SOC_DAPM_SINGLE("DAC R1 Switch", RT5645_STO_DAC_MIXER,
1103 SOC_DAPM_SINGLE("DAC R2 Switch", RT5645_STO_DAC_MIXER,
1105 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_STO_DAC_MIXER,
1110 SOC_DAPM_SINGLE("DAC L1 Switch", RT5645_MONO_DAC_MIXER,
1112 SOC_DAPM_SINGLE("DAC L2 Switch", RT5645_MONO_DAC_MIXER,
[all …]
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 …]
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 …]
Drt5677.c1010 /* DAC Digital Volume */
1593 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix L Switch", RT5677_DD1_MIXER,
1595 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix L Switch", RT5677_DD1_MIXER,
1604 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix R Switch", RT5677_DD1_MIXER,
1606 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix R Switch", RT5677_DD1_MIXER,
1615 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix L Switch", RT5677_DD2_MIXER,
1617 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix L Switch", RT5677_DD2_MIXER,
1626 SOC_DAPM_SINGLE_AUTODISABLE("Sto DAC Mix R Switch", RT5677_DD2_MIXER,
1628 SOC_DAPM_SINGLE_AUTODISABLE("Mono DAC Mix R Switch", RT5677_DD2_MIXER,
1742 "IF1 DAC 01", "IF2 DAC 01", "IF3 DAC LR", "IF4 DAC LR", "SLB DAC 01",
[all …]
Drt5660.c317 /* DAC Digital Volume */
414 SOC_DAPM_SINGLE("DAC L1 Switch", RT5660_STO_DAC_MIXER,
416 SOC_DAPM_SINGLE("DAC R1 Switch", RT5660_STO_DAC_MIXER,
421 SOC_DAPM_SINGLE("DAC R1 Switch", RT5660_STO_DAC_MIXER,
423 SOC_DAPM_SINGLE("DAC L1 Switch", RT5660_STO_DAC_MIXER,
503 SOC_DAPM_SINGLE("DAC Switch", RT5660_LOUT_MIXER,
533 SOC_DAPM_ENUM("IF1 DAC Swap Source", rt5660_if1_dac_enum);
633 SND_SOC_DAPM_PGA("IF1 DAC", SND_SOC_NOPM, 0, 0, NULL, 0),
634 SND_SOC_DAPM_PGA("IF1 DAC L", SND_SOC_NOPM, 0, 0, NULL, 0),
635 SND_SOC_DAPM_PGA("IF1 DAC R", SND_SOC_NOPM, 0, 0, NULL, 0),
[all …]
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 …]
Drt1305.c399 SOC_DOUBLE_TLV("DAC Playback Volume", RT1305_DAC_SET_1,
497 SND_SOC_DAPM_SUPPLY("CHOP DAC", RT1305_POWER_CTRL_2,
499 SND_SOC_DAPM_SUPPLY("CKGEN DAC", RT1305_POWER_CTRL_2,
541 SND_SOC_DAPM_SUPPLY("DAC L Power", RT1305_POWER_CTRL_2,
543 SND_SOC_DAPM_SUPPLY("DAC R Power", RT1305_POWER_CTRL_2,
545 SND_SOC_DAPM_DAC("DAC", NULL, SND_SOC_NOPM, 0, 0),
546 SND_SOC_DAPM_SWITCH("DAC L", SND_SOC_NOPM, 0, 0, &rt1305_sto_dac_l),
547 SND_SOC_DAPM_SWITCH("DAC R", SND_SOC_NOPM, 0, 0, &rt1305_sto_dac_r),
559 { "DAC", NULL, "AIF1RX" },
561 { "DAC", NULL, "PLL0", rt1305_is_rc_clk_from_pll },
[all …]
Drt1016.c170 SOC_DOUBLE_TLV("DAC Playback Volume", RT1016_VOL_CTRL_2,
172 SOC_DOUBLE("DAC Playback Switch", RT1016_VOL_CTRL_1,
204 SND_SOC_DAPM_SUPPLY("DAC Filter", RT1016_CLOCK_3,
228 SND_SOC_DAPM_SUPPLY("CKGEN DAC", RT1016_DAC_CTRL_2,
261 SND_SOC_DAPM_DAC("DAC", NULL, SND_SOC_NOPM, 0, 0),
272 { "DAC", NULL, "DAC Filter" },
273 { "DAC", NULL, "DAMOD" },
274 { "DAC", NULL, "FIFO" },
275 { "DAC", NULL, "Pure DC" },
276 { "DAC", NULL, "Silence Det" },
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/dac/
Dst,stm32-dac.yaml4 $id: "http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#"
7 title: STMicroelectronics STM32 DAC bindings
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 …]
Dnxp,lpc1850-dac.yaml4 $id: http://devicetree.org/schemas/iio/dac/nxp,lpc1850-dac.yaml#
7 title: NXP LPC1850 DAC bindings
13 Supports the DAC found on the LPC1850 SoC.
17 const: nxp,lpc1850-dac
49 dac: dac@400e1000 {
50 compatible = "nxp,lpc1850-dac";
/Linux-v6.1/sound/spi/
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 …]
/Linux-v6.1/drivers/leds/
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 …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/
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";

12345678910>>...39