Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 15 of 15) sorted by relevance

/sound/usb/usx2y/
Dusb_stream.c31 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size()
156 unsigned period_frames, unsigned frame_size) in usb_stream_new() argument
205 sk->s->cfg.frame_size = frame_size; in usb_stream_new()
209 sk->s->period_size = frame_size * period_frames; in usb_stream_new()
321 if (unlikely(lb % s->cfg.frame_size)) { in usb_stream_prepare_playback()
417 l/(int)s->cfg.frame_size); in loop_back()
474 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle()
527 s->cfg.frame_size * inurb->number_of_packets; in stream_start()
530 max_diff_0 = s->cfg.frame_size; in stream_start()
543 (min_frames >> 8) * s->cfg.frame_size; in stream_start()
[all …]
Dusb_stream.h37 unsigned period_frames, unsigned frame_size);
Dus122l.c404 cfg->frame_size != 6 || in usb_stream_hwdep_ioctl()
/sound/soc/atmel/
Datmel_ssc_dai.c220 int frame_size; in atmel_ssc_hw_rule_rate() local
224 frame_size = snd_soc_params_to_frame_size(params); in atmel_ssc_hw_rule_rate()
225 if (frame_size < 0) in atmel_ssc_hw_rule_rate()
226 return frame_size; in atmel_ssc_hw_rule_rate()
253 r.num = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate()
265 t.max = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate()
/sound/soc/codecs/
Dpcm512x.c496 int frame_size; in pcm512x_hw_rule_rate() local
498 frame_size = snd_soc_params_to_frame_size(params); in pcm512x_hw_rule_rate()
499 if (frame_size < 0) in pcm512x_hw_rule_rate()
500 return frame_size; in pcm512x_hw_rule_rate()
502 switch (frame_size) { in pcm512x_hw_rule_rate()
513 ranges[0].max = pcm512x_sck_max(pcm512x) / frame_size / 2; in pcm512x_hw_rule_rate()
514 ranges[1].min = DIV_ROUND_UP(16000000, frame_size); in pcm512x_hw_rule_rate()
Drt5651.c1349 int pre_div, bclk_ms, frame_size; in rt5651_hw_params() local
1358 frame_size = snd_soc_params_to_frame_size(params); in rt5651_hw_params()
1359 if (frame_size < 0) { in rt5651_hw_params()
1360 dev_err(codec->dev, "Unsupported frame size: %d\n", frame_size); in rt5651_hw_params()
1363 bclk_ms = frame_size > 32 ? 1 : 0; in rt5651_hw_params()
Drt5640.c1685 int dai_sel, pre_div, bclk_ms, frame_size; in rt5640_hw_params() local
1694 frame_size = snd_soc_params_to_frame_size(params); in rt5640_hw_params()
1695 if (frame_size < 0) { in rt5640_hw_params()
1696 dev_err(codec->dev, "Unsupported frame size: %d\n", frame_size); in rt5640_hw_params()
1697 return frame_size; in rt5640_hw_params()
1699 if (frame_size > 32) in rt5640_hw_params()
Dda7219.c1219 u32 frame_size; in da7219_set_dai_tdm_slot() local
1247 frame_size = slots * slot_width; in da7219_set_dai_tdm_slot()
1248 switch (frame_size) { in da7219_set_dai_tdm_slot()
1262 dev_err(codec->dev, "Invalid frame size %d\n", frame_size); in da7219_set_dai_tdm_slot()
Drt5670.c2322 int pre_div, bclk_ms, frame_size; in rt5670_hw_params() local
2331 frame_size = snd_soc_params_to_frame_size(params); in rt5670_hw_params()
2332 if (frame_size < 0) { in rt5670_hw_params()
2333 dev_err(codec->dev, "Unsupported frame size: %d\n", frame_size); in rt5670_hw_params()
2336 bclk_ms = frame_size > 32; in rt5670_hw_params()
Drt5645.c2537 int pre_div, bclk_ms, frame_size; in rt5645_hw_params() local
2545 frame_size = snd_soc_params_to_frame_size(params); in rt5645_hw_params()
2546 if (frame_size < 0) { in rt5645_hw_params()
2547 dev_err(codec->dev, "Unsupported frame size: %d\n", frame_size); in rt5645_hw_params()
2560 bclk_ms = frame_size > 32; in rt5645_hw_params()
Drt5677.c4121 int pre_div, bclk_ms, frame_size; in rt5677_hw_params() local
4130 frame_size = snd_soc_params_to_frame_size(params); in rt5677_hw_params()
4131 if (frame_size < 0) { in rt5677_hw_params()
4132 dev_err(codec->dev, "Unsupported frame size: %d\n", frame_size); in rt5677_hw_params()
4135 bclk_ms = frame_size > 32; in rt5677_hw_params()
/sound/usb/
Dcard.h16 unsigned int frame_size; /* samples per frame for non-audio */ member
Dformat.c521 fp->frame_size = framesize; in parse_audio_format_ii()
530 fp->frame_size = framesize; in parse_audio_format_ii()
Dpcm.c1168 if (fp->fmt_type == UAC_FORMAT_TYPE_II && fp->frame_size > 0) { in setup_hw_info()
1171 fp->frame_size; in setup_hw_info()
/sound/core/
Dpcm_lib.c1825 ssize_t frame_size; in snd_pcm_lib_ioctl_fifo_size() local
1831 frame_size = snd_pcm_format_size(format, channels); in snd_pcm_lib_ioctl_fifo_size()
1832 if (frame_size > 0) in snd_pcm_lib_ioctl_fifo_size()
1833 params->fifo_size /= frame_size; in snd_pcm_lib_ioctl_fifo_size()