diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-05-11 13:24:04 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-05-11 13:24:04 +0300 |
commit | 68946789c2f7b9bf8af2caa0bcc1866ebc7c8e21 (patch) | |
tree | 9d3458e65a587bbf0700eb5d0d2d6d6c845d7626 /binding/radio_impl_kingfisher.c | |
parent | 63e709d3100b009b196d082ee390f1de12d80f83 (diff) |
radio: use pipewiresrc instead of alsasrc on kingfishermarlin_12.90.0marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.012.90.011.92.011.91.0
This fixes the synchronization issues that prevent the radio from
working nicely on the kingfisher
Bug-AGL: SPEC-3844
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Change-Id: I5132a135b8203a1f1ceb7cfe5f01d8676e786de4
Diffstat (limited to 'binding/radio_impl_kingfisher.c')
-rw-r--r-- | binding/radio_impl_kingfisher.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binding/radio_impl_kingfisher.c b/binding/radio_impl_kingfisher.c index 5fc8a1e..8ecd5f1 100644 --- a/binding/radio_impl_kingfisher.c +++ b/binding/radio_impl_kingfisher.c @@ -219,7 +219,9 @@ static int kf_init(void) // Use PipeWire output rc = snprintf(gst_pipeline_str, GST_PIPELINE_LEN, - "alsasrc device=hw:radio ! queue ! audioconvert ! audioresample ! pipewiresink stream-properties=\"p,media.role=Multimedia\""); + "pipewiresrc stream-properties=\"p,node.target=alsa:pcm:radio:0:capture\" ! " + "audio/x-raw,format=F32LE,channels=2 ! " + "pipewiresink stream-properties=\"p,media.role=Multimedia\""); if(rc >= GST_PIPELINE_LEN) { AFB_API_ERROR(afbBindingV3root, "pipeline string too long"); return -1; |