/sound/usb/usx2y/ |
D | usb_stream.c | 18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 162 unsigned int frame_size) in usb_stream_new() argument 209 sk->s->cfg.frame_size = frame_size; in usb_stream_new() 213 sk->s->period_size = frame_size * period_frames; in usb_stream_new() 329 if (unlikely(lb % s->cfg.frame_size)) { in usb_stream_prepare_playback() 428 l/(int)s->cfg.frame_size); in loop_back() 486 (s->idle_insize)/(int)s->cfg.frame_size); in stream_idle() 543 s->cfg.frame_size * inurb->number_of_packets; in stream_start() 546 max_diff_0 = s->cfg.frame_size; in stream_start() 560 (min_frames >> 8) * s->cfg.frame_size; in stream_start() [all …]
|
D | usb_stream.h | 41 unsigned int frame_size);
|
/sound/soc/atmel/ |
D | atmel_ssc_dai.c | 204 int frame_size; in atmel_ssc_hw_rule_rate() local 208 frame_size = snd_soc_params_to_frame_size(params); in atmel_ssc_hw_rule_rate() 209 if (frame_size < 0) in atmel_ssc_hw_rule_rate() 210 return frame_size; in atmel_ssc_hw_rule_rate() 237 r.num = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate() 249 t.max = ssc_p->mck_rate / mck_div / frame_size; in atmel_ssc_hw_rule_rate() 509 int frame_size = snd_soc_params_to_frame_size(params); in atmel_ssc_hw_params() local 511 if (frame_size < 0) { in atmel_ssc_hw_params() 514 frame_size); in atmel_ssc_hw_params() 515 return frame_size; in atmel_ssc_hw_params() [all …]
|
/sound/soc/img/ |
D | img-i2s-in.c | 185 unsigned int sample_rate, unsigned int frame_size, in img_i2s_in_check_rate() argument 191 bclk_freq = sample_rate * frame_size; in img_i2s_in_check_rate() 218 unsigned int rate, channels, i2s_channels, frame_size; in img_i2s_in_hw_params() local 232 frame_size = 64; in img_i2s_in_hw_params() 238 frame_size = 64; in img_i2s_in_hw_params() 243 frame_size = 32; in img_i2s_in_hw_params() 258 ret = img_i2s_in_check_rate(i2s, rate, frame_size, in img_i2s_in_hw_params()
|
/sound/soc/codecs/ |
D | rt1019.c | 162 int pre_div, bclk_ms, frame_size; in rt1019_hw_params() local 174 frame_size = snd_soc_params_to_frame_size(params); in rt1019_hw_params() 175 if (frame_size < 0) { in rt1019_hw_params() 176 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt1019_hw_params() 180 bclk_ms = frame_size > 32; in rt1019_hw_params()
|
D | rt1016.c | 310 int pre_div, bclk_ms, frame_size; in rt1016_hw_params() local 320 frame_size = snd_soc_params_to_frame_size(params); in rt1016_hw_params() 321 if (frame_size < 0) { in rt1016_hw_params() 323 frame_size); in rt1016_hw_params() 327 bclk_ms = frame_size > 32; in rt1016_hw_params()
|
D | rt1308.c | 459 int pre_div, bclk_ms, frame_size; in rt1308_hw_params() local 469 frame_size = snd_soc_params_to_frame_size(params); in rt1308_hw_params() 470 if (frame_size < 0) { in rt1308_hw_params() 472 frame_size); in rt1308_hw_params() 476 bclk_ms = frame_size > 32; in rt1308_hw_params()
|
D | cx2072x.c | 49 int frame_size; member 682 int frame_len = cx2072x->frame_size; in cx2072x_config_i2spcm() 915 int sample_size, frame_size; in cx2072x_hw_params() local 923 frame_size = snd_soc_params_to_frame_size(params); in cx2072x_hw_params() 924 if (frame_size < 0) in cx2072x_hw_params() 925 return frame_size; in cx2072x_hw_params() 933 frame_size = cx2072x->bclk_ratio; in cx2072x_hw_params() 950 sample_size, frame_size, sample_rate); in cx2072x_hw_params() 952 cx2072x->frame_size = frame_size; in cx2072x_hw_params()
|
D | da7219.c | 1433 u32 frame_size; in da7219_set_dai_tdm_slot() local 1470 frame_size = slots * slot_width; in da7219_set_dai_tdm_slot() 1474 bclk_rate = sr * frame_size; in da7219_set_dai_tdm_slot() 1483 ret = da7219_set_bclks_per_wclk(component, frame_size); in da7219_set_dai_tdm_slot() 1487 frame_size, ret); in da7219_set_dai_tdm_slot() 1568 int frame_size, ret; in da7219_hw_params() local 1620 frame_size = 32; in da7219_hw_params() 1622 frame_size = 64; in da7219_hw_params() 1625 bclk_rate = frame_size * sr; in da7219_hw_params() 1635 if ((bclk_rate / sr) < frame_size) { in da7219_hw_params() [all …]
|
D | rt5660.c | 841 int pre_div, bclk_ms, frame_size; in rt5660_hw_params() local 851 frame_size = snd_soc_params_to_frame_size(params); in rt5660_hw_params() 852 if (frame_size < 0) { in rt5660_hw_params() 853 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5660_hw_params() 854 return frame_size; in rt5660_hw_params() 857 if (frame_size > 32) in rt5660_hw_params()
|
D | rt1305.c | 631 int pre_div, bclk_ms, frame_size; in rt1305_hw_params() local 643 frame_size = snd_soc_params_to_frame_size(params); in rt1305_hw_params() 644 if (frame_size < 0) { in rt1305_hw_params() 646 frame_size); in rt1305_hw_params() 650 bclk_ms = frame_size > 32; in rt1305_hw_params()
|
D | rt1015.c | 692 int pre_div, frame_size, lrck; in rt1015_hw_params() local 702 frame_size = snd_soc_params_to_frame_size(params); in rt1015_hw_params() 703 if (frame_size < 0) { in rt1015_hw_params() 705 frame_size); in rt1015_hw_params()
|
D | pcm512x.c | 552 int frame_size; in pcm512x_hw_rule_rate() local 554 frame_size = snd_soc_params_to_frame_size(params); in pcm512x_hw_rule_rate() 555 if (frame_size < 0) in pcm512x_hw_rule_rate() 556 return frame_size; in pcm512x_hw_rule_rate() 558 switch (frame_size) { in pcm512x_hw_rule_rate() 569 ranges[0].max = pcm512x_sck_max(pcm512x) / frame_size / 2; in pcm512x_hw_rule_rate() 570 ranges[1].min = DIV_ROUND_UP(16000000, frame_size); in pcm512x_hw_rule_rate()
|
D | rt5514.c | 756 int pre_div, bclk_ms, frame_size; in rt5514_hw_params() local 766 frame_size = snd_soc_params_to_frame_size(params); in rt5514_hw_params() 767 if (frame_size < 0) { in rt5514_hw_params() 768 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5514_hw_params() 772 bclk_ms = frame_size > 32; in rt5514_hw_params()
|
D | rt5616.c | 963 int pre_div, bclk_ms, frame_size; in rt5616_hw_params() local 973 frame_size = snd_soc_params_to_frame_size(params); in rt5616_hw_params() 974 if (frame_size < 0) { in rt5616_hw_params() 975 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5616_hw_params() 978 bclk_ms = frame_size > 32 ? 1 : 0; in rt5616_hw_params()
|
D | rt5651.c | 1287 int pre_div, bclk_ms, frame_size; in rt5651_hw_params() local 1296 frame_size = snd_soc_params_to_frame_size(params); in rt5651_hw_params() 1297 if (frame_size < 0) { in rt5651_hw_params() 1298 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5651_hw_params() 1301 bclk_ms = frame_size > 32 ? 1 : 0; in rt5651_hw_params()
|
D | rt1011.c | 1580 int pre_div, bclk_ms, frame_size; in rt1011_hw_params() local 1592 frame_size = snd_soc_params_to_frame_size(params); in rt1011_hw_params() 1593 if (frame_size < 0) { in rt1011_hw_params() 1595 frame_size); in rt1011_hw_params() 1599 bclk_ms = frame_size > 32; in rt1011_hw_params()
|
D | rt5640.c | 1704 int dai_sel, pre_div, bclk_ms, frame_size; in rt5640_hw_params() local 1713 frame_size = snd_soc_params_to_frame_size(params); in rt5640_hw_params() 1714 if (frame_size < 0) { in rt5640_hw_params() 1715 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5640_hw_params() 1716 return frame_size; in rt5640_hw_params() 1718 if (frame_size > 32) in rt5640_hw_params()
|
D | rt5668.c | 1925 int pre_div, frame_size; in rt5668_hw_params() local 1930 frame_size = snd_soc_params_to_frame_size(params); in rt5668_hw_params() 1931 if (frame_size < 0) { in rt5668_hw_params() 1933 frame_size); in rt5668_hw_params()
|
/sound/soc/sti/ |
D | sti_uniperif.c | 130 int i, frame_size, avail_slots; in sti_uniperiph_set_tdm_slot() local 151 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot() 154 if ((frame_size > UNIPERIF_MAX_FRAME_SZ) || in sti_uniperiph_set_tdm_slot() 155 (frame_size & ~(int)UNIPERIF_ALLOWED_FRAME_SZ)) { in sti_uniperiph_set_tdm_slot() 157 frame_size); in sti_uniperiph_set_tdm_slot()
|
D | uniperif_reader.c | 152 int frame_size; /* user tdm frame size in bytes */ in uni_reader_prepare_tdm() local 157 frame_size = sti_uniperiph_get_user_frame_size(runtime); in uni_reader_prepare_tdm() 164 SET_UNIPERIF_I2S_FMT_NUM_CH(reader, frame_size / 4 / 2); in uni_reader_prepare_tdm()
|
/sound/soc/tegra/ |
D | tegra210_mbdrc.h | 204 unsigned int frame_size; member
|
/sound/usb/ |
D | card.h | 20 unsigned int frame_size; /* samples per frame for non-audio */ member
|
D | format.c | 762 fp->frame_size = framesize; in parse_audio_format_ii() 771 fp->frame_size = framesize; in parse_audio_format_ii()
|
/sound/core/ |
D | rawmidi.c | 1055 int frame_size = sizeof(struct snd_rawmidi_framing_tstamp); in receive_with_tstamp_framing() local 1057 BUILD_BUG_ON(frame_size != 0x20); in receive_with_tstamp_framing() 1062 if ((int)(runtime->buffer_size - runtime->avail) < frame_size) { in receive_with_tstamp_framing() 1077 runtime->avail += frame_size; in receive_with_tstamp_framing() 1078 runtime->hw_ptr += frame_size; in receive_with_tstamp_framing()
|