Home
last modified time | relevance | path

Searched refs:bytes_per_frame (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/sound/usb/line6/
H A Dplayback.c22 int bytes_per_frame) in change_volume() argument
29 if (bytes_per_frame == 4) { in change_volume()
42 } else if (bytes_per_frame == 6) { in change_volume()
66 struct urb *urb_out, int bytes_per_frame) in create_impulse_test_signal() argument
68 int frames = urb_out->transfer_buffer_length / bytes_per_frame; in create_impulse_test_signal()
70 if (bytes_per_frame == 4) { in create_impulse_test_signal()
81 } else if (bytes_per_frame == 6) { in create_impulse_test_signal()
87 for (j = 0; j < bytes_per_frame / 2; ++j) in create_impulse_test_signal()
90 for (; j < bytes_per_frame; ++j) in create_impulse_test_signal()
93 pi += bytes_per_frame; in create_impulse_test_signal()
[all …]
H A Dcapture.c89 const int bytes_per_frame = in line6_capture_copy() local
92 int frames = fsize / bytes_per_frame; in line6_capture_copy()
108 line6pcm->in.pos_done * bytes_per_frame, fbuf, in line6_capture_copy()
109 len * bytes_per_frame); in line6_capture_copy()
110 memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, in line6_capture_copy()
111 (frames - len) * bytes_per_frame); in line6_capture_copy()
120 line6pcm->in.pos_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
/openbmc/linux/drivers/staging/most/dim2/
H A Dhal.c458 static inline bool check_bytes_per_frame(u32 bytes_per_frame) in check_bytes_per_frame() argument
463 if (bytes_per_frame <= 0) in check_bytes_per_frame()
466 if (bytes_per_frame > max_size) in check_bytes_per_frame()
498 static inline u16 norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame) in norm_sync_buffer_size() argument
502 u32 const unit = bytes_per_frame << g.fcnt; in norm_sync_buffer_size()
605 ch->bytes_per_frame = 0; in isoc_init()
609 static void sync_init(struct dim_channel *ch, u8 ch_addr, u16 bytes_per_frame) in sync_init() argument
616 ch->bytes_per_frame = bytes_per_frame; in sync_init()
627 ch->bytes_per_frame = 0; in channel_init()
651 if (ch->packet_length == 0 && ch->bytes_per_frame == 0 && in channel_start()
[all …]
H A Dhal.h53 u16 bytes_per_frame; /*< Synchronous bytes per frame. */ member
68 u16 dim_norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame);
80 u16 bytes_per_frame);
/openbmc/qemu/audio/
H A Ddsound_template.h101 if ((p1p && *p1p && (*blen1p % info->bytes_per_frame)) || in glue()
102 (p2p && *p2p && (*blen2p % info->bytes_per_frame))) { in glue()
251 if (bc.dwBufferBytes % hw->info.bytes_per_frame) { in dsound_init_in()
254 bc.dwBufferBytes, hw->info.bytes_per_frame in dsound_init_in()
258 hw->samples = bc.dwBufferBytes / hw->info.bytes_per_frame; in dsound_init_in()
H A Daudio.c326 info->bytes_per_frame = as->nchannels * mul; in audio_pcm_init_info()
327 info->bytes_per_second = info->freq * info->bytes_per_frame; in audio_pcm_init_info()
338 memset(buf, 0x00, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
342 memset(buf, 0x80, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
534 uint8_t *src = advance(pcm_buf, conv * hw->info.bytes_per_frame); in audio_pcm_hw_conv_in()
596 frames_out_max = MIN(buf_len / sw->info.bytes_per_frame, in audio_pcm_sw_read()
607 return total_out * sw->info.bytes_per_frame; in audio_pcm_sw_read()
655 INT_MAX) / hw->info.bytes_per_frame; in audio_pcm_hw_get_free()
665 uint8_t *dst = advance(pcm_buf, clipped * hw->info.bytes_per_frame); in audio_pcm_hw_clip_out()
737 fe_max = MIN(buf_len / sw->info.bytes_per_frame + sw->resample_buf.pos, in audio_pcm_sw_write()
[all …]
H A Dwavaudio.c46 assert(bytes % hw->info.bytes_per_frame == 0); in wav_write_out()
53 wav->total_samples += bytes / hw->info.bytes_per_frame; in wav_write_out()
141 uint32_t datalen = wav->total_samples * hw->info.bytes_per_frame; in wav_fini_out()
H A Dossaudio.c529 if (obt.nfrags * obt.fragsize % hw->info.bytes_per_frame) { in oss_init_out()
531 obt.nfrags * obt.fragsize, hw->info.bytes_per_frame); in oss_init_out()
534 hw->samples = (obt.nfrags * obt.fragsize) / hw->info.bytes_per_frame; in oss_init_out()
538 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in oss_init_out()
662 if (obt.nfrags * obt.fragsize % hw->info.bytes_per_frame) { in oss_init_in()
664 obt.nfrags * obt.fragsize, hw->info.bytes_per_frame); in oss_init_in()
667 hw->samples = (obt.nfrags * obt.fragsize) / hw->info.bytes_per_frame; in oss_init_in()
H A Dalsaaudio.c621 alsa_free = avail * hw->info.bytes_per_frame; in alsa_buffer_get_free()
623 generic_in_use = hw->samples * hw->info.bytes_per_frame - generic_free; in alsa_buffer_get_free()
641 size_t len_frames = len / hw->info.bytes_per_frame; in alsa_write()
687 pos += written * hw->info.bytes_per_frame; in alsa_write()
841 alsa->handle, dst, len / hw->info.bytes_per_frame); in alsa_read()
867 pos += nread * hw->info.bytes_per_frame; in alsa_read()
868 len -= nread * hw->info.bytes_per_frame; in alsa_read()
H A Dnoaudio.c94 audio_pcm_info_clear_buf(&hw->info, buf, bytes / hw->info.bytes_per_frame); in no_read()
H A Dcoreaudio.m326 pending_frames = hw->pending_emul / hw->info.bytes_per_frame;
335 len = frameCount * hw->info.bytes_per_frame;
362 .mBytesPerFrame = core->hw.info.bytes_per_frame,
363 .mBytesPerPacket = core->hw.info.bytes_per_frame,
H A Ddbusaudio.c84 vo->buf_size = hw->samples * hw->info.bytes_per_frame; in dbus_get_buffer_out()
148 hw->info.bytes_per_frame, in dbus_init_out_listener()
262 hw->info.bytes_per_frame, in dbus_init_in_listener()
H A Dsdlaudio.c247 len / hw->info.bytes_per_frame); in sdl_callback_out()
437 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in sdl_init_in()
H A Ddsoundaudio.c342 len1 = blen1 / hw->info.bytes_per_frame; in dsound_clear_sample()
343 len2 = blen2 / hw->info.bytes_per_frame; in dsound_clear_sample()
H A Daudio_int.h51 int bytes_per_frame; member
/openbmc/linux/sound/soc/codecs/
H A Drt5677-spi.c215 size_t bytes_per_frame = frames_to_bytes(runtime, 1); in rt5677_spi_copy_block() local
219 if (begin > end || runtime->dma_bytes < 2 * bytes_per_frame) { in rt5677_spi_copy_block()
233 if (end - begin > runtime->dma_bytes - bytes_per_frame) in rt5677_spi_copy_block()
234 begin = end - (runtime->dma_bytes - bytes_per_frame); in rt5677_spi_copy_block()
/openbmc/linux/sound/usb/6fire/
H A Dpcm.c205 int bytes_per_frame = alsa_rt->channels << 2; in usb6fire_pcm_capture() local
225 memcpy(dest, src, bytes_per_frame); in usb6fire_pcm_capture()
252 int bytes_per_frame = alsa_rt->channels << 2; in usb6fire_pcm_playback() local
273 memcpy(dest, src, bytes_per_frame); in usb6fire_pcm_playback()
/openbmc/linux/sound/pci/mixart/
H A Dmixart_core.h394 u32 bytes_per_frame; member
/openbmc/linux/sound/pci/lx6464es/
H A Dlx6464es.c414 const u32 bytes_per_frame = channels * 3; in lx_trigger_start() local
417 const u32 period_bytes = period_size * bytes_per_frame; in lx_trigger_start()
H A Dlx_core.c1019 const u32 bytes_per_frame = channels * 3; in lx_interrupt_request_new_buffer() local
1021 const u32 period_bytes = period_size * bytes_per_frame; in lx_interrupt_request_new_buffer()
/openbmc/linux/sound/pci/asihpi/
H A Dhpi.h1286 u16 hpi_instream_ancillary_reset(u32 h_instream, u16 bytes_per_frame,
H A Dhpifunc.c1026 u16 hpi_instream_ancillary_reset(u32 h_instream, u16 bytes_per_frame, in hpi_instream_ancillary_reset() argument
1035 hm.u.d.u.data.format.attributes = bytes_per_frame; in hpi_instream_ancillary_reset()