Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 136) sorted by relevance

123456

/sound/i2c/other/
Dpt2258.c34 unsigned char bytes[2]; in snd_pt2258_reset() local
38 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset()
40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
46 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset()
48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
55 bytes[0] = 0xd0; in snd_pt2258_reset()
56 bytes[1] = 0xe0; in snd_pt2258_reset()
58 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
97 unsigned char bytes[2]; in pt2258_stereo_volume_put() local
108 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put()
[all …]
/sound/i2c/
Dtea6330t.c98 unsigned char bytes[3]; in snd_tea6330t_put_master_volume() local
109 bytes[count++] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_volume()
110 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = tea->mleft; in snd_tea6330t_put_master_volume()
114 bytes[count++] = TEA6330T_SADDR_VOLUME_RIGHT; in snd_tea6330t_put_master_volume()
115 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = tea->mright; in snd_tea6330t_put_master_volume()
118 if ((err = snd_i2c_sendbytes(tea->device, bytes, count)) < 0) in snd_tea6330t_put_master_volume()
149 unsigned char bytes[3]; in snd_tea6330t_put_master_switch() local
160 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_switch()
161 bytes[1] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT]; in snd_tea6330t_put_master_switch()
162 bytes[2] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT]; in snd_tea6330t_put_master_switch()
[all …]
Di2c.c22 unsigned char *bytes, int count);
24 unsigned char *bytes, int count);
132 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_sendbytes() argument
134 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes()
139 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_readbytes() argument
141 return device->bus->ops->readbytes(device, bytes, count); in snd_i2c_readbytes()
262 unsigned char *bytes, int count) in snd_i2c_bit_sendbytes() argument
276 err = snd_i2c_bit_sendbyte(bus, *bytes++); in snd_i2c_bit_sendbytes()
288 unsigned char *bytes, int count) in snd_i2c_bit_readbytes() argument
307 *bytes++ = (unsigned char)err; in snd_i2c_bit_readbytes()
/sound/soc/intel/atom/sst/
Dsst_stream.c172 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream_mrfld() argument
180 bytes->type, bytes->ipc_msg, bytes->block, bytes->task_id, in sst_send_byte_stream_mrfld()
181 bytes->pipe_id, bytes->len); in sst_send_byte_stream_mrfld()
187 sst_fill_header_mrfld(&msg->mrfld_header, bytes->ipc_msg, in sst_send_byte_stream_mrfld()
188 bytes->task_id, 1, pvt_id); in sst_send_byte_stream_mrfld()
189 msg->mrfld_header.p.header_high.part.res_rqd = bytes->block; in sst_send_byte_stream_mrfld()
190 length = bytes->len; in sst_send_byte_stream_mrfld()
193 memcpy(msg->mailbox_data, &bytes->bytes, bytes->len); in sst_send_byte_stream_mrfld()
194 if (bytes->block) { in sst_send_byte_stream_mrfld()
195 block = sst_create_block(sst_drv_ctx, bytes->ipc_msg, pvt_id); in sst_send_byte_stream_mrfld()
[all …]
Dsst_drv_interface.c242 unsigned long bytes) in sst_cdev_ack() argument
255 stream->cumm_bytes += bytes; in sst_cdev_ack()
256 dev_dbg(dev, "bytes copied %d inc by %ld\n", stream->cumm_bytes, bytes); in sst_cdev_ack()
265 fw_tstamp.bytes_copied, bytes); in sst_cdev_ack()
641 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream() argument
646 if (NULL == bytes) in sst_send_byte_stream()
654 ret_val = sst_send_byte_stream_mrfld(ctx, bytes); in sst_send_byte_stream()
/sound/soc/intel/common/
Dsst-dsp.c195 void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_write() argument
199 trace_sst_ipc_outbox_write(bytes); in sst_dsp_outbox_write()
201 memcpy_toio(sst->mailbox.out_base, message, bytes); in sst_dsp_outbox_write()
203 for (i = 0; i < bytes; i += 4) in sst_dsp_outbox_write()
208 void sst_dsp_outbox_read(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_read() argument
212 trace_sst_ipc_outbox_read(bytes); in sst_dsp_outbox_read()
214 memcpy_fromio(message, sst->mailbox.out_base, bytes); in sst_dsp_outbox_read()
216 for (i = 0; i < bytes; i += 4) in sst_dsp_outbox_read()
221 void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_inbox_write() argument
225 trace_sst_ipc_inbox_write(bytes); in sst_dsp_inbox_write()
[all …]
Dsst-dsp.h54 void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes);
55 void sst_dsp_inbox_read(struct sst_dsp *sst, void *message, size_t bytes);
56 void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes);
57 void sst_dsp_outbox_read(struct sst_dsp *sst, void *message, size_t bytes);
/sound/soc/uniphier/
Daio-dma.c31 int bytes = runtime->period_size * in aiodma_pcm_irq() local
37 sub->threshold + bytes); in aiodma_pcm_irq()
39 sub->threshold += bytes; in aiodma_pcm_irq()
41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq()
51 int bytes = runtime->fragment_size; in aiodma_compr_irq() local
56 sub->threshold + bytes); in aiodma_compr_irq()
58 sub->threshold += bytes; in aiodma_compr_irq()
60 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in aiodma_compr_irq()
114 int bytes = runtime->period_size * in uniphier_aiodma_prepare() local
126 bytes); in uniphier_aiodma_prepare()
[all …]
Daio-compress.c190 int bytes = runtime->fragment_size; in uniphier_aio_compr_prepare() local
201 bytes); in uniphier_aio_compr_prepare()
230 int bytes = runtime->fragment_size, ret = 0; in uniphier_aio_compr_trigger() local
236 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_trigger()
263 int bytes = runtime->fragment_size; in uniphier_aio_compr_pointer() local
269 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_pointer()
339 int bytes = runtime->fragment_size; in uniphier_aio_compr_copy() local
370 sub->threshold = 2 * bytes; in uniphier_aio_compr_copy()
371 aiodma_rb_set_threshold(sub, sub->compr_bytes, 2 * bytes); in uniphier_aio_compr_copy()
382 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_copy()
/sound/pci/echoaudio/
Dmidi.c60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE)) in write_midi()
72 chip->comm_page->midi_output[0] = bytes; in write_midi()
73 memcpy(&chip->comm_page->midi_output[1], data, bytes); in write_midi()
77 dev_dbg(chip->card->dev, "write_midi: %d\n", bytes); in write_midi()
78 return bytes; in write_midi()
206 int bytes, sent, time; in snd_echo_midi_output_write() local
211 sent = bytes = 0; in snd_echo_midi_output_write()
215 bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf, in snd_echo_midi_output_write()
217 dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes); in snd_echo_midi_output_write()
[all …]
/sound/core/
Dpcm_memory.c34 static void __update_allocated_size(struct snd_card *card, ssize_t bytes) in __update_allocated_size() argument
36 card->total_pcm_alloc_bytes += bytes; in __update_allocated_size()
39 static void update_allocated_size(struct snd_card *card, ssize_t bytes) in update_allocated_size() argument
42 __update_allocated_size(card, bytes); in update_allocated_size()
46 static void decrease_allocated_size(struct snd_card *card, size_t bytes) in decrease_allocated_size() argument
49 WARN_ON(card->total_pcm_alloc_bytes < bytes); in decrease_allocated_size()
50 __update_allocated_size(card, -(ssize_t)bytes); in decrease_allocated_size()
74 if (dmab->bytes != size) in do_alloc_pages()
75 update_allocated_size(card, dmab->bytes - size); in do_alloc_pages()
87 decrease_allocated_size(card, dmab->bytes); in do_free_pages()
[all …]
Dmemalloc.c50 PAGE_ALIGN(dmab->bytes) >> PAGE_SHIFT); in snd_free_dev_pages()
52 dma_free_coherent(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_free_dev_pages()
93 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram()
139 dmab->bytes = 0; in snd_dma_alloc_pages()
181 dmab->bytes = size; in snd_dma_alloc_pages()
231 free_pages_exact(dmab->area, dmab->bytes); in snd_dma_free_pages()
/sound/firewire/tascam/
Dtascam-transaction.c257 int bytes; in handle_midi_tx() local
272 bytes = calculate_message_bytes(b[1]); in handle_midi_tx()
274 if (bytes <= 0) { in handle_midi_tx()
276 for (bytes = 1; bytes < 4; bytes++) { in handle_midi_tx()
277 if (b[bytes] == 0xf7) in handle_midi_tx()
280 if (bytes == 4) in handle_midi_tx()
281 bytes = 3; in handle_midi_tx()
286 snd_rawmidi_receive(substream, b + 1, bytes); in handle_midi_tx()
/sound/usb/
Dhelper.c16 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) in snd_usb_combine_bytes() argument
19 case 1: return *bytes; in snd_usb_combine_bytes()
20 case 2: return combine_word(bytes); in snd_usb_combine_bytes()
21 case 3: return combine_triple(bytes); in snd_usb_combine_bytes()
22 case 4: return combine_quad(bytes); in snd_usb_combine_bytes()
Dpcm.c1597 unsigned int stride, frames, bytes, oldptr; in retire_capture_urb() local
1615 bytes = urb->iso_frame_desc[i].actual_length; in retire_capture_urb()
1617 unsigned int adj = min(subs->stream_offset_adj, bytes); in retire_capture_urb()
1619 bytes -= adj; in retire_capture_urb()
1622 frames = bytes / stride; in retire_capture_urb()
1624 bytes = frames * stride; in retire_capture_urb()
1625 if (bytes % (runtime->sample_bits >> 3) != 0) { in retire_capture_urb()
1626 int oldbytes = bytes; in retire_capture_urb()
1627 bytes = frames * stride; in retire_capture_urb()
1630 oldbytes, bytes); in retire_capture_urb()
[all …]
/sound/soc/sof/
Dutils.c54 void *message, size_t bytes) in sof_mailbox_write() argument
58 memcpy_toio(dest, message, bytes); in sof_mailbox_write()
63 void *message, size_t bytes) in sof_mailbox_read() argument
67 memcpy_fromio(message, src, bytes); in sof_mailbox_read()
Dprobe.c78 size_t bytes; in sof_ipc_probe_info() local
99 bytes = sizeof(reply->dma[0]); in sof_ipc_probe_info()
101 bytes = sizeof(reply->desc[0]); in sof_ipc_probe_info()
102 bytes *= reply->num_elems; in sof_ipc_probe_info()
103 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL); in sof_ipc_probe_info()
/sound/core/oss/
Dpcm_oss.c589 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes() local
591 return bytes; in snd_pcm_oss_bytes()
593 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
596 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes()
602 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument
607 return bytes_to_frames(runtime, bytes); in snd_pcm_alsa_frames()
608 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1359 …d_pcm_oss_write2(struct snd_pcm_substream *substream, const char *buf, size_t bytes, int in_kernel) in snd_pcm_oss_write2() argument
1368 if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) in snd_pcm_oss_write2()
1372 frames = bytes / oss_frame_bytes; in snd_pcm_oss_write2()
[all …]
/sound/firewire/
Diso-resources.c50 unsigned int bytes, s400_bytes; in packet_bandwidth() local
53 bytes = 3 * 4 + ALIGN(max_payload_bytes, 4); in packet_bandwidth()
57 s400_bytes = bytes * (1 << (SCODE_400 - speed)); in packet_bandwidth()
59 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); in packet_bandwidth()
/sound/core/seq/
Dseq_midi_event.c434 unsigned char bytes[4]; in extra_decode_xrpn() local
442 bytes[0] = (ev->data.control.param & 0x3f80) >> 7; in extra_decode_xrpn()
443 bytes[1] = ev->data.control.param & 0x007f; in extra_decode_xrpn()
444 bytes[2] = (ev->data.control.value & 0x3f80) >> 7; in extra_decode_xrpn()
445 bytes[3] = ev->data.control.value & 0x007f; in extra_decode_xrpn()
456 buf[idx++] = bytes[i]; in extra_decode_xrpn()
/sound/soc/
Dsoc-generic-dmaengine-pcm.c300 void __user *buf, unsigned long bytes) in dmaengine_copy_user() argument
306 void *buf, unsigned long bytes) = pcm->config->process; in dmaengine_copy_user()
313 if (copy_from_user(dma_ptr, buf, bytes)) in dmaengine_copy_user()
317 ret = process(substream, channel, hwoff, (__force void *)buf, bytes); in dmaengine_copy_user()
323 if (copy_to_user(buf, dma_ptr, bytes)) in dmaengine_copy_user()
/sound/hda/
Dhdac_regmap.c284 int i, bytes, err; in hda_reg_write() local
330 bytes = 2; in hda_reg_write()
333 bytes = 4; in hda_reg_write()
336 bytes = 1; in hda_reg_write()
340 for (i = 0; i < bytes; i++) { in hda_reg_write()
/sound/arm/
Daaci.c226 if (aacirun->bytes <= 0) { in aaci_fifo_irq()
227 aacirun->bytes += aacirun->period; in aaci_fifo_irq()
239 aacirun->bytes -= len; in aaci_fifo_irq()
286 if (aacirun->bytes <= 0) { in aaci_fifo_irq()
287 aacirun->bytes += aacirun->period; in aaci_fifo_irq()
299 aacirun->bytes -= len; in aaci_fifo_irq()
542 aacirun->bytes = aacirun->period; in aaci_pcm_prepare()
551 ssize_t bytes = aacirun->ptr - aacirun->start; in aaci_pcm_pointer() local
553 return bytes_to_frames(runtime, bytes); in aaci_pcm_pointer()
/sound/atmel/
Dac97c.c419 unsigned long bytes; in atmel_ac97c_playback_pointer() local
421 bytes = readl(chip->regs + ATMEL_PDC_TPR); in atmel_ac97c_playback_pointer()
422 bytes -= runtime->dma_addr; in atmel_ac97c_playback_pointer()
424 frames = bytes_to_frames(runtime, bytes); in atmel_ac97c_playback_pointer()
436 unsigned long bytes; in atmel_ac97c_capture_pointer() local
438 bytes = readl(chip->regs + ATMEL_PDC_RPR); in atmel_ac97c_capture_pointer()
439 bytes -= runtime->dma_addr; in atmel_ac97c_capture_pointer()
441 frames = bytes_to_frames(runtime, bytes); in atmel_ac97c_capture_pointer()
/sound/pci/ice1712/
Dews.c221 unsigned char bytes[2]; in snd_ice1712_ews_cs8404_spdif_write() local
234 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2) in snd_ice1712_ews_cs8404_spdif_write()
237 if (bits != bytes[1]) { in snd_ice1712_ews_cs8404_spdif_write()
238 bytes[1] = bits; in snd_ice1712_ews_cs8404_spdif_write()
240 bytes, 2) != 2) in snd_ice1712_ews_cs8404_spdif_write()
833 unsigned char bytes[2]; in snd_ice1712_6fire_write_pca() local
837 bytes[0] = reg; in snd_ice1712_6fire_write_pca()
838 bytes[1] = data; in snd_ice1712_6fire_write_pca()
839 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], bytes, 2) != 2) { in snd_ice1712_6fire_write_pca()

123456