Lines Matching refs:oss_period_size
703 size_t oss_buffer_size, oss_period_size, oss_periods;
720 oss_period_size = substream->oss.setup.period_size;
722 oss_period_size = 1 << runtime->oss.fragshift;
723 if (oss_period_size > oss_buffer_size / 2)
724 oss_period_size = oss_buffer_size / 2;
729 oss_period_size = oss_buffer_size;
731 oss_period_size /= 2;
732 } while (oss_period_size > bytes_per_sec);
735 if (oss_period_size / sd > 4096)
737 if (oss_period_size / sd < 4096)
741 oss_period_size /= sd;
742 if (oss_period_size < 16)
743 oss_period_size = 16;
750 if (oss_period_size < min_period_size)
751 oss_period_size = min_period_size;
757 if (oss_period_size > max_period_size)
758 oss_period_size = max_period_size;
760 oss_periods = oss_buffer_size / oss_period_size;
777 while (oss_period_size * oss_periods > oss_buffer_size)
778 oss_period_size /= 2;
780 if (oss_period_size < 16)
782 runtime->oss.period_bytes = oss_period_size;
833 ssize_t oss_buffer_size, oss_period_size;
1011 oss_period_size = snd_pcm_plug_client_size(substream, params_period_size(sparams));
1012 if (oss_period_size < 0) {
1018 err = snd_pcm_plug_alloc(substream, oss_period_size);
1023 oss_period_size *= oss_frame_size;
1025 oss_buffer_size = oss_period_size * runtime->oss.periods;
1031 runtime->oss.period_bytes = oss_period_size;
1058 runtime->oss.period_frames = snd_pcm_alsa_frames(substream, oss_period_size);