milan-avb: stream: do not wire CRF streams into the PipeWire audio graph

This commit is contained in:
hackerman-kl 2026-05-28 11:50:00 +00:00
parent 320c979145
commit d88504e21f

View file

@ -593,6 +593,7 @@ struct stream *server_create_stream(struct server *server, struct stream *stream
if (stream->stream == NULL) if (stream->stream == NULL)
goto error_free; goto error_free;
if (!stream->is_crf)
pw_stream_add_listener(stream->stream, pw_stream_add_listener(stream->stream,
&stream->stream_listener, &stream->stream_listener,
direction == SPA_DIRECTION_INPUT ? direction == SPA_DIRECTION_INPUT ?
@ -625,7 +626,8 @@ struct stream *server_create_stream(struct server *server, struct stream *stream
params[n_params++] = spa_format_audio_raw_build(&b, params[n_params++] = spa_format_audio_raw_build(&b,
SPA_PARAM_EnumFormat, &stream->info.info.raw); SPA_PARAM_EnumFormat, &stream->info.info.raw);
if ((res = pw_stream_connect(stream->stream, if (!stream->is_crf &&
(res = pw_stream_connect(stream->stream,
pw_direction_reverse(direction), pw_direction_reverse(direction),
PW_ID_ANY, PW_ID_ANY,
PW_STREAM_FLAG_MAP_BUFFERS | PW_STREAM_FLAG_MAP_BUFFERS |