Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/sound/hda/
Dhdac_regmap.c35 #define get_verb(reg) (((reg) >> 8) & 0xfff) argument
37 static bool hda_volatile_reg(struct device *dev, unsigned int reg) in hda_volatile_reg() argument
40 unsigned int verb = get_verb(reg); in hda_volatile_reg()
64 static bool hda_writeable_reg(struct device *dev, unsigned int reg) in hda_writeable_reg() argument
67 unsigned int verb = get_verb(reg); in hda_writeable_reg()
113 static bool hda_readable_reg(struct device *dev, unsigned int reg) in hda_readable_reg() argument
116 unsigned int verb = get_verb(reg); in hda_readable_reg()
135 return hda_writeable_reg(dev, reg); in hda_readable_reg()
146 static bool is_stereo_amp_verb(unsigned int reg) in is_stereo_amp_verb() argument
148 if (((reg >> 8) & 0x700) != AC_VERB_SET_AMP_GAIN_MUTE) in is_stereo_amp_verb()
[all …]
/sound/firewire/tascam/
Dtascam-stream.c20 __be32 reg; in get_clock() local
26 &reg, sizeof(reg), 0); in get_clock()
30 *data = be32_to_cpu(reg); in get_clock()
49 __be32 reg; in set_clock() local
80 reg = cpu_to_be32(data); in set_clock()
84 &reg, sizeof(reg), 0); in set_clock()
89 reg = cpu_to_be32(0x0000001a); in set_clock()
91 reg = cpu_to_be32(0x0000000d); in set_clock()
95 &reg, sizeof(reg), 0); in set_clock()
144 __be32 reg; in enable_data_channels() local
[all …]
Dtascam-transaction.c337 __be32 reg; in snd_tscm_transaction_reregister() local
341 reg = cpu_to_be32((device->card->node_id << 16) | in snd_tscm_transaction_reregister()
345 &reg, sizeof(reg), 0); in snd_tscm_transaction_reregister()
349 reg = cpu_to_be32(tscm->async_handler.offset); in snd_tscm_transaction_reregister()
352 &reg, sizeof(reg), 0); in snd_tscm_transaction_reregister()
357 reg = cpu_to_be32(0x00000001); in snd_tscm_transaction_reregister()
360 &reg, sizeof(reg), 0); in snd_tscm_transaction_reregister()
365 reg = cpu_to_be32(0x0001008e); in snd_tscm_transaction_reregister()
368 &reg, sizeof(reg), 0); in snd_tscm_transaction_reregister()
373 __be32 reg; in snd_tscm_transaction_unregister() local
[all …]
/sound/firewire/fireface/
Dff-protocol-ff400.c28 __le32 reg; in ff400_get_clock() local
33 FF400_CLOCK_CONFIG, &reg, sizeof(reg), 0); in ff400_get_clock()
36 data = le32_to_cpu(reg); in ff400_get_clock()
86 __le32 reg; in ff400_begin_session() local
98 reg = cpu_to_le32(rate); in ff400_begin_session()
100 FF400_STF, &reg, sizeof(reg), 0); in ff400_begin_session()
110 reg = cpu_to_le32(((ff->rx_stream.data_block_quadlets << 3) << 8) | in ff400_begin_session()
113 FF400_RX_PACKET_FORMAT, &reg, sizeof(reg), 0); in ff400_begin_session()
122 reg = cpu_to_le32((0x80 << 24) | in ff400_begin_session()
126 FF400_TX_PACKET_FORMAT, &reg, sizeof(reg), 0); in ff400_begin_session()
[all …]
/sound/pci/
Dad1889.c81 u16 reg; /* reg setup */ member
110 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw() argument
112 return readw(chip->iobase + reg); in ad1889_readw()
116 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew() argument
118 writew(val, chip->iobase + reg); in ad1889_writew()
122 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl() argument
124 return readl(chip->iobase + reg); in ad1889_readl()
128 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel() argument
130 writel(val, chip->iobase + reg); in ad1889_writel()
197 u16 reg; in ad1889_channel_reset() local
[all …]
Dazt3328.c334 snd_azf3328_io_reg_setb(unsigned reg, u8 mask, bool do_set) in snd_azf3328_io_reg_setb() argument
339 u8 prev = inb(reg), new; in snd_azf3328_io_reg_setb()
344 outb(new, reg); in snd_azf3328_io_reg_setb()
353 unsigned reg, in snd_azf3328_codec_outb() argument
357 outb(value, codec->io_base + reg); in snd_azf3328_codec_outb()
361 snd_azf3328_codec_inb(const struct snd_azf3328_codec_data *codec, unsigned reg) in snd_azf3328_codec_inb() argument
363 return inb(codec->io_base + reg); in snd_azf3328_codec_inb()
368 unsigned reg, in snd_azf3328_codec_outw() argument
372 outw(value, codec->io_base + reg); in snd_azf3328_codec_outw()
376 snd_azf3328_codec_inw(const struct snd_azf3328_codec_data *codec, unsigned reg) in snd_azf3328_codec_inw() argument
[all …]
/sound/soc/
Dsoc-io.c29 unsigned int reg, unsigned int *val) in snd_soc_component_read() argument
34 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read()
36 ret = component->read(component, reg, val); in snd_soc_component_read()
53 unsigned int reg, unsigned int val) in snd_soc_component_write() argument
56 return regmap_write(component->regmap, reg, val); in snd_soc_component_write()
58 return component->write(component, reg, val); in snd_soc_component_write()
65 struct snd_soc_component *component, unsigned int reg, in snd_soc_component_update_bits_legacy() argument
76 ret = component->read(component, reg, &old); in snd_soc_component_update_bits_legacy()
83 ret = component->write(component, reg, new); in snd_soc_component_update_bits_legacy()
102 unsigned int reg, unsigned int mask, unsigned int val) in snd_soc_component_update_bits() argument
[all …]
/sound/soc/codecs/
Dwm8961.c113 static bool wm8961_volatile(struct device *dev, unsigned int reg) in wm8961_volatile() argument
115 switch (reg) { in wm8961_volatile()
126 static bool wm8961_readable(struct device *dev, unsigned int reg) in wm8961_readable() argument
128 switch (reg) { in wm8961_readable()
511 u16 reg; in wm8961_hw_params() local
527 reg = snd_soc_read(codec, WM8961_ADDITIONAL_CONTROL_3); in wm8961_hw_params()
528 reg &= ~WM8961_SAMPLE_RATE_MASK; in wm8961_hw_params()
529 reg |= wm8961_srate[best].val; in wm8961_hw_params()
530 snd_soc_write(codec, WM8961_ADDITIONAL_CONTROL_3, reg); in wm8961_hw_params()
560 reg = snd_soc_read(codec, WM8961_CLOCKING_4); in wm8961_hw_params()
[all …]
Drl6347a.c19 int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value) in rl6347a_hw_write() argument
27 if (reg <= 0xff) { in rl6347a_hw_write()
28 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_write()
30 if (reg == rl6347a->index_cache[i].reg) { in rl6347a_hw_write()
36 reg = RL6347A_PROC_COEF; in rl6347a_hw_write()
39 data[0] = (reg >> 24) & 0xff; in rl6347a_hw_write()
40 data[1] = (reg >> 16) & 0xff; in rl6347a_hw_write()
46 data[2] = ((reg >> 8) & 0xff) | ((value >> 8) & 0xff); in rl6347a_hw_write()
62 int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value) in rl6347a_hw_read() argument
71 if (reg <= 0xff) { in rl6347a_hw_read()
[all …]
Dwm5100-tables.c16 bool wm5100_volatile_register(struct device *dev, unsigned int reg) in wm5100_volatile_register() argument
18 switch (reg) { in wm5100_volatile_register()
35 if ((reg >= WM5100_DSP1_PM_0 && reg <= WM5100_DSP1_PM_1535) || in wm5100_volatile_register()
36 (reg >= WM5100_DSP1_ZM_0 && reg <= WM5100_DSP1_ZM_2047) || in wm5100_volatile_register()
37 (reg >= WM5100_DSP1_DM_0 && reg <= WM5100_DSP1_DM_511) || in wm5100_volatile_register()
38 (reg >= WM5100_DSP2_PM_0 && reg <= WM5100_DSP2_PM_1535) || in wm5100_volatile_register()
39 (reg >= WM5100_DSP2_ZM_0 && reg <= WM5100_DSP2_ZM_2047) || in wm5100_volatile_register()
40 (reg >= WM5100_DSP2_DM_0 && reg <= WM5100_DSP2_DM_511) || in wm5100_volatile_register()
41 (reg >= WM5100_DSP3_PM_0 && reg <= WM5100_DSP3_PM_1535) || in wm5100_volatile_register()
42 (reg >= WM5100_DSP3_ZM_0 && reg <= WM5100_DSP3_ZM_2047) || in wm5100_volatile_register()
[all …]
/sound/pci/oxygen/
Doxygen_io.c28 u8 oxygen_read8(struct oxygen *chip, unsigned int reg) in oxygen_read8() argument
30 return inb(chip->addr + reg); in oxygen_read8()
34 u16 oxygen_read16(struct oxygen *chip, unsigned int reg) in oxygen_read16() argument
36 return inw(chip->addr + reg); in oxygen_read16()
40 u32 oxygen_read32(struct oxygen *chip, unsigned int reg) in oxygen_read32() argument
42 return inl(chip->addr + reg); in oxygen_read32()
46 void oxygen_write8(struct oxygen *chip, unsigned int reg, u8 value) in oxygen_write8() argument
48 outb(value, chip->addr + reg); in oxygen_write8()
49 chip->saved_registers._8[reg] = value; in oxygen_write8()
53 void oxygen_write16(struct oxygen *chip, unsigned int reg, u16 value) in oxygen_write16() argument
[all …]
Dxonar_cs43xx.c77 static void cs4398_write(struct oxygen *chip, u8 reg, u8 value) in cs4398_write() argument
81 oxygen_write_i2c(chip, I2C_DEVICE_CS4398, reg, value); in cs4398_write()
82 if (reg < ARRAY_SIZE(data->cs4398_regs)) in cs4398_write()
83 data->cs4398_regs[reg] = value; in cs4398_write()
86 static void cs4398_write_cached(struct oxygen *chip, u8 reg, u8 value) in cs4398_write_cached() argument
90 if (value != data->cs4398_regs[reg]) in cs4398_write_cached()
91 cs4398_write(chip, reg, value); in cs4398_write_cached()
94 static void cs4362a_write(struct oxygen *chip, u8 reg, u8 value) in cs4362a_write() argument
98 oxygen_write_i2c(chip, I2C_DEVICE_CS4362A, reg, value); in cs4362a_write()
99 if (reg < ARRAY_SIZE(data->cs4362a_regs)) in cs4362a_write()
[all …]
/sound/soc/tegra/
Dtegra30_ahub.c36 static inline void tegra30_apbif_write(u32 reg, u32 val) in tegra30_apbif_write() argument
38 regmap_write(ahub->regmap_apbif, reg, val); in tegra30_apbif_write()
41 static inline u32 tegra30_apbif_read(u32 reg) in tegra30_apbif_read() argument
45 regmap_read(ahub->regmap_apbif, reg, &val); in tegra30_apbif_read()
49 static inline void tegra30_audio_write(u32 reg, u32 val) in tegra30_audio_write() argument
51 regmap_write(ahub->regmap_ahub, reg, val); in tegra30_audio_write()
103 u32 reg, val; in tegra30_ahub_allocate_rx_fifo() local
120 reg = TEGRA30_AHUB_CHANNEL_CTRL + in tegra30_ahub_allocate_rx_fifo()
122 val = tegra30_apbif_read(reg); in tegra30_ahub_allocate_rx_fifo()
128 tegra30_apbif_write(reg, val); in tegra30_ahub_allocate_rx_fifo()
[all …]
Dtegra20_das.c36 static inline void tegra20_das_write(u32 reg, u32 val) in tegra20_das_write() argument
38 regmap_write(das->regmap, reg, val); in tegra20_das_write()
41 static inline u32 tegra20_das_read(u32 reg) in tegra20_das_read() argument
45 regmap_read(das->regmap, reg, &val); in tegra20_das_read()
52 u32 reg; in tegra20_das_connect_dap_to_dac() local
59 reg = dac << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_SEL_P; in tegra20_das_connect_dap_to_dac()
61 tegra20_das_write(addr, reg); in tegra20_das_connect_dap_to_dac()
71 u32 reg; in tegra20_das_connect_dap_to_dap() local
78 reg = otherdap << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_SEL_P | in tegra20_das_connect_dap_to_dap()
83 tegra20_das_write(addr, reg); in tegra20_das_connect_dap_to_dap()
[all …]
/sound/soc/img/
Dimg-i2s-in.c65 static inline void img_i2s_in_writel(struct img_i2s_in *i2s, u32 val, u32 reg) in img_i2s_in_writel() argument
67 writel(val, i2s->base + reg); in img_i2s_in_writel()
70 static inline u32 img_i2s_in_readl(struct img_i2s_in *i2s, u32 reg) in img_i2s_in_readl() argument
72 return readl(i2s->base + reg); in img_i2s_in_readl()
76 u32 val, u32 reg) in img_i2s_in_ch_writel() argument
78 writel(val, i2s->channel_base + (chan * IMG_I2S_IN_CH_STRIDE) + reg); in img_i2s_in_ch_writel()
82 u32 reg) in img_i2s_in_ch_readl() argument
84 return readl(i2s->channel_base + (chan * IMG_I2S_IN_CH_STRIDE) + reg); in img_i2s_in_ch_readl()
89 u32 reg; in img_i2s_in_ch_disable() local
91 reg = img_i2s_in_ch_readl(i2s, chan, IMG_I2S_IN_CH_CTL); in img_i2s_in_ch_disable()
[all …]
Dimg-i2s-out.c95 u32 reg) in img_i2s_out_writel() argument
97 writel(val, i2s->base + reg); in img_i2s_out_writel()
100 static inline u32 img_i2s_out_readl(struct img_i2s_out *i2s, u32 reg) in img_i2s_out_readl() argument
102 return readl(i2s->base + reg); in img_i2s_out_readl()
106 u32 chan, u32 val, u32 reg) in img_i2s_out_ch_writel() argument
108 writel(val, i2s->channel_base + (chan * IMG_I2S_OUT_CH_STRIDE) + reg); in img_i2s_out_ch_writel()
112 u32 reg) in img_i2s_out_ch_readl() argument
114 return readl(i2s->channel_base + (chan * IMG_I2S_OUT_CH_STRIDE) + reg); in img_i2s_out_ch_readl()
119 u32 reg; in img_i2s_out_ch_disable() local
121 reg = img_i2s_out_ch_readl(i2s, chan, IMG_I2S_OUT_CH_CTL); in img_i2s_out_ch_disable()
[all …]
Dimg-spdif-in.c91 u32 val, u32 reg) in img_spdif_in_writel() argument
93 writel(val, spdif->base + reg); in img_spdif_in_writel()
96 static inline u32 img_spdif_in_readl(struct img_spdif_in *spdif, u32 reg) in img_spdif_in_readl() argument
98 return readl(spdif->base + reg); in img_spdif_in_readl()
161 u32 reg; in img_spdif_in_do_clkgen_single() local
171 reg = (nom << IMG_SPDIF_IN_CLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_single()
173 reg |= (hld << IMG_SPDIF_IN_CLKGEN_HLD_SHIFT) & in img_spdif_in_do_clkgen_single()
183 img_spdif_in_writel(spdif, reg, IMG_SPDIF_IN_CLKGEN); in img_spdif_in_do_clkgen_single()
198 u32 reg, trk_reg, temp_regs[IMG_SPDIF_IN_NUM_ACLKGEN]; in img_spdif_in_do_clkgen_multi() local
215 reg = (nom << IMG_SPDIF_IN_ACLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_multi()
[all …]
Dimg-spdif-out.c76 u32 reg) in img_spdif_out_writel() argument
78 writel(val, spdif->base + reg); in img_spdif_out_writel()
81 static inline u32 img_spdif_out_readl(struct img_spdif_out *spdif, u32 reg) in img_spdif_out_readl() argument
83 return readl(spdif->base + reg); in img_spdif_out_readl()
129 u32 reg; in img_spdif_out_get_status() local
134 reg = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSL); in img_spdif_out_get_status()
135 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_out_get_status()
136 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_out_get_status()
137 ucontrol->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_out_get_status()
138 ucontrol->value.iec958.status[3] = (reg >> 24) & 0xff; in img_spdif_out_get_status()
[all …]
/sound/firewire/motu/
Dmotu-protocol-v3.c30 __be32 reg; in v3_get_clock_rate() local
34 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, &reg, in v3_get_clock_rate()
35 sizeof(reg)); in v3_get_clock_rate()
38 data = be32_to_cpu(reg); in v3_get_clock_rate()
51 __be32 reg; in v3_set_clock_rate() local
63 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, &reg, in v3_set_clock_rate()
64 sizeof(reg)); in v3_set_clock_rate()
67 data = be32_to_cpu(reg); in v3_set_clock_rate()
72 need_to_wait = data != be32_to_cpu(reg); in v3_set_clock_rate()
74 reg = cpu_to_be32(data); in v3_set_clock_rate()
[all …]
Dmotu-protocol-v2.c28 __be32 reg; in v2_get_clock_rate() local
32 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in v2_get_clock_rate()
33 sizeof(reg)); in v2_get_clock_rate()
37 index = (be32_to_cpu(reg) & V2_CLOCK_RATE_MASK) >> V2_CLOCK_RATE_SHIFT; in v2_get_clock_rate()
48 __be32 reg; in v2_set_clock_rate() local
60 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in v2_set_clock_rate()
61 sizeof(reg)); in v2_set_clock_rate()
64 data = be32_to_cpu(reg); in v2_set_clock_rate()
69 reg = cpu_to_be32(data); in v2_set_clock_rate()
70 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, &reg, in v2_set_clock_rate()
[all …]
/sound/synth/emux/
Demux_proc.c67 vp->reg.parm.moddelay, in snd_emux_proc_info_read()
68 vp->reg.parm.modatkhld, in snd_emux_proc_info_read()
69 vp->reg.parm.moddcysus, in snd_emux_proc_info_read()
70 vp->reg.parm.modrelease); in snd_emux_proc_info_read()
72 vp->reg.parm.voldelay, in snd_emux_proc_info_read()
73 vp->reg.parm.volatkhld, in snd_emux_proc_info_read()
74 vp->reg.parm.voldcysus, in snd_emux_proc_info_read()
75 vp->reg.parm.volrelease); in snd_emux_proc_info_read()
77 vp->reg.parm.lfo1delay, in snd_emux_proc_info_read()
78 vp->reg.parm.lfo2delay, in snd_emux_proc_info_read()
[all …]
/sound/isa/gus/
Dgus_io.c46 static inline void __snd_gf1_ctrl_stop(struct snd_gus_card * gus, unsigned char reg) in __snd_gf1_ctrl_stop() argument
50 outb(reg | 0x80, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
54 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
61 unsigned char reg, in __snd_gf1_write8() argument
64 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8()
71 unsigned char reg) in __snd_gf1_look8() argument
73 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_look8()
79 unsigned char reg, unsigned int data) in __snd_gf1_write16() argument
81 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write16()
88 unsigned char reg) in __snd_gf1_look16() argument
[all …]
/sound/firewire/dice/
Ddice-stream.c39 __be32 reg, nominal; in ensure_phase_lock() local
43 &reg, sizeof(reg)); in ensure_phase_lock()
51 &reg, sizeof(reg)); in ensure_phase_lock()
77 __be32 reg[2]; in get_register_params() local
80 err = snd_dice_transaction_read_tx(dice, TX_NUMBER, reg, sizeof(reg)); in get_register_params()
84 min_t(unsigned int, be32_to_cpu(reg[0]), MAX_STREAMS); in get_register_params()
85 tx_params->size = be32_to_cpu(reg[1]) * 4; in get_register_params()
87 err = snd_dice_transaction_read_rx(dice, RX_NUMBER, reg, sizeof(reg)); in get_register_params()
91 min_t(unsigned int, be32_to_cpu(reg[0]), MAX_STREAMS); in get_register_params()
92 rx_params->size = be32_to_cpu(reg[1]) * 4; in get_register_params()
[all …]
/sound/pci/emu10k1/
Dio.c35 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument
42 regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK); in snd_emu10k1_ptr_read()
44 if (reg & 0xff000000) { in snd_emu10k1_ptr_read()
47 size = (reg >> 24) & 0x3f; in snd_emu10k1_ptr_read()
48 offset = (reg >> 16) & 0x1f; in snd_emu10k1_ptr_read()
68 void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned in… in snd_emu10k1_ptr_write() argument
77 regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK); in snd_emu10k1_ptr_write()
79 if (reg & 0xff000000) { in snd_emu10k1_ptr_write()
82 size = (reg >> 24) & 0x3f; in snd_emu10k1_ptr_write()
83 offset = (reg >> 16) & 0x1f; in snd_emu10k1_ptr_write()
[all …]
/sound/i2c/other/
Dak4114.c42 static void reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char val) in reg_write() argument
44 ak4114->write(ak4114->private_data, reg, val); in reg_write()
45 if (reg <= AK4114_REG_INT1_MASK) in reg_write()
46 ak4114->regmap[reg] = val; in reg_write()
47 else if (reg >= AK4114_REG_TXCSB0 && reg <= AK4114_REG_TXCSB4) in reg_write()
48 ak4114->txcsb[reg-AK4114_REG_TXCSB0] = val; in reg_write()
51 static inline unsigned char reg_read(struct ak4114 *ak4114, unsigned char reg) in reg_read() argument
53 return ak4114->read(ak4114->private_data, reg); in reg_read()
88 unsigned char reg; in snd_ak4114_create() local
105 for (reg = 0; reg < 6; reg++) in snd_ak4114_create()
[all …]

12345678910>>...17