- Add more patches from upstream to perform setup in more cases: * 0001-audioadapter-perform-setup-again-after-a-PortConfig.patch * 0002-audioconvert-redo-setup-when-format-changes.patch - Renumber patch 0001-acp-do-probing-in-44100Hz-again.patch to * 0003-acp-do-probing-in-44100Hz-again.patch OBS-URL: https://build.opensuse.org/request/show/1036207 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pipewire?expand=0&rev=85
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
From 50a24ac69e491512b7ada0690be5973d5bffa024 Mon Sep 17 00:00:00 2001
|
|
From: Wim Taymans <wtaymans@redhat.com>
|
|
Date: Tue, 15 Nov 2022 16:30:26 +0100
|
|
Subject: [PATCH] acp: do probing in 44100 Hz again
|
|
|
|
Some devices don't seem to work when probed in 48000 so bring it back
|
|
to 44100 until we figure out what is going on.
|
|
|
|
Fixes #2718
|
|
---
|
|
spa/plugins/alsa/acp/acp.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c
|
|
index c49c9e088..4bbe5ee92 100644
|
|
--- a/spa/plugins/alsa/acp/acp.c
|
|
+++ b/spa/plugins/alsa/acp/acp.c
|
|
@@ -34,6 +34,8 @@ void *_acp_log_data;
|
|
|
|
struct spa_i18n *acp_i18n;
|
|
|
|
+#define DEFAULT_RATE 44100
|
|
+
|
|
#define VOLUME_ACCURACY (PA_VOLUME_NORM/100) /* don't require volume adjustments to be perfectly correct. don't necessarily extend granularity in software unless the differences get greater than this level */
|
|
|
|
static const uint32_t channel_table[PA_CHANNEL_POSITION_MAX] = {
|
|
@@ -312,7 +314,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
|
|
snd_pcm_uframes_t try_period_size, try_buffer_size;
|
|
|
|
ss.format = PA_SAMPLE_S32LE;
|
|
- ss.rate = 48000;
|
|
+ ss.rate = DEFAULT_RATE;
|
|
ss.channels = 64;
|
|
|
|
ap = pa_xnew0(pa_alsa_profile, 1);
|
|
@@ -1571,7 +1573,7 @@ struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props)
|
|
}
|
|
|
|
impl->ucm.default_sample_spec.format = PA_SAMPLE_S16NE;
|
|
- impl->ucm.default_sample_spec.rate = 48000;
|
|
+ impl->ucm.default_sample_spec.rate = DEFAULT_RATE;
|
|
impl->ucm.default_sample_spec.channels = 2;
|
|
pa_channel_map_init_extend(&impl->ucm.default_channel_map,
|
|
impl->ucm.default_sample_spec.channels, PA_CHANNEL_MAP_ALSA);
|
|
--
|
|
GitLab
|
|
|