Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Hardin <ckhardin@gmail.com>
To: buildroot@buildroot.org
Cc: Charles Hardin <ckhardin@gmail.com>
Subject: [Buildroot] [PATCH v2 1/1] package/bluez-alsa: allow a samplerate conversion for audio playback
Date: Sun,  2 Jul 2023 13:17:36 -0700	[thread overview]
Message-ID: <20230702201736.72396-1-ckhardin@gmail.com> (raw)
In-Reply-To: <20230620173813.4590-2-ckhardin@gmail.com>

In the case of the bluetooth audio then incoming stream will be coming
from bluetooth devices at varying sample rates like (44.1, 48, 96, 192 kHz)
and the odds of a sound device matching that samplerate exactly
is a bit slim. So in the case of a bluez audio playback the system will
need to do a samplerate conversion.

Thus when enabling bluez-alsa and the alsa plugins select libsamplerate
to support the shift from the incoming samplerates to an often fix-rated
audio device.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
---
Changes v1 -> v2:
  - moved the samplerate selection to bluez-alsa

 package/bluez-alsa/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/bluez-alsa/Config.in b/package/bluez-alsa/Config.in
index 73ae3d5333..748c4b8820 100644
--- a/package/bluez-alsa/Config.in
+++ b/package/bluez-alsa/Config.in
@@ -13,6 +13,7 @@ config BR2_PACKAGE_BLUEZ_ALSA
 	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_SBC
+	select BR2_PACKAGE_LIBSAMPLERATE if BR2_PACKAGE_ALSA_PLUGINS
 	help
 	  Bluetooth Audio ALSA Backend.
 
-- 
2.39.2 (Apple Git-143)

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2023-07-02 20:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20 17:38 [Buildroot] [PATCH 1/2] package/alsa-plugins: fix dependencies for the alsa plugin package Charles Hardin
2023-06-20 17:38 ` [Buildroot] [PATCH 2/2] package/alsa-plugins: require libsamplerate for the plugins Charles Hardin
2023-06-25 20:04   ` Arnout Vandecappelle via buildroot
2023-07-02 20:17   ` Charles Hardin [this message]
2023-07-03 19:17     ` [Buildroot] [PATCH v2 1/1] package/bluez-alsa: allow a samplerate conversion for audio playback Thomas Petazzoni via buildroot
2023-06-25 19:57 ` [Buildroot] [PATCH 1/2] package/alsa-plugins: fix dependencies for the alsa plugin package Arnout Vandecappelle via buildroot
2023-07-16  6:15 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230702201736.72396-1-ckhardin@gmail.com \
    --to=ckhardin@gmail.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox