Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/sound/soc/tegra/
Dtegra_asoc_utils.c32 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, in tegra_asoc_utils_set_rate() argument
44 if (data->soc == TEGRA_ASOC_UTILS_SOC_TEGRA20) in tegra_asoc_utils_set_rate()
46 else if (data->soc == TEGRA_ASOC_UTILS_SOC_TEGRA30) in tegra_asoc_utils_set_rate()
57 if (data->soc == TEGRA_ASOC_UTILS_SOC_TEGRA20) in tegra_asoc_utils_set_rate()
59 else if (data->soc == TEGRA_ASOC_UTILS_SOC_TEGRA30) in tegra_asoc_utils_set_rate()
68 clk_change = ((new_baseclock != data->set_baseclock) || in tegra_asoc_utils_set_rate()
69 (mclk != data->set_mclk)); in tegra_asoc_utils_set_rate()
73 data->set_baseclock = 0; in tegra_asoc_utils_set_rate()
74 data->set_mclk = 0; in tegra_asoc_utils_set_rate()
76 clk_disable_unprepare(data->clk_cdev1); in tegra_asoc_utils_set_rate()
[all …]
/sound/core/
Dcontrol_compat.c38 struct snd_ctl_elem_list __user *data; in snd_ctl_elem_list_compat() local
42 data = compat_alloc_user_space(sizeof(*data)); in snd_ctl_elem_list_compat()
45 if (copy_in_user(data, data32, 4 * sizeof(u32))) in snd_ctl_elem_list_compat()
49 put_user(compat_ptr(ptr), &data->pids)) in snd_ctl_elem_list_compat()
51 err = snd_ctl_elem_list(card, data); in snd_ctl_elem_list_compat()
55 if (copy_in_user(data32, data, 4 * sizeof(u32))) in snd_ctl_elem_list_compat()
97 struct snd_ctl_elem_info *data; in snd_ctl_elem_info_compat() local
100 data = kzalloc(sizeof(*data), GFP_KERNEL); in snd_ctl_elem_info_compat()
101 if (! data) in snd_ctl_elem_info_compat()
106 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) in snd_ctl_elem_info_compat()
[all …]
Dinfo.c158 struct snd_info_private_data *data; in snd_info_entry_llseek() local
162 data = file->private_data; in snd_info_entry_llseek()
163 entry = data->entry; in snd_info_entry_llseek()
168 data->file_private_data, in snd_info_entry_llseek()
204 struct snd_info_private_data *data; in snd_info_entry_read() local
210 data = file->private_data; in snd_info_entry_read()
211 if (snd_BUG_ON(!data)) in snd_info_entry_read()
218 entry = data->entry; in snd_info_entry_read()
221 buf = data->rbuffer; in snd_info_entry_read()
238 data->file_private_data, in snd_info_entry_read()
[all …]
/sound/soc/codecs/
Dtpa6130a2.c55 struct tpa6130a2_data *data; in tpa6130a2_i2c_read() local
59 data = i2c_get_clientdata(tpa6130a2_client); in tpa6130a2_i2c_read()
62 if (data->power_state) { in tpa6130a2_i2c_read()
67 data->regs[reg] = val; in tpa6130a2_i2c_read()
69 val = data->regs[reg]; in tpa6130a2_i2c_read()
77 struct tpa6130a2_data *data; in tpa6130a2_i2c_write() local
81 data = i2c_get_clientdata(tpa6130a2_client); in tpa6130a2_i2c_write()
83 if (data->power_state) { in tpa6130a2_i2c_write()
92 data->regs[reg] = value; in tpa6130a2_i2c_write()
99 struct tpa6130a2_data *data; in tpa6130a2_read() local
[all …]
/sound/soc/fsl/
Dimx-sgtl5000.c36 struct imx_sgtl5000_data *data = container_of(rtd->card, in imx_sgtl5000_dai_init() local
42 data->clk_frequency, SND_SOC_CLOCK_IN); in imx_sgtl5000_dai_init()
65 struct imx_sgtl5000_data *data; in imx_sgtl5000_probe() local
125 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in imx_sgtl5000_probe()
126 if (!data) { in imx_sgtl5000_probe()
131 data->codec_clk = clk_get(&codec_dev->dev, NULL); in imx_sgtl5000_probe()
132 if (IS_ERR(data->codec_clk)) { in imx_sgtl5000_probe()
134 data->codec_clk = NULL; in imx_sgtl5000_probe()
136 &data->clk_frequency); in imx_sgtl5000_probe()
143 data->clk_frequency = clk_get_rate(data->codec_clk); in imx_sgtl5000_probe()
[all …]
/sound/pci/oxygen/
Dxonar_cs43xx.c79 struct xonar_cs43xx *data = chip->model_data; in cs4398_write() local
82 if (reg < ARRAY_SIZE(data->cs4398_regs)) in cs4398_write()
83 data->cs4398_regs[reg] = value; in cs4398_write()
88 struct xonar_cs43xx *data = chip->model_data; in cs4398_write_cached() local
90 if (value != data->cs4398_regs[reg]) in cs4398_write_cached()
96 struct xonar_cs43xx *data = chip->model_data; in cs4362a_write() local
99 if (reg < ARRAY_SIZE(data->cs4362a_regs)) in cs4362a_write()
100 data->cs4362a_regs[reg] = value; in cs4362a_write()
105 struct xonar_cs43xx *data = chip->model_data; in cs4362a_write_cached() local
107 if (value != data->cs4362a_regs[reg]) in cs4362a_write_cached()
[all …]
Dxonar_dg.c75 struct dg *data = chip->model_data; in cs4245_write() local
85 data->cs4245_regs[reg] = value; in cs4245_write()
90 struct dg *data = chip->model_data; in cs4245_write_cached() local
92 if (value != data->cs4245_regs[reg]) in cs4245_write_cached()
98 struct dg *data = chip->model_data; in cs4245_registers_init() local
102 data->cs4245_regs[CS4245_DAC_CTRL_1]); in cs4245_registers_init()
104 data->cs4245_regs[CS4245_ADC_CTRL]); in cs4245_registers_init()
106 data->cs4245_regs[CS4245_SIGNAL_SEL]); in cs4245_registers_init()
108 data->cs4245_regs[CS4245_PGA_B_CTRL]); in cs4245_registers_init()
110 data->cs4245_regs[CS4245_PGA_A_CTRL]); in cs4245_registers_init()
[all …]
Dxonar_pcm179x.c264 struct xonar_pcm179x *data = chip->model_data; in pcm1796_write() local
272 < ARRAY_SIZE(data->pcm1796_regs[codec])) in pcm1796_write()
273 data->pcm1796_regs[codec][reg - PCM1796_REG_BASE] = value; in pcm1796_write()
279 struct xonar_pcm179x *data = chip->model_data; in pcm1796_write_cached() local
281 if (value != data->pcm1796_regs[codec][reg - PCM1796_REG_BASE]) in pcm1796_write_cached()
287 struct xonar_pcm179x *data = chip->model_data; in cs2000_write() local
290 data->cs2000_regs[reg] = value; in cs2000_write()
295 struct xonar_pcm179x *data = chip->model_data; in cs2000_write_cached() local
297 if (value != data->cs2000_regs[reg]) in cs2000_write_cached()
303 struct xonar_pcm179x *data = chip->model_data; in pcm1796_registers_init() local
[all …]
Dxonar_wm87x6.c122 struct xonar_wm87x6 *data = chip->model_data; in wm8776_write() local
129 if (reg < ARRAY_SIZE(data->wm8776_regs)) { in wm8776_write()
132 data->wm8776_regs[reg] = value; in wm8776_write()
139 struct xonar_wm87x6 *data = chip->model_data; in wm8776_write_cached() local
141 if (reg >= ARRAY_SIZE(data->wm8776_regs) || in wm8776_write_cached()
142 value != data->wm8776_regs[reg]) in wm8776_write_cached()
149 struct xonar_wm87x6 *data = chip->model_data; in wm8766_write() local
157 if (reg < ARRAY_SIZE(data->wm8766_regs)) { in wm8766_write()
161 data->wm8766_regs[reg] = value; in wm8766_write()
168 struct xonar_wm87x6 *data = chip->model_data; in wm8766_write_cached() local
[all …]
Dxonar_lib.c35 struct xonar_generic *data = chip->model_data; in xonar_enable_output() local
37 oxygen_set_bits16(chip, OXYGEN_GPIO_CONTROL, data->output_enable_bit); in xonar_enable_output()
38 msleep(data->anti_pop_delay); in xonar_enable_output()
39 oxygen_set_bits16(chip, OXYGEN_GPIO_DATA, data->output_enable_bit); in xonar_enable_output()
44 struct xonar_generic *data = chip->model_data; in xonar_disable_output() local
46 oxygen_clear_bits16(chip, OXYGEN_GPIO_DATA, data->output_enable_bit); in xonar_disable_output()
51 struct xonar_generic *data = chip->model_data; in xonar_ext_power_gpio_changed() local
54 has_power = !!(oxygen_read8(chip, data->ext_power_reg) in xonar_ext_power_gpio_changed()
55 & data->ext_power_bit); in xonar_ext_power_gpio_changed()
56 if (has_power != data->has_power) { in xonar_ext_power_gpio_changed()
[all …]
Doxygen.c161 struct generic_data *data = chip->model_data; in ak4396_write() local
169 data->ak4396_regs[codec][reg] = value; in ak4396_write()
175 struct generic_data *data = chip->model_data; in ak4396_write_cached() local
177 if (value != data->ak4396_regs[codec][reg]) in ak4396_write_cached()
183 struct generic_data *data = chip->model_data; in wm8785_write() local
191 if (reg < ARRAY_SIZE(data->wm8785_regs)) in wm8785_write()
192 data->wm8785_regs[reg] = value; in wm8785_write()
197 struct generic_data *data = chip->model_data; in ak4396_registers_init() local
200 for (i = 0; i < data->dacs; ++i) { in ak4396_registers_init()
204 data->ak4396_regs[0][AK4396_CONTROL_2]); in ak4396_registers_init()
[all …]
/sound/core/oss/
Drate.c56 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in rate_init() local
57 data->pos = 0; in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
76 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_expand() local
77 struct rate_channel *rchannels = data->channels; in resample_expand()
80 pos = data->pos; in resample_expand()
114 pos += data->pitch; in resample_expand()
120 data->pos = pos; in resample_expand()
135 struct rate_priv *data = (struct rate_priv *)plugin->extra_data; in resample_shrink() local
[all …]
Dmulaw.c156 static inline void cvt_s16_to_native(struct mulaw_priv *data, in cvt_s16_to_native() argument
159 sample ^= data->flip; in cvt_s16_to_native()
160 if (data->cvt_endian) in cvt_s16_to_native()
162 if (data->native_bytes > data->copy_bytes) in cvt_s16_to_native()
163 memset(dst, 0, data->native_bytes); in cvt_s16_to_native()
164 memcpy(dst + data->native_ofs, (char *)&sample + data->copy_ofs, in cvt_s16_to_native()
165 data->copy_bytes); in cvt_s16_to_native()
173 struct mulaw_priv *data = (struct mulaw_priv *)plugin->extra_data; in mulaw_decode() local
195 cvt_s16_to_native(data, dst, sample); in mulaw_decode()
202 static inline signed short cvt_native_to_s16(struct mulaw_priv *data, in cvt_native_to_s16() argument
[all …]
Dlinear.c42 static inline void do_convert(struct linear_priv *data, in do_convert() argument
48 memcpy(p + data->copy_ofs, src + data->src_ofs, data->copy_bytes); in do_convert()
49 if (data->cvt_endian) in do_convert()
51 tmp ^= data->flip; in do_convert()
52 memcpy(dst, p + data->dst_ofs, data->dst_bytes); in do_convert()
60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() local
81 do_convert(data, dst, src); in convert()
114 static void init_data(struct linear_priv *data, in init_data() argument
124 data->dst_bytes = dst_bytes; in init_data()
125 data->cvt_endian = src_le != dst_le; in init_data()
[all …]
/sound/oss/dmasound/
Ddmasound_atari.c168 u_char data; in ata_ct_law() local
169 if (get_user(data, userPtr++)) in ata_ct_law()
171 *p++ = table[data]; in ata_ct_law()
208 u_char data; in ata_ct_u8() local
209 if (get_user(data, userPtr++)) in ata_ct_u8()
211 *p++ = data ^ 0x80; in ata_ct_u8()
219 u_short data; in ata_ct_u8() local
220 if (get_user(data, (u_short __user *)userPtr)) in ata_ct_u8()
223 *p++ = data ^ 0x8080; in ata_ct_u8()
243 u_short data; in ata_ct_s16be() local
[all …]
/sound/usb/
Dquirks-table.h59 .data = &(const struct audioformat) {
135 .data = (const struct snd_usb_audio_quirk[]) {
343 .data = (const struct snd_usb_audio_quirk[]) {
369 .data = (const struct snd_usb_audio_quirk[]) {
395 .data = (const struct snd_usb_audio_quirk[]) {
421 .data = (const struct snd_usb_audio_quirk[]) {
475 .data = (const struct snd_usb_audio_quirk[]) {
479 .data = & (const struct audioformat) {
496 .data = & (const struct audioformat) {
513 .data = & (const struct snd_usb_midi_endpoint_info) {
[all …]
Dclock.c141 unsigned char data; in uac_clock_source_is_valid() local
158 &data, sizeof(data)); in uac_clock_source_is_valid()
166 return !!data; in uac_clock_source_is_valid()
283 unsigned char data[3]; in set_sample_rate_v1() local
292 data[0] = rate; in set_sample_rate_v1()
293 data[1] = rate >> 8; in set_sample_rate_v1()
294 data[2] = rate >> 16; in set_sample_rate_v1()
298 data, sizeof(data))) < 0) { in set_sample_rate_v1()
307 data, sizeof(data))) < 0) { in set_sample_rate_v1()
313 crate = data[0] | (data[1] << 8) | (data[2] << 16); in set_sample_rate_v1()
[all …]
/sound/isa/wavefront/
Dwavefront_fx.c77 unsigned short *data) in wavefront_fx_memset() argument
96 outb ((data[0] >> 8), dev->fx_dsp_msb); in wavefront_fx_memset()
97 outb ((data[0] & 0xff), dev->fx_dsp_lsb); in wavefront_fx_memset()
100 page, addr, data[0]); in wavefront_fx_memset()
110 outb ((data[i] >> 8), dev->fx_dsp_msb); in wavefront_fx_memset()
111 outb ((data[i] & 0xff), dev->fx_dsp_lsb); in wavefront_fx_memset()
120 page, addr, (unsigned long) data, cnt); in wavefront_fx_memset()
191 wavefront_fx_mute (dev, r.data[0]); in snd_wavefront_fx_ioctl()
195 if (r.data[2] <= 0) { in snd_wavefront_fx_ioctl()
199 } else if (r.data[2] == 1) { in snd_wavefront_fx_ioctl()
[all …]
/sound/drivers/opl3/
Dopl3_drums.c84 struct snd_opl3_drum_voice *data) in snd_opl3_drum_voice_set() argument
86 unsigned char op_offset = snd_opl3_regmap[data->voice][data->op]; in snd_opl3_drum_voice_set()
87 unsigned char voice_offset = data->voice; in snd_opl3_drum_voice_set()
92 opl3->command(opl3, opl3_reg, data->am_vib); in snd_opl3_drum_voice_set()
96 opl3->command(opl3, opl3_reg, data->ksl_level); in snd_opl3_drum_voice_set()
100 opl3->command(opl3, opl3_reg, data->attack_decay); in snd_opl3_drum_voice_set()
104 opl3->command(opl3, opl3_reg, data->sustain_release); in snd_opl3_drum_voice_set()
108 opl3->command(opl3, opl3_reg, data->feedback_connection); in snd_opl3_drum_voice_set()
112 opl3->command(opl3, opl3_reg, data->wave_select); in snd_opl3_drum_voice_set()
119 struct snd_opl3_drum_note *data) in snd_opl3_drum_note_set() argument
[all …]
/sound/pci/ctxfi/
Dcthw20k2.c46 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data);
101 u16 data; member
128 u16 data; member
153 u16 data; member
347 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = (flags & 0xffff); in src_set_dirty()
353 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = ~(0x0); in src_set_dirty_all()
438 return ((struct src_rsc_ctrl_blk *)blk)->dirty.data; in src_get_dirty()
457 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_enb_src()
464 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_dsb_src()
482 if ((ctl->dirty.data & (0x1 << i))) { in src_mgr_commit_write()
[all …]
Dcthw20k1.c43 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data);
45 static void hw_write_pci(struct hw *hw, u32 reg, u32 data);
101 u16 data; member
128 u16 data; member
153 u16 data; member
347 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = (flags & 0xffff); in src_set_dirty()
353 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = ~(0x0); in src_set_dirty_all()
438 return ((struct src_rsc_ctrl_blk *)blk)->dirty.data; in src_get_dirty()
457 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_enb_src()
464 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_dsb_src()
[all …]
/sound/pci/riptide/
Driptide.c687 u32 data; in senddata() local
697 data = atoh(p, 8); in senddata()
699 ((data & 0x0f0f0f0f) << 4) | ((data & 0xf0f0f0f0) in senddata()
813 static int writearm(struct cmdif *cif, u32 addr, u32 data, u32 mask) in writearm() argument
824 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
826 if ((rptr.retlongs[0] & data) == data) { in writearm()
832 snd_printdd("send arm 0x%x 0x%x 0x%x return %d\n", addr, data, mask, in writearm()
1093 struct pcmhw *data = NULL; in riptide_handleirq() local
1108 (data = runtime->private_data) && data->state != ST_STOP) { in riptide_handleirq()
1110 for (j = 0; j < data->pages; j++) { in riptide_handleirq()
[all …]
/sound/pci/ice1712/
Dews.c56 static void ewx_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data) in ewx_i2c_setlines() argument
62 if (data) in ewx_i2c_setlines()
116 static void ewx_i2c_direction(struct snd_i2c_bus *bus, int clock, int data) in ewx_i2c_direction() argument
123 if (data) in ewx_i2c_direction()
149 unsigned char data, ndata; in snd_ice1712_ews88mt_chip_select() local
154 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) in snd_ice1712_ews88mt_chip_select()
156 ndata = (data & 0xf0) | chip_mask; in snd_ice1712_ews88mt_chip_select()
157 if (ndata != data) in snd_ice1712_ews88mt_chip_select()
420 …ic int snd_ice1712_6fire_write_pca(struct snd_ice1712 *ice, unsigned char reg, unsigned char data);
646 unsigned char data; in snd_ice1712_ews88mt_output_sense_get() local
[all …]
/sound/core/seq/
Dseq_midi_event.c297 ev->data.ext.len = dev->read; in snd_midi_event_encode_byte()
298 ev->data.ext.ptr = dev->buf; in snd_midi_event_encode_byte()
314 ev->data.note.channel = dev->buf[0] & 0x0f; in note_event()
315 ev->data.note.note = dev->buf[1]; in note_event()
316 ev->data.note.velocity = dev->buf[2]; in note_event()
322 ev->data.control.channel = dev->buf[0] & 0x0f; in one_param_ctrl_event()
323 ev->data.control.value = dev->buf[1]; in one_param_ctrl_event()
329 ev->data.control.channel = dev->buf[0] & 0x0f; in pitchbend_ctrl_event()
330 ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1] - 8192; in pitchbend_ctrl_event()
336 ev->data.control.channel = dev->buf[0] & 0x0f; in two_param_ctrl_event()
[all …]
Dseq_compat.c49 struct snd_seq_port_info *data; in snd_seq_call_port_info_ioctl() local
52 data = memdup_user(data32, sizeof(*data32)); in snd_seq_call_port_info_ioctl()
53 if (IS_ERR(data)) in snd_seq_call_port_info_ioctl()
54 return PTR_ERR(data); in snd_seq_call_port_info_ioctl()
56 if (get_user(data->flags, &data32->flags) || in snd_seq_call_port_info_ioctl()
57 get_user(data->time_queue, &data32->time_queue)) in snd_seq_call_port_info_ioctl()
59 data->kernel = NULL; in snd_seq_call_port_info_ioctl()
62 err = snd_seq_do_ioctl(client, cmd, data); in snd_seq_call_port_info_ioctl()
67 if (copy_to_user(data32, data, sizeof(*data32)) || in snd_seq_call_port_info_ioctl()
68 put_user(data->flags, &data32->flags) || in snd_seq_call_port_info_ioctl()
[all …]

12345678910>>...14