[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa-util: Add more standard sample rates.
PulseAudio Marge Bot (@pulseaudio-merge-bot)
gitlab at gitlab.freedesktop.org
Mon Feb 6 18:51:45 UTC 2023
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
86c5fbab by Igor V. Kovalenko at 2023-02-06T18:48:56+00:00
alsa-util: Add more standard sample rates.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/776>
- - - - -
2 changed files:
- src/modules/alsa/alsa-util.c
- src/pulse/sample.h
Changes:
=====================================
src/modules/alsa/alsa-util.c
=====================================
@@ -1430,7 +1430,8 @@ unsigned int *pa_alsa_get_supported_rates(snd_pcm_t *pcm, unsigned int fallback_
32000, 44100, 48000,
64000, 88200, 96000,
128000, 176400, 192000,
- 384000 };
+ 352800, 384000,
+ 705600, 768000 };
bool supported[PA_ELEMENTSOF(all_rates)] = { false, };
snd_pcm_hw_params_t *hwparams;
unsigned int i, j, n, *rates = NULL;
=====================================
src/pulse/sample.h
=====================================
@@ -128,7 +128,7 @@ PA_C_DECL_BEGIN
#define PA_CHANNELS_MAX 32U
/** Maximum allowed sample rate */
-#define PA_RATE_MAX (48000U*8U)
+#define PA_RATE_MAX (48000U*16U)
/** Sample format */
typedef enum pa_sample_format {
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/86c5fbab5778685e19b5a4a9b8eb04ca90dff780
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/86c5fbab5778685e19b5a4a9b8eb04ca90dff780
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20230206/ff526075/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list