summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Baker <kevinb@ventureresearch.com>2025-04-28 11:18:55 -0500
committerKevin Baker <kevinb@ventureresearch.com>2025-04-28 11:43:18 -0500
commit3760fde40b9c66ec7fcaf2807f154ad3955d51f8 (patch)
tree271dd9d64c7938db9ff527024482576544e8fc81
parentfa4d8faf90b7f37717b138a05e36083d404bb283 (diff)
downloadmeta-freescale-3760fde40b9c66ec7fcaf2807f154ad3955d51f8.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.
-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{