- Backport upstream fixes: PCM sw_params behavior fix, UCM additions and corrections, dshare position overflow fix, build fixes for Android: 0001-pcm-Preserve-period_event-in-snd_pcm_hw_sw_params-ca.patch 0004-ucm-Add-ucm-files-for-DB820c-board.patch 0005-ucm-bytcr-PlatformEnableSeq.conf-update-some-comment.patch 0006-pcm-dshare-Fix-overflow-when-slave_hw_ptr-rolls-over.patch 0007-test-latency-use-frame-bytes-correctly-in-writebuf.patch 0008-conf-pcm-dmix-add-CHANNELS-argument.patch 0009-Android-avoid-using-versionsort.patch 0010-pcm-add-the-missing-strings.h-include.patch 0011-alisp-add-the-missing-include.patch 0012-add-snd_strlcpy-and-use-it-everywhere.patch 0013-pcm-rate-plugin-fix-signess-in-snd_pcm_rate_avail_up.patch - Drop -Iinclude/alsa from alsa.pc (bsc#1130333) 0014-Drop-I-includedir-alsa-from-alsa.pc.patch OBS-URL: https://build.opensuse.org/request/show/689240 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=245
65 lines
1.5 KiB
Diff
65 lines
1.5 KiB
Diff
From 3c199a0d199f0fae78c9c1b19c11878a6134b3a8 Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Kysela <perex@perex.cz>
|
|
Date: Wed, 13 Mar 2019 10:45:35 +0100
|
|
Subject: [PATCH 08/14] conf: pcm dmix - add CHANNELS argument
|
|
|
|
It seems that some audio devices do use only mono audio for some
|
|
applications (RPi).
|
|
|
|
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
---
|
|
src/conf/alsa.conf | 1 +
|
|
src/conf/pcm/dmix.conf | 10 +++++++++-
|
|
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/conf/alsa.conf b/src/conf/alsa.conf
|
|
index bb00ff409cd9..099805864788 100644
|
|
--- a/src/conf/alsa.conf
|
|
+++ b/src/conf/alsa.conf
|
|
@@ -70,6 +70,7 @@ defaults.pcm.ipc_key 5678293
|
|
defaults.pcm.ipc_gid audio
|
|
defaults.pcm.ipc_perm 0660
|
|
defaults.pcm.dmix.max_periods 0
|
|
+defaults.pcm.dmix.channels 2
|
|
defaults.pcm.dmix.rate 48000
|
|
defaults.pcm.dmix.format "unchanged"
|
|
defaults.pcm.dmix.card defaults.pcm.card
|
|
diff --git a/src/conf/pcm/dmix.conf b/src/conf/pcm/dmix.conf
|
|
index 7d0aa0158c42..7fa5c8b2e20a 100644
|
|
--- a/src/conf/pcm/dmix.conf
|
|
+++ b/src/conf/pcm/dmix.conf
|
|
@@ -3,7 +3,7 @@
|
|
#
|
|
|
|
pcm.!dmix {
|
|
- @args [ CARD DEV SUBDEV FORMAT RATE ]
|
|
+ @args [ CARD DEV SUBDEV FORMAT RATE CHANNELS ]
|
|
@args.CARD {
|
|
type string
|
|
default {
|
|
@@ -36,6 +36,13 @@ pcm.!dmix {
|
|
name defaults.pcm.dmix.rate
|
|
}
|
|
}
|
|
+ @args.CHANNELS {
|
|
+ type integer
|
|
+ default {
|
|
+ @func refer
|
|
+ name defaults.pcm.dmix.channels
|
|
+ }
|
|
+ }
|
|
type dmix
|
|
ipc_key {
|
|
@func refer
|
|
@@ -58,6 +65,7 @@ pcm.!dmix {
|
|
}
|
|
format $FORMAT
|
|
rate $RATE
|
|
+ channels $CHANNELS
|
|
period_size {
|
|
@func refer
|
|
name {
|
|
--
|
|
2.16.4
|
|
|