Group :: Sistema/Bibliotecas
RPM: alsa-ucm-conf
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 0009-tegra-Add-UCM-for-WM8903-based-ASUS-Transformers.patch
Download
Download
From 86686583225b1585e0ef09a62fcd05a3791d8de1 Mon Sep 17 00:00:00 2001
From: Svyatoslav Ryhel <clamor95@gmail.com>
Date: Mon, 4 Jul 2022 21:16:09 +0300
Subject: [PATCH 09/11] tegra: Add UCM for WM8903 based ASUS Transformers
Wolfson Microelectronics WM8903 based ASUS Transformer tablet devices
are powered by NVIDIA Tegra30 SoC. They feature 2-channel speaker,
built-in mono microphone and 4-pin 3.5mm jack for headphones and
headset.
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
ucm2/Tegra/wm8903/Asus-Transformer-HiFi.conf | 143 ++++++++++++++++++
ucm2/Tegra/wm8903/Asus-Transformer.conf | 8 +
.../tegra/Asus EeePad Transformer WM8903.conf | 1 +
.../Asus Transformer Pad TF300T WM8903.conf | 1 +
.../conf.d/tegra/Pegatron Chagall WM8903.conf | 1 +
5 files changed, 154 insertions(+)
create mode 100644 ucm2/Tegra/wm8903/Asus-Transformer-HiFi.conf
create mode 100644 ucm2/Tegra/wm8903/Asus-Transformer.conf
create mode 120000 ucm2/conf.d/tegra/Asus EeePad Transformer WM8903.conf
create mode 120000 ucm2/conf.d/tegra/Asus Transformer Pad TF300T WM8903.conf
create mode 120000 ucm2/conf.d/tegra/Pegatron Chagall WM8903.conf
diff --git a/ucm2/Tegra/wm8903/Asus-Transformer-HiFi.conf b/ucm2/Tegra/wm8903/Asus-Transformer-HiFi.conf
new file mode 100644
index 0000000..492a179
--- /dev/null
+++ b/ucm2/Tegra/wm8903/Asus-Transformer-HiFi.conf
@@ -0,0 +1,143 @@
+# Use case Configuration for ASUS Transformer Pad TF300T
+# Written by Svyatoslav Ryhel <clamor95@gmail.com>
+
+SectionVerb {
+ EnableSequence [
+ cset "name='HPF Switch' on"
+ cset "name='HPF Mode' Voice 1"
+
+ cset "name='DRC Switch' on"
+ cset "name='Digital Capture Volume' 127"
+
+ cset "name='Headphone Switch' off"
+ cset "name='Headphone ZC Switch' off"
+ cset "name='Headphone Volume' 45"
+
+ cset "name='Line Out Switch' on"
+ cset "name='Line Out ZC Switch' off"
+ cset "name='Line Out Volume' 57"
+
+ cset "name='Speaker Switch' off"
+ cset "name='Speaker ZC Switch' off"
+ cset "name='Speaker Volume' 60"
+
+ cset "name='Int Spk Switch' on"
+ cset "name='Int Mic Switch' off"
+
+ cset "name='ADC Input' DMIC"
+
+ cset "name='Left Speaker Mixer DACL Switch' on"
+ cset "name='Right Speaker Mixer DACR Switch' on"
+ ]
+}
+
+SectionDevice."Speakers" {
+ Comment "Speakers"
+
+ ConflictingDevice [
+ "Headphones"
+ ]
+
+ EnableSequence [
+ cset "name='Speaker Switch' on"
+ cset "name='Int Spk Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Int Spk Switch' off"
+ cset "name='Speaker Switch' off"
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId}"
+ PlaybackChannels 2
+ PlaybackPriority 200
+ PlaybackVolume "Speaker Volume"
+ PlaybackSwitch "Speaker Switch"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ ConflictingDevice [
+ "Speakers"
+ ]
+
+ EnableSequence [
+ cset "name='Headphone Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headphone Switch' off"
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId}"
+ PlaybackChannels 2
+ PlaybackPriority 100
+ PlaybackVolume "Headphone Volume"
+ PlaybackSwitch "Headphone Switch"
+
+ JackControl "Headphone Jack"
+ }
+}
+
+SectionDevice."InternalMic" {
+ Comment "Internal Microphone"
+
+ ConflictingDevice [
+ "HeadsetMic"
+ ]
+
+ EnableSequence [
+ cset "name='ADC Input' DMIC"
+ cset "name='Digital Capture Volume' 127"
+ cset "name='Int Mic Switch' on"
+ cset "name='Left Input Mux' IN2L"
+ cset "name='Left Input Inverting Mux' IN1L"
+ cset "name='Left Input PGA Switch' off"
+ cset "name='Left Input PGA Common Mode Switch' on"
+ cset "name='Right Capture Mux' Right"
+ cset "name='Right Input PGA Switch' off"
+ ]
+
+ DisableSequence [
+ cset "name='Int Mic Switch' off"
+ ]
+
+ Value {
+ CapturePCM "hw:${CardId}"
+ CaptureMixerElem "Digital"
+ }
+}
+
+SectionDevice."HeadsetMic" {
+ Comment "Headset Microphone"
+
+ ConflictingDevice [
+ "InternalMic"
+ ]
+
+ EnableSequence [
+ cset "name='ADC Input' ADC"
+ cset "name='Digital Capture Volume' 116"
+ cset "name='Int Mic Switch' off"
+ cset "name='Left Input Mux' IN1L"
+ cset "name='Left Input Inverting Mux' IN2L"
+ cset "name='Left Input PGA Switch' on"
+ cset "name='Left Input PGA Common Mode Switch' off"
+ cset "name='Right Capture Mux' Left"
+ cset "name='Right Input PGA Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Int Mic Switch' on"
+ ]
+
+ Value {
+ CapturePCM "hw:${CardId}"
+ CaptureMixerElem "Digital"
+ JackControl "Mic Jack"
+ }
+}
diff --git a/ucm2/Tegra/wm8903/Asus-Transformer.conf b/ucm2/Tegra/wm8903/Asus-Transformer.conf
new file mode 100644
index 0000000..fdb1ae0
--- /dev/null
+++ b/ucm2/Tegra/wm8903/Asus-Transformer.conf
@@ -0,0 +1,8 @@
+# Use case Configuration for ASUS Transformer Pad TF300T
+
+Syntax 4
+
+SectionUseCase."HiFi" {
+ File "/Tegra/wm8903/Asus-Transformer-HiFi.conf"
+ Comment "Play HiFi quality Music"
+}
diff --git a/ucm2/conf.d/tegra/Asus EeePad Transformer WM8903.conf b/ucm2/conf.d/tegra/Asus EeePad Transformer WM8903.conf
new file mode 120000
index 0000000..ab543c4
--- /dev/null
+++ b/ucm2/conf.d/tegra/Asus EeePad Transformer WM8903.conf
@@ -0,0 +1 @@
+../../Tegra/wm8903/Asus-Transformer.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/tegra/Asus Transformer Pad TF300T WM8903.conf b/ucm2/conf.d/tegra/Asus Transformer Pad TF300T WM8903.conf
new file mode 120000
index 0000000..ab543c4
--- /dev/null
+++ b/ucm2/conf.d/tegra/Asus Transformer Pad TF300T WM8903.conf
@@ -0,0 +1 @@
+../../Tegra/wm8903/Asus-Transformer.conf
\ No newline at end of file
diff --git a/ucm2/conf.d/tegra/Pegatron Chagall WM8903.conf b/ucm2/conf.d/tegra/Pegatron Chagall WM8903.conf
new file mode 120000
index 0000000..ab543c4
--- /dev/null
+++ b/ucm2/conf.d/tegra/Pegatron Chagall WM8903.conf
@@ -0,0 +1 @@
+../../Tegra/wm8903/Asus-Transformer.conf
\ No newline at end of file
--
2.33.4