Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 11 of 11) sorted by relevance

/sound/core/
Dpcm_misc.c389 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
394 return samples * phys_width / 8; in snd_pcm_format_size()
424 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
432 if (samples == 0) in snd_pcm_format_set_silence()
440 unsigned int bytes = samples * width / 8; in snd_pcm_format_set_silence()
448 while (samples--) { in snd_pcm_format_set_silence()
456 while (samples--) { in snd_pcm_format_set_silence()
462 while (samples--) { in snd_pcm_format_set_silence()
468 while (samples--) { in snd_pcm_format_set_silence()
474 while (samples--) { in snd_pcm_format_set_silence()
/sound/soc/sh/
Dfsi.c448 static int fsi_sample2frame(struct fsi_priv *fsi, int samples) in fsi_sample2frame() argument
450 return samples / fsi->chan_num; in fsi_sample2frame()
1067 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push16() argument
1079 for (i = 0; i < samples / 2; i++) in fsi_pio_push16()
1085 for (i = 0; i < samples; i++) in fsi_pio_push16()
1090 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop16() argument
1095 for (i = 0; i < samples; i++) in fsi_pio_pop16()
1099 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push32() argument
1104 for (i = 0; i < samples; i++) in fsi_pio_push32()
1108 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop32() argument
[all …]
Drz-ssi.c418 int samples; in rz_ssi_pio_recv() local
438 samples = 0; in rz_ssi_pio_recv()
440 samples += runtime->channels; in rz_ssi_pio_recv()
446 if (!samples) in rz_ssi_pio_recv()
454 for (i = 0; i < samples; i++) in rz_ssi_pio_recv()
458 rz_ssi_pointer_update(strm, samples / runtime->channels); in rz_ssi_pio_recv()
473 int samples = 0; in rz_ssi_pio_send() local
494 samples += runtime->channels; in rz_ssi_pio_send()
500 if (samples == 0) in rz_ssi_pio_send()
508 for (i = 0; i < samples; i++) in rz_ssi_pio_send()
[all …]
/sound/soc/codecs/
Dtlv320dac33.c42 #define SAMPLES_TO_US(rate, samples) \ argument
43 (1000000000 / (((rate) * 1000) / (samples)))
48 #define UTHR_FROM_PERIOD_SIZE(samples, playrate, burstrate) \ argument
49 (((samples)*5000) / (((burstrate)*5000) / ((burstrate) - (playrate))))
1144 int samples_out, samples_in, samples; in dac33_dai_delay() local
1191 samples = dac33->alarm_threshold; in dac33_dai_delay()
1192 samples += (samples_in - samples_out); in dac33_dai_delay()
1194 if (likely(samples > 0)) in dac33_dai_delay()
1195 delay = samples; in dac33_dai_delay()
1209 samples = dac33->alarm_threshold; in dac33_dai_delay()
[all …]
/sound/core/oss/
Dpcm_plugin.c673 size_t samples, snd_pcm_format_t format) in snd_pcm_area_silence() argument
687 return snd_pcm_format_set_silence(format, dst, samples); in snd_pcm_area_silence()
696 while (samples-- > 0) { in snd_pcm_area_silence()
710 while (samples-- > 0) { in snd_pcm_area_silence()
720 size_t samples, snd_pcm_format_t format) in snd_pcm_area_copy() argument
728 return snd_pcm_area_silence(dst_area, dst_offset, samples, format); in snd_pcm_area_copy()
737 size_t bytes = samples * width / 8; in snd_pcm_area_copy()
749 while (samples-- > 0) { in snd_pcm_area_copy()
774 while (samples-- > 0) { in snd_pcm_area_copy()
Dpcm_plugin.h135 size_t samples, snd_pcm_format_t format);
140 size_t samples, snd_pcm_format_t format);
/sound/firewire/
Disight.c75 __be16 samples[2 * MAX_FRAMES_PER_PACKET]; member
109 const __be16 *samples, unsigned int count) in isight_samples() argument
120 samples, count * 4); in isight_samples()
124 samples, count1 * 4); in isight_samples()
125 samples += count1 * 2; in isight_samples()
126 memcpy(runtime->dma_area, samples, (count - count1) * 4); in isight_samples()
191 isight_samples(isight, payload->samples, count); in isight_packet()
/sound/synth/emux/
Dsoundfont.c283 sf->samples = NULL; in newsf()
389 sp->next = sf->samples; in sf_sample_new()
390 sf->samples = sp; in sf_sample_new()
405 if (sp == sf->samples) { in sf_sample_delete()
406 sf->samples = sp->next; in sf_sample_delete()
684 for (p = sf->samples; p; p = p->next) { in find_sample()
1378 for (sp = sf->samples; sp; sp = nextsp) { in snd_sf_clear()
1478 for (sp = sf->samples; sp; sp = nextsp) { in snd_soundfont_remove_unlocked()
1482 sf->samples = nextsp; in snd_soundfont_remove_unlocked()
/sound/soc/qcom/qdsp6/
Dq6asm.c1340 uint32_t *samples; in q6asm_stream_remove_silence() local
1351 samples = p + APR_HDR_SIZE; in q6asm_stream_remove_silence()
1356 *samples = num_samples; in q6asm_stream_remove_silence()
/sound/drivers/
DKconfig98 This module returns played samples back to the user space using
/sound/soc/tegra/
DKconfig95 that up-samples the input to the desired sampling rate by