/sound/usb/usx2y/ |
D | usb_stream.c | 31 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 …]
|
D | usb_stream.h | 37 unsigned period_frames, unsigned frame_size);
|
D | us122l.c | 404 cfg->frame_size != 6 || in usb_stream_hwdep_ioctl()
|
/sound/soc/atmel/ |
D | atmel_ssc_dai.c | 220 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/ |
D | pcm512x.c | 496 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()
|
D | rt5651.c | 1349 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()
|
D | rt5640.c | 1685 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()
|
D | da7219.c | 1219 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()
|
D | rt5670.c | 2322 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()
|
D | rt5645.c | 2537 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()
|
D | rt5677.c | 4121 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/ |
D | card.h | 16 unsigned int frame_size; /* samples per frame for non-audio */ member
|
D | format.c | 521 fp->frame_size = framesize; in parse_audio_format_ii() 530 fp->frame_size = framesize; in parse_audio_format_ii()
|
D | pcm.c | 1168 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/ |
D | pcm_lib.c | 1825 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()
|