summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Baker <kevinb@ventureresearch.com>2025-04-28 11:18:55 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-28 17:10:28 +0000
commit7b783614873701276804af45adbbf21c5dea9683 (patch)
tree6b62fb33fb0e0f63d200c5888995e05787e729b4
parent5d16b0d87925ce90e5496dd6ae5a970a632b813f (diff)
downloadmeta-freescale-7b783614873701276804af45adbbf21c5dea9683.tar.gz
asound.conf: default sample rate to 48000
Change the default sample rate as used with ALSA to 48000 instead of 44100. Most newer content, videos, and web-based content uses 48 kHz sampling rate, especially with modern codecs like Opus. Normally applications request ALSA to use a PCM sample rate which matches the input content when starting playback. However, more complex applications such as Chromium will internally resample audio to match the default output. This can result in high CPU usage for resampling, so having ALSA's default rate match the majority of content is preferred. (cherry picked from commit 3760fde40b9c66ec7fcaf2807f154ad3955d51f8)
-rw-r--r--recipes-bsp/alsa-state/alsa-state/imx-mainline-bsp/asound.conf4
-rw-r--r--recipes-bsp/alsa-state/alsa-state/imx-nxp-bsp/asound.conf4
2 files changed, 4 insertions, 4 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state/imx-mainline-bsp/asound.conf b/recipes-bsp/alsa-state/alsa-state/imx-mainline-bsp/asound.conf
index c511018e..5ed3bdd9 100644
--- a/recipes-bsp/alsa-state/alsa-state/imx-mainline-bsp/asound.conf
+++ b/recipes-bsp/alsa-state/alsa-state/imx-mainline-bsp/asound.conf
@@ -218,8 +218,8 @@ rate 8000
218 218
219pcm.asymed{ 219pcm.asymed{
220type asym 220type asym
221playback.pcm "dmix_44100" 221playback.pcm "dmix_48000"
222capture.pcm "dsnoop_44100" 222capture.pcm "dsnoop_48000"
223} 223}
224 224
225pcm.dsp0{ 225pcm.dsp0{
diff --git a/recipes-bsp/alsa-state/alsa-state/imx-nxp-bsp/asound.conf b/recipes-bsp/alsa-state/alsa-state/imx-nxp-bsp/asound.conf
index 0084f4a0..f5918669 100644
--- a/recipes-bsp/alsa-state/alsa-state/imx-nxp-bsp/asound.conf
+++ b/recipes-bsp/alsa-state/alsa-state/imx-nxp-bsp/asound.conf
@@ -218,8 +218,8 @@ rate 8000
218 218
219pcm.asymed{ 219pcm.asymed{
220type asym 220type asym
221playback.pcm "dmix_44100" 221playback.pcm "dmix_48000"
222capture.pcm "dsnoop_44100" 222capture.pcm "dsnoop_48000"
223} 223}
224 224
225pcm.dsp0{ 225pcm.dsp0{