Patchwork [meta-fsl-arm,v2] alsa-state: Fix mx6 buffer time

login
register
mail settings
Submitter Daiane Angolini
Date Oct. 23, 2013, 12:10 p.m.
Message ID <1382530214-20366-1-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/60407/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - Oct. 23, 2013, 12:10 p.m.
When the buffer time is 512000, there are many audio
bitstreams can't be played, like 88.2k/6channles/16b
on sabre_SD and 96k/24b/6channels on sabre_auto.
Because ALSA can't calculate a suitable playback parameter
group (period_size, period_time, period_count, buffer_size,
buffer_count and so on) for these bitstreams.

So update the buffer time to 450000, which will fix the problem.

Change-Id: Idf2c59c3e5a2447f5d22e00d9f1b35ddb1a6fc4d
Signed-off-by: Wang Shengjiu  <B02247@freescale.com>
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
Changes since v1:
- improved commit log
- added signed-off-by for engineer that provided the asound.conf
  and additional info for commit log

 recipes-bsp/alsa-state/alsa-state/mx6/asound.conf | 36 +++++++++++------------
 1 file changed, 18 insertions(+), 18 deletions(-)

Patch

diff --git a/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf b/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
index 8c26a56..aff332e 100755
--- a/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
+++ b/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
@@ -7,7 +7,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 48000
 }
@@ -20,7 +20,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 44100
 }
@@ -33,7 +33,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 32000
 }
@@ -46,7 +46,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 24000
 }
@@ -59,7 +59,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 22050
 }
@@ -72,7 +72,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 16000
 }
@@ -85,7 +85,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 12000
 }
@@ -98,7 +98,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 11025
 }
@@ -111,7 +111,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 8000
 }
@@ -124,7 +124,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 48000
 }
@@ -137,7 +137,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 44100
 }
@@ -150,7 +150,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 32000
 }
@@ -163,7 +163,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 24000
 }
@@ -176,7 +176,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 22050
 }
@@ -189,7 +189,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 16000
 }
@@ -202,7 +202,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 12000
 }
@@ -215,7 +215,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 11025
 }
@@ -228,7 +228,7 @@  ipc_key_add_uid yes
 slave{
 pcm "hw:0,0"
 period_time 10000
-buffer_time 512000
+buffer_time 450000
 format S16_LE
 rate 8000
 }