Lines Matching refs:caps
143 const struct snd_compr_caps *caps) in _is_codec_supported() argument
148 for (i = 0; i < caps->num_codecs; i++) { in _is_codec_supported()
149 if (caps->codecs[i] == config->codec->id) { in _is_codec_supported()
160 if (config->fragment_size < caps->min_fragment_size) { in _is_codec_supported()
162 config->fragment_size, caps->min_fragment_size); in _is_codec_supported()
165 if (config->fragment_size > caps->max_fragment_size) { in _is_codec_supported()
167 config->fragment_size, caps->max_fragment_size); in _is_codec_supported()
170 if (config->fragments < caps->min_fragments) { in _is_codec_supported()
172 config->fragments, caps->min_fragments); in _is_codec_supported()
175 if (config->fragments > caps->max_fragments) { in _is_codec_supported()
177 config->fragments, caps->max_fragments); in _is_codec_supported()
187 struct snd_compr_caps caps; in _is_codec_type_supported() local
191 if (ioctl(fd, SNDRV_COMPRESS_GET_CAPS, &caps)) { in _is_codec_type_supported()
196 for (i = 0; i < caps.num_codecs; i++) { in _is_codec_type_supported()
197 if (caps.codecs[i] == codec->id) { in _is_codec_type_supported()
220 struct snd_compr_caps caps; in compress_open() local
260 if (ioctl(compress->fd, SNDRV_COMPRESS_GET_CAPS, &caps)) { in compress_open()
267 config->fragment_size = caps.min_fragment_size; in compress_open()
268 config->fragments = caps.max_fragments; in compress_open()
275 if (_is_codec_supported(compress, config, &caps) == false) { in compress_open()