Lines Matching defs:formats
181 pa_idxset *formats;
1771 return pa_idxset_copy(u->formats, (pa_copy_func_t) pa_format_info_copy);
1774 static bool sink_set_formats(pa_sink *s, pa_idxset *formats) {
1782 PA_IDXSET_FOREACH(f, formats, idx) {
1788 pa_idxset_free(u->formats, (pa_free_cb_t) pa_format_info_free);
1789 u->formats = pa_idxset_new(NULL, NULL);
1799 /* First insert non-PCM formats since we prefer those. */
1800 PA_IDXSET_FOREACH(f, formats, idx) {
1804 pa_idxset_put(u->formats, g, NULL);
1808 /* Now add any PCM formats */
1809 PA_IDXSET_FOREACH(f, formats, idx) {
1813 pa_idxset_put(u->formats, pa_format_info_copy(f), NULL);
2590 /* All passthrough formats supported by PulseAudio require
2603 pa_log_error("Failed to find any supported sample formats.");
2819 /* For S/PDIF and HDMI, allow getting/setting custom formats */
2822 /* To start with, we only support PCM formats. Other formats may be added
2826 u->formats = pa_idxset_new(NULL, NULL);
2827 pa_idxset_put(u->formats, format, NULL);
2919 if (u->formats)
2920 pa_idxset_free(u->formats, (pa_free_cb_t) pa_format_info_free);