Home
last modified time | relevance | path

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

123456

/sound/i2c/other/
A 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
111 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
[all …]
/sound/i2c/
A Dtea6330t.c95 unsigned char bytes[3]; in snd_tea6330t_put_master_volume() local
147 unsigned char bytes[3]; in snd_tea6330t_put_master_switch() local
158 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_switch()
199 unsigned char bytes[2]; in snd_tea6330t_put_bass() local
207 bytes[0] = TEA6330T_SADDR_BASS; in snd_tea6330t_put_bass()
247 unsigned char bytes[2]; in snd_tea6330t_put_treble() local
255 bytes[0] = TEA6330T_SADDR_TREBLE; in snd_tea6330t_put_treble()
286 unsigned char bytes[7]; in snd_tea6330t_update_mixer() local
329 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_update_mixer()
331 bytes[idx+1] = tea->regs[idx]; in snd_tea6330t_update_mixer()
[all …]
A 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/
A Dsst_stream.c171 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream_mrfld() argument
176 u8 bytes_block = bytes->block; in sst_send_byte_stream_mrfld()
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()
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()
215 if (bytes->type == SND_SST_BYTES_GET) { in sst_send_byte_stream_mrfld()
224 bytes->len); in sst_send_byte_stream_mrfld()
[all …]
A Dsst_drv_interface.c226 unsigned long bytes) in sst_cdev_ack() argument
239 stream->cumm_bytes += bytes; in sst_cdev_ack()
240 dev_dbg(dev, "bytes copied %d inc by %ld\n", stream->cumm_bytes, bytes); in sst_cdev_ack()
249 fw_tstamp.bytes_copied, bytes); in sst_cdev_ack()
614 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream() argument
619 if (NULL == bytes) in sst_send_byte_stream()
625 ret_val = sst_send_byte_stream_mrfld(ctx, bytes); in sst_send_byte_stream()
/sound/soc/uniphier/
A 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()
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()
114 int bytes = runtime->period_size * in uniphier_aiodma_prepare() local
126 bytes); in uniphier_aiodma_prepare()
142 int bytes = runtime->period_size * in uniphier_aiodma_trigger() local
150 bytes); in uniphier_aiodma_trigger()
[all …]
A Daio-compress.c185 int bytes = runtime->fragment_size; in uniphier_aio_compr_prepare() local
196 bytes); in uniphier_aio_compr_prepare()
225 int bytes = runtime->fragment_size, ret = 0; in uniphier_aio_compr_trigger() local
231 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_trigger()
258 int bytes = runtime->fragment_size; in uniphier_aio_compr_pointer() local
264 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_pointer()
334 int bytes = runtime->fragment_size; in uniphier_aio_compr_copy() local
365 sub->threshold = 2 * bytes; in uniphier_aio_compr_copy()
366 aiodma_rb_set_threshold(sub, sub->compr_bytes, 2 * bytes); in uniphier_aio_compr_copy()
377 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_copy()
/sound/soc/codecs/
A Dcs35l56-sdw.c120 unsigned int reg, bytes; in cs35l56_sdw_read() local
135 if (bytes > val_size) in cs35l56_sdw_read()
136 bytes = val_size; in cs35l56_sdw_read()
146 val_size -= bytes; in cs35l56_sdw_read()
147 reg += bytes; in cs35l56_sdw_read()
148 buf8 += bytes; in cs35l56_sdw_read()
195 if (bytes > val_size) in cs35l56_sdw_gather_write()
196 bytes = val_size; in cs35l56_sdw_gather_write()
209 val_size -= bytes; in cs35l56_sdw_gather_write()
210 reg += bytes; in cs35l56_sdw_gather_write()
[all …]
/sound/core/
A Dpcm_memory.c35 card->total_pcm_alloc_bytes += bytes; in __update_allocated_size()
41 __update_allocated_size(card, bytes); in update_allocated_size()
47 WARN_ON(card->total_pcm_alloc_bytes < bytes); in decrease_allocated_size()
48 __update_allocated_size(card, -(ssize_t)bytes); in decrease_allocated_size()
74 if (dmab->bytes != size) in do_alloc_pages()
87 decrease_allocated_size(card, dmab->bytes); in do_free_pages()
115 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages()
204 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write()
287 if (substream->dma_buffer.bytes > 0) in preallocate_pages()
438 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
[all …]
A Dump_convert.c173 unsigned char bytes; in cvt_ump_sysex7_to_legacy() local
180 if (bytes > 6) in cvt_ump_sysex7_to_legacy()
191 for (; bytes; bytes--, size++) { in cvt_ump_sysex7_to_legacy()
348 if (bytes > 2) in cvt_legacy_cmd_to_ump()
457 unsigned char bytes; in do_convert_to_ump() local
471 bytes = system_bytes[c & 0x0f]; in do_convert_to_ump()
472 if (!bytes) in do_convert_to_ump()
474 if (bytes == 1) { in do_convert_to_ump()
480 cvt->cmd_bytes = bytes; in do_convert_to_ump()
486 bytes = cmd_bytes[(c >> 4) & 7]; in do_convert_to_ump()
[all …]
A Dmemalloc.c76 dmab->bytes = 0; in snd_dma_alloc_dir_pages()
82 dmab->bytes = size; in snd_dma_alloc_dir_pages()
333 do_free_pages(dmab->area, dmab->bytes, false); in snd_dma_continuous_free()
487 dmab->area, dmab->addr, dmab->bytes); in snd_dma_dev_mmap()
519 do_free_pages(dmab->area, dmab->bytes, true); in snd_dma_wc_free()
527 dmab->area, dmab->addr, dmab->bytes); in snd_dma_wc_mmap()
544 dmab->area, dmab->addr, dmab->bytes); in snd_dma_wc_mmap()
591 dmab->bytes, dmab->private_data); in snd_dma_noncontig_mmap()
606 flush_kernel_vmap_range(dmab->area, dmab->bytes); in snd_dma_noncontig_sync()
866 dmab->bytes, dmab->dev.dir); in snd_dma_noncoherent_sync()
[all …]
/sound/pci/echoaudio/
A 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()
205 int bytes, sent, time; in snd_echo_midi_output_write() local
214 bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf, in snd_echo_midi_output_write()
216 dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes); in snd_echo_midi_output_write()
217 sent = write_midi(chip, buf, bytes); in snd_echo_midi_output_write()
/sound/firewire/tascam/
A 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/
A Dpcm.c1347 bytes -= adj; in retire_capture_urb()
1350 frames = bytes / stride; in retire_capture_urb()
1352 bytes = frames * stride; in retire_capture_urb()
1354 int oldbytes = bytes; in retire_capture_urb()
1355 bytes = frames * stride; in retire_capture_urb()
1358 oldbytes, bytes); in retire_capture_urb()
1397 ctx->queued += bytes; in urb_ctx_queue_advance()
1432 while (bytes--) { in fill_playback_urb_dsd_dop()
1522 return bytes; in copy_to_urb_quirk()
1608 bytes = frames * stride; in prepare_playback_urb()
[all …]
A 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()
/sound/soc/sof/
A Diomem-utils.c55 void *message, size_t bytes) in sof_mailbox_write() argument
59 memcpy_toio(dest, message, bytes); in sof_mailbox_write()
64 void *message, size_t bytes) in sof_mailbox_read() argument
68 memcpy_fromio(message, src, bytes); in sof_mailbox_read()
A Dsof-client-probes-ipc3.c108 size_t bytes; in ipc3_probes_info() local
128 bytes = sizeof(reply->dma[0]); in ipc3_probes_info()
130 bytes = sizeof(reply->desc[0]); in ipc3_probes_info()
131 bytes *= reply->num_elems; in ipc3_probes_info()
132 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL); in ipc3_probes_info()
A Dops.h385 u32 offset, void *dest, size_t bytes) in snd_sof_dsp_block_read() argument
387 return sof_ops(sdev)->block_read(sdev, blk_type, offset, dest, bytes); in snd_sof_dsp_block_read()
392 u32 offset, void *src, size_t bytes) in snd_sof_dsp_block_write() argument
394 return sof_ops(sdev)->block_write(sdev, blk_type, offset, src, bytes); in snd_sof_dsp_block_write()
399 u32 offset, void *dest, size_t bytes) in snd_sof_dsp_mailbox_read() argument
402 sof_ops(sdev)->mailbox_read(sdev, offset, dest, bytes); in snd_sof_dsp_mailbox_read()
406 u32 offset, void *src, size_t bytes) in snd_sof_dsp_mailbox_write() argument
409 sof_ops(sdev)->mailbox_write(sdev, offset, src, bytes); in snd_sof_dsp_mailbox_write()
/sound/soc/intel/avs/
A Ddebugfs.c143 size_t bytes; in probe_points_write() local
151 bytes = sizeof(*array) * num_elems; in probe_points_write()
152 if (bytes % sizeof(*desc)) { in probe_points_write()
158 ret = avs_ipc_probe_connect_points(adev, desc, bytes / sizeof(*desc)); in probe_points_write()
180 size_t bytes; in probe_points_disconnect_write() local
188 bytes = sizeof(*array) * num_elems; in probe_points_disconnect_write()
189 if (bytes % sizeof(*id)) { in probe_points_disconnect_write()
195 ret = avs_ipc_probe_disconnect_points(adev, id, bytes / sizeof(*id)); in probe_points_disconnect_write()
/sound/core/oss/
A Dpcm_oss.c583 return bytes; in snd_pcm_oss_bytes()
1386 return bytes; in snd_pcm_oss_write2()
1408 tmp = bytes; in snd_pcm_oss_write1()
1419 bytes -= tmp; in snd_pcm_oss_write1()
1446 bytes -= tmp; in snd_pcm_oss_write1()
1496 return bytes; in snd_pcm_oss_read2()
1526 tmp = bytes; in snd_pcm_oss_read1()
1534 bytes -= tmp; in snd_pcm_oss_read1()
1544 bytes -= tmp; in snd_pcm_oss_read1()
2237 info.bytes = (runtime->oss.bytes - delay) & INT_MAX; in snd_pcm_oss_get_ptr()
[all …]
/sound/firewire/
A 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/soc/
A Dsoc-generic-dmaengine-pcm.c293 struct iov_iter *iter, unsigned long bytes) in dmaengine_copy() argument
299 unsigned long bytes) = pcm->config->process; in dmaengine_copy()
305 if (copy_from_iter(dma_ptr, bytes, iter) != bytes) in dmaengine_copy()
309 int ret = process(substream, channel, hwoff, bytes); in dmaengine_copy()
315 if (copy_to_iter(dma_ptr, bytes, iter) != bytes) in dmaengine_copy()
/sound/virtio/
A Dvirtio_pcm_msg.c201 unsigned long bytes) in virtsnd_pcm_msg_send() argument
213 end = (offset + bytes - 1) / period_bytes; in virtsnd_pcm_msg_send()
225 if (n > bytes) in virtsnd_pcm_msg_send()
226 n = bytes; in virtsnd_pcm_msg_send()
251 bytes -= n; in virtsnd_pcm_msg_send()
/sound/core/seq/
A Dseq_midi_event.c426 unsigned char bytes[4]; in extra_decode_xrpn() local
434 bytes[0] = (ev->data.control.param & 0x3f80) >> 7; in extra_decode_xrpn()
435 bytes[1] = ev->data.control.param & 0x007f; in extra_decode_xrpn()
436 bytes[2] = (ev->data.control.value & 0x3f80) >> 7; in extra_decode_xrpn()
437 bytes[3] = ev->data.control.value & 0x007f; in extra_decode_xrpn()
448 buf[idx++] = bytes[i]; in extra_decode_xrpn()
/sound/arm/
A 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()

Completed in 60 milliseconds

123456