/openbmc/linux/sound/usb/line6/ |
H A D | playback.c | 22 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 D | capture.c | 89 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 D | hal.c | 458 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 D | hal.h | 53 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 D | dsound_template.h | 101 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 D | audio.c | 326 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 D | wavaudio.c | 46 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 D | ossaudio.c | 529 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 D | alsaaudio.c | 621 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 D | noaudio.c | 94 audio_pcm_info_clear_buf(&hw->info, buf, bytes / hw->info.bytes_per_frame); in no_read()
|
H A D | coreaudio.m | 326 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 D | dbusaudio.c | 84 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 D | sdlaudio.c | 247 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 D | dsoundaudio.c | 342 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 D | audio_int.h | 51 int bytes_per_frame; member
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt5677-spi.c | 215 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 D | pcm.c | 205 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 D | mixart_core.h | 394 u32 bytes_per_frame; member
|
/openbmc/linux/sound/pci/lx6464es/ |
H A D | lx6464es.c | 414 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 D | lx_core.c | 1019 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 D | hpi.h | 1286 u16 hpi_instream_ancillary_reset(u32 h_instream, u16 bytes_per_frame,
|
H A D | hpifunc.c | 1026 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()
|