Takashi Iwai
84789a8f60
- Backport upstream fixes / enhancements: mostly small fixes spotted by coccinelle and oethers, the fixes for proper rewind support, a new DSD format support, hwdep definitions sync, and addition of PAZ00 UCM configs. 0022-pcm-fix-snd_pcm_mmap_hw_avail-near-the-boundary.patch 0023-pcm-fix-return-value-of-snd_pcm_share_slave_avail.patch 0024-pcm-add-new-32-bit-DSD-sample-format.patch 0025-dmix-actually-rewind-when-running-or-being-drained.patch 0026-pcm-express-the-rewind-size-limitation-logic-better.patch 0027-pcm-handle-negative-values-from-snd_pcm_mmap_hw_avai.patch 0028-pcm-rate-use-the-snd_pcm_mmap_hw_avail-function.patch 0029-pcm-null-use-the-snd_pcm_mmap_avail-function.patch 0030-rate-handle-negative-values-from-snd_pcm_mmap_playba.patch 0031-dsnoop-rewindable-and-forwardable-logic-was-swapped.patch 0033-pcm-file-don-t-recurse-in-the-rewindable-and-forward.patch 0034-pcm-route-Fix-the-bad-condition-always-false.patch 0035-pcm-rate-hw_avail-must-not-be-negative-before-starti.patch 0036-hwdep-add-missing-declaration-for-snd_hwdep_poll_des.patch 0037-mixer-fixed-double-free.patch 0038-pcm_file-fixed-missing-free.patch 0039-sbase-fixed-missing-free.patch 0040-rawmidi-close-handle-h.patch 0041-pcm_share-fixing-missing-mutex-unlock.patch 0042-simple_abst-null-check-for-lib.patch 0043-socket-missing-socket-close.patch 0044-pcm_hooks-null-check-for-h.patch 0045-conf-return-negative-value-in-case-of-error.patch 0046-control-return-negative-value-in-case-of-error.patch 0047-pcm-return-negative-value-in-case-of-error.patch 0048-mixer-Fix-missing-hctl-handle-free-in-snd_mixer_atta.patch OBS-URL: https://build.opensuse.org/request/show/257835 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=170
226 lines
6.8 KiB
Diff
226 lines
6.8 KiB
Diff
From 24b4e86ddc512acb6b26f97cb958d59586482fb7 Mon Sep 17 00:00:00 2001
|
|
From: zombah <zombah@gmail.com>
|
|
Date: Tue, 23 Sep 2014 19:53:43 +0400
|
|
Subject: [PATCH] conf/ucm: PAZ00: add Toshiba AC100/Dynabook AZ new config
|
|
|
|
Recent mainline kernels threat Toshiba AC100 audio hardware as hw:PAZ00
|
|
vs old hw:tegraalc5632.
|
|
|
|
This patch adds config files for new hw name and include them to
|
|
makefiles.
|
|
|
|
Signed-off-by: zombah <zombah@gmail.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
configure.ac | 1 +
|
|
src/conf/ucm/Makefile.am | 2 +-
|
|
src/conf/ucm/PAZ00/HiFi.conf | 45 +++++++++++++++++++++++++++++
|
|
src/conf/ucm/PAZ00/Makefile.am | 4 +++
|
|
src/conf/ucm/PAZ00/PAZ00.conf | 39 +++++++++++++++++++++++++
|
|
src/conf/ucm/PAZ00/Record.conf | 65 ++++++++++++++++++++++++++++++++++++++++++
|
|
6 files changed, 155 insertions(+), 1 deletion(-)
|
|
create mode 100644 src/conf/ucm/PAZ00/HiFi.conf
|
|
create mode 100644 src/conf/ucm/PAZ00/Makefile.am
|
|
create mode 100644 src/conf/ucm/PAZ00/PAZ00.conf
|
|
create mode 100644 src/conf/ucm/PAZ00/Record.conf
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index b8353a09f0d9..734163c8c321 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -653,6 +653,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|
src/conf/ucm/PandaBoardES/Makefile \
|
|
src/conf/ucm/SDP4430/Makefile \
|
|
src/conf/ucm/tegraalc5632/Makefile \
|
|
+ src/conf/ucm/PAZ00/Makefile \
|
|
modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
|
|
alsalisp/Makefile aserver/Makefile \
|
|
test/Makefile test/lsb/Makefile \
|
|
diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am
|
|
index e089dde73b32..bde89dfea440 100644
|
|
--- a/src/conf/ucm/Makefile.am
|
|
+++ b/src/conf/ucm/Makefile.am
|
|
@@ -1 +1 @@
|
|
-SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632
|
|
+SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00
|
|
diff --git a/src/conf/ucm/PAZ00/HiFi.conf b/src/conf/ucm/PAZ00/HiFi.conf
|
|
new file mode 100644
|
|
index 000000000000..275516d6eb70
|
|
--- /dev/null
|
|
+++ b/src/conf/ucm/PAZ00/HiFi.conf
|
|
@@ -0,0 +1,45 @@
|
|
+SectionVerb {
|
|
+ EnableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ cset "name='Speaker Playback Switch' on"
|
|
+ cset "name='Int Spk Switch' on"
|
|
+ cset "name='Speaker Mix DAC2SPK Playback Switch' on"
|
|
+ ]
|
|
+ DisableSequence [
|
|
+ cset "name='Speaker Playback Switch' off"
|
|
+ cset "name='Int Spk Switch' off"
|
|
+ cset "name='Speaker Mix DAC2SPK Playback Switch' off"
|
|
+ ]
|
|
+}
|
|
+
|
|
+SectionDevice."Headset".0 {
|
|
+ Comment "3.5mm Headset"
|
|
+
|
|
+ Value {
|
|
+ JackName "Paz00 Headset Jack"
|
|
+ }
|
|
+
|
|
+ EnableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ # Internal speaker
|
|
+ cset "name='Int Spk Switch' off"
|
|
+
|
|
+ # Headphones
|
|
+ cset "name='Headphone Playback Switch' on"
|
|
+ cset "name='HPL Mix DACL2HP Playback Switch' on"
|
|
+ cset "name='HPR Mix DACR2HP Playback Switch' on"
|
|
+ ]
|
|
+ DisableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ # Headphones
|
|
+ cset "name='Headphone Playback Switch' off"
|
|
+ cset "name='HPL Mix DACL2HP Playback Switch' off"
|
|
+ cset "name='HPR Mix DACR2HP Playback Switch' off"
|
|
+
|
|
+ # Internal speaker
|
|
+ cset "name='Int Spk Switch' on"
|
|
+ ]
|
|
+}
|
|
diff --git a/src/conf/ucm/PAZ00/Makefile.am b/src/conf/ucm/PAZ00/Makefile.am
|
|
new file mode 100644
|
|
index 000000000000..1bf98a67515f
|
|
--- /dev/null
|
|
+++ b/src/conf/ucm/PAZ00/Makefile.am
|
|
@@ -0,0 +1,4 @@
|
|
+alsaconfigdir = @ALSA_CONFIG_DIR@
|
|
+ucmdir = $(alsaconfigdir)/ucm/PAZ00
|
|
+ucm_DATA = PAZ00.conf HiFi.conf Record.conf
|
|
+EXTRA_DIST = $(ucm_DATA)
|
|
diff --git a/src/conf/ucm/PAZ00/PAZ00.conf b/src/conf/ucm/PAZ00/PAZ00.conf
|
|
new file mode 100644
|
|
index 000000000000..8b9d90435ba1
|
|
--- /dev/null
|
|
+++ b/src/conf/ucm/PAZ00/PAZ00.conf
|
|
@@ -0,0 +1,39 @@
|
|
+Comment "PAZ00 alc5632"
|
|
+
|
|
+ValueDefaults {
|
|
+ PlaybackCTL "hw:0"
|
|
+ CaptureCTL "hw:0"
|
|
+}
|
|
+
|
|
+SectionDefaults [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ cset "name='Master Playback Switch' on"
|
|
+ cset "name='Master Playback Volume' 44,44"
|
|
+ cset "name='Headphone Playback Volume' 21,21"
|
|
+ cset "name='Speaker Playback Volume' 21,21"
|
|
+ cset "name='SpeakerOut Mux' 2"
|
|
+ cset "name='SpeakerOut N Mux' LN/-R"
|
|
+ cset "name='AB-D Amp Mux' 0"
|
|
+ cset "name='Left Headphone Mux' 1"
|
|
+ cset "name='Right Headphone Mux' 1"
|
|
+ cset "name='DMIC Boost Capture Volume' 4"
|
|
+ cset "name='Rec Capture Volume' 24"
|
|
+
|
|
+ # Fix external mic record volumes
|
|
+ cset "name='Mic 1 Boost Volume' 0"
|
|
+ cset "name='Mic 2 Boost Volume' 0"
|
|
+ cset "name='Mic1 Playback Volume' 0"
|
|
+ cset "name='Mic2 Playback Volume' 0"
|
|
+ cset "name='Rec Capture Volume' 0"
|
|
+]
|
|
+
|
|
+SectionUseCase."HiFi" {
|
|
+ File "HiFi.conf"
|
|
+ Comment "Music playback"
|
|
+}
|
|
+
|
|
+SectionUseCase."Record" {
|
|
+ File "Record.conf"
|
|
+ Comment "Playback and capture"
|
|
+}
|
|
diff --git a/src/conf/ucm/PAZ00/Record.conf b/src/conf/ucm/PAZ00/Record.conf
|
|
new file mode 100644
|
|
index 000000000000..568e2fbdf051
|
|
--- /dev/null
|
|
+++ b/src/conf/ucm/PAZ00/Record.conf
|
|
@@ -0,0 +1,65 @@
|
|
+SectionVerb {
|
|
+ EnableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ cset "name='Speaker Playback Switch' on"
|
|
+ cset "name='Int Spk Switch' on"
|
|
+ cset "name='Speaker Mix DAC2SPK Playback Switch' on"
|
|
+
|
|
+ cset "name='DMICL Mix DMICL2ADC Capture Switch' on"
|
|
+ cset "name='DMIC En Capture Switch' on"
|
|
+ cset "name='DMIC PreFilter Capture Switch' on"
|
|
+ ]
|
|
+ DisableSequence [
|
|
+ cset "name='Speaker Playback Switch' off"
|
|
+ cset "name='Int Spk Switch' off"
|
|
+ cset "name='Speaker Mix DAC2SPK Playback Switch' off"
|
|
+
|
|
+ cset "name='DMICL Mix DMICL2ADC Capture Switch' off"
|
|
+ cset "name='DMIC En Capture Switch' off"
|
|
+ cset "name='DMIC PreFilter Capture Switch' off"
|
|
+ ]
|
|
+}
|
|
+
|
|
+SectionDevice."Headset".0 {
|
|
+ Comment "3.5mm Headset"
|
|
+
|
|
+ Value {
|
|
+ JackName "Paz00 Headset Jack"
|
|
+ }
|
|
+
|
|
+ EnableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ # Internal speaker
|
|
+ cset "name='Int Spk Switch' off"
|
|
+
|
|
+ # Internal mic
|
|
+ cset "name='DMIC En Capture Switch' off"
|
|
+
|
|
+ # Headphones
|
|
+ cset "name='Headphone Playback Switch' on"
|
|
+ cset "name='HPL Mix DACL2HP Playback Switch' on"
|
|
+ cset "name='HPR Mix DACR2HP Playback Switch' on"
|
|
+
|
|
+ # External min
|
|
+ cset "name='Left Capture Mix MIC12REC_L Capture Switch' on"
|
|
+ ]
|
|
+ DisableSequence [
|
|
+ cdev "hw:PAZ00"
|
|
+
|
|
+ # Headphones
|
|
+ cset "name='Headphone Playback Switch' off"
|
|
+ cset "name='HPL Mix DACL2HP Playback Switch' off"
|
|
+ cset "name='HPR Mix DACR2HP Playback Switch' off"
|
|
+
|
|
+ # External mic
|
|
+ cset "name='Left Capture Mix MIC12REC_L Capture Switch' on"
|
|
+
|
|
+ # Internal speaker
|
|
+ cset "name='Int Spk Switch' on"
|
|
+
|
|
+ # Internal mic
|
|
+ cset "name='DMIC En Capture Switch' on"
|
|
+ ]
|
|
+}
|
|
--
|
|
2.1.2
|
|
|