From 44d575ba700c863ca25efcde4bdd59d6aa24fe7a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 23 Aug 2021 13:06:06 +0200 Subject: [PATCH] stream: enable adapter for all audio streams This way, we can support streams with normal and passthrough formats by switching the adapter mode. --- src/pipewire/stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index b5b7dd663..6b912b5a6 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1757,8 +1757,7 @@ pw_stream_connect(struct pw_stream *stream, pw_impl_node_set_implementation(follower, &impl->impl_node); - if (impl->media_type == SPA_MEDIA_TYPE_audio && - impl->media_subtype == SPA_MEDIA_SUBTYPE_raw) { + if (impl->media_type == SPA_MEDIA_TYPE_audio) { factory = pw_context_find_factory(impl->context, "adapter"); if (factory == NULL) { pw_log_error(NAME" %p: no adapter factory found", stream);