alsa-ucm-conf/0016-HDA-Intel-HiFi-dual-fixes-and-corrections.patch
Takashi Iwai fb96ce2716 Accepting request 774838 from home:tiwai:branches:multimedia:libs
- Backport upstream fixes: cleanup and correctsion for ucm2:
  0007-broxton-rt298-corrections-cleanups.patch
  0008-bytcr-rt5640-cleanups-and-corrections.patch
  0009-bytcr-rt5651-cleanups-and-corrections.patch
  0010-bytcht-cx2072x-cleanups-and-corrections.patch
  0011-bytcht-es8316-cleanups-and-corrections.patch
  0012-DAISY-I2S-added-back-PCM-devices.patch
  0013-DB410c-cleanups-and-corrections.patch
  0014-DB820c-cleanups-and-corrections.patch
  0015-Dell-WD15-Dock-cleaups-and-corrections.patch
  0016-HDA-Intel-HiFi-dual-fixes-and-corrections.patch
  0017-cht-bsw-rt5672-fixes-and-corrections.patch
  0018-chtnau8824-fixes-and-corrections.patch
  0019-skylake-rt286-fixes-and-corrections.patch
  0020-SDP4430-corrections-and-fixes.patch
  0021-sof-hda-dsp-fix-typo-PlaybackMixerMaster-PlaybackMas.patch
  0022-broadwell-rt286-add-correct-prefix-to-Priority-field.patch
  0023-GoogleNyan-comment-CaptureControl-what-is-this.patch
  0024-VEYRON-I2S-corrections-and-fixes.patch
  0025-SDP4430-corrections-and-fixes.patch
  0026-chtrt5645-corrections-and-fixes.patch
  0027-GoogleNyan-corrections-and-fixes.patch
  0028-PAZ00-corrections-and-fixes.patch
  0029-SDP4430-corrections-and-fixes.patch
  0030-PandaBoard-corrections-and-fixes.patch
  0031-PandaBoardES-corrections-and-fixes.patch
  0032-kblrt5660-corrections-and-fixes.patch
  0033-bytcr-rt5640-corrections-and-fixes.patch
  0034-bytcht-es8316-corrections-and-fixes.patch
  0035-sof-hda-dsp-corrections-and-fixes.patch

OBS-URL: https://build.opensuse.org/request/show/774838
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-ucm-conf?expand=0&rev=7
2020-02-17 11:44:56 +00:00

359 lines
8.1 KiB
Diff

From dfad18452427460bf50c55a2c06f9460b2db2123 Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Fri, 24 Jan 2020 11:06:29 +0100
Subject: [PATCH 16/36] HDA-Intel/HiFi-dual: fixes and corrections
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf | 6 -
.../HDAudio-Gigabyte-ALC1220DualCodecs.conf | 1 -
ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf | 1 -
ucm2/HDA Intel PCH/HiFi-dual.conf | 144 ---------------------
ucm2/HDA-Intel/HDAudio-DualCodecs.conf | 6 +
.../HDAudio-Gigabyte-ALC1220DualCodecs.conf | 1 +
ucm2/HDA-Intel/HDAudio-Lenovo-DualCodecs.conf | 1 +
ucm2/HDA-Intel/HiFi-dual.conf | 118 +++++++++++++++++
8 files changed, 126 insertions(+), 152 deletions(-)
delete mode 100644 ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf
delete mode 120000 ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf
delete mode 120000 ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf
delete mode 100644 ucm2/HDA Intel PCH/HiFi-dual.conf
create mode 100644 ucm2/HDA-Intel/HDAudio-DualCodecs.conf
create mode 120000 ucm2/HDA-Intel/HDAudio-Gigabyte-ALC1220DualCodecs.conf
create mode 120000 ucm2/HDA-Intel/HDAudio-Lenovo-DualCodecs.conf
create mode 100644 ucm2/HDA-Intel/HiFi-dual.conf
diff --git a/ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf
deleted file mode 100644
index 8aaabd0c819d..000000000000
--- a/ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-Syntax 2
-Comment "HDAudio with dual HD-audio codecs"
-SectionUseCase."HiFi" {
- File "HiFi-dual.conf"
- Comment "Default"
-}
diff --git a/ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf
deleted file mode 120000
index 89801aaa2c40..000000000000
--- a/ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf
+++ /dev/null
@@ -1 +0,0 @@
-HDAudio-DualCodecs.conf
\ No newline at end of file
diff --git a/ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf
deleted file mode 120000
index 89801aaa2c40..000000000000
--- a/ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf
+++ /dev/null
@@ -1 +0,0 @@
-HDAudio-DualCodecs.conf
\ No newline at end of file
diff --git a/ucm2/HDA Intel PCH/HiFi-dual.conf b/ucm2/HDA Intel PCH/HiFi-dual.conf
deleted file mode 100644
index 63b3fe61edc0..000000000000
--- a/ucm2/HDA Intel PCH/HiFi-dual.conf
+++ /dev/null
@@ -1,144 +0,0 @@
-SectionVerb {
- Value {
- TQ "HiFi"
- }
-
- EnableSequence [
- cset "name='Front Playback Volume' 100%"
- cset "name='Front Playback Switch' on"
- cset "name='Rear-Panel Capture Volume' 100%"
- cset "name='Rear-Panel Capture Switch' on"
- ]
-
- DisableSequence [
- cset "name='Front Playback Volume' 0"
- cset "name='Front Playback Switch' off"
- cset "name='Rear-Panel Capture Volume' 0"
- cset "name='Rear-Panel Capture Switch' off"
- ]
-}
-
-SectionDevice."Speaker" {
- Comment "Speaker"
-
- Value {
- PlaybackChannels "2"
- PlaybackPCM "hw:${CardId},4"
- }
-
- ConflictingDevice [
- "Headphone"
- ]
-
- EnableSequence [
- cset "name='Speaker Playback Switch' on"
- cset "name='Speaker Playback Volume' 100%"
- ]
-
- DisableSequence [
- cset "name='Speaker Playback Volume' 0"
- cset "name='Speaker Playback Switch' off"
- ]
-}
-
-SectionDevice."LineOut" {
- Comment "Line Out"
-
- Value {
- PlaybackChannels "2"
- PlaybackPCM "hw:${CardId},0"
- JackControl "Line Out Jack"
- JackHWMute "Speaker"
- }
-}
-
-SectionDevice."Headphones" {
- Comment "Headphones"
-
- Value {
- PlaybackChannels "2"
- PlaybackPCM "hw:${CardId},4"
- JackControl "Front Headphone Jack"
- JackHWMute "Speaker"
- }
-
- ConflictingDevice [
- "Speaker"
- ]
-
- EnableSequence [
- cset "name='Headphone Playback Switch' on"
- cset "name='Headphone Playback Volume' 100%"
- ]
-
- DisableSequence [
- cset "name='Headphone Playback Volume' 0"
- cset "name='Headphone Playback Switch' off"
- ]
-}
-
-SectionDevice."LineIn" {
- Comment "Rear Line In"
-
- Value {
- CaptureChannels "2"
- CapturePCM "hw:${CardId},0"
- JackControl "Line Jack"
- }
-
- ConflictingDevice [
- "RearMic"
- ]
-
- EnableSequence [
- cset "name='Input Source' Line"
- If.0 {
- Condition {
- Type ControlExists
- Control "name='Line Boost Volume'"
- }
- True {
- cset "name='Line Boost Volume' 3"
- }
- }
- ]
-}
-
-SectionDevice."RearMic" {
- Comment "Rear Microphone"
-
- Value {
- CaptureChannels "2"
- CapturePCM "hw:${CardId},0"
- # CapturePriority "150"
- JackHWMute "LineIn"
- }
-
- ConflictingDevice [
- "LineIn"
- ]
-
- EnableSequence [
- cset "name='Input Source' Rear Mic"
- ]
-}
-
-SectionDevice."FrontMic" {
- Comment "Front Microphone"
-
- Value {
- CaptureChannels "2"
- CapturePCM "hw:${CardId},4"
- JackControl "Front Mic Jack"
- }
-
- EnableSequence [
- cset "name='Front-Panel Capture Volume' 100%"
- cset "name='Front-Panel Capture Switch' on"
- ]
-
- DisableSequence [
- cset "name='Front-Panel Capture Volume' 0"
- cset "name='Front-Panel Capture Switch' off"
- ]
-}
diff --git a/ucm2/HDA-Intel/HDAudio-DualCodecs.conf b/ucm2/HDA-Intel/HDAudio-DualCodecs.conf
new file mode 100644
index 000000000000..8aaabd0c819d
--- /dev/null
+++ b/ucm2/HDA-Intel/HDAudio-DualCodecs.conf
@@ -0,0 +1,6 @@
+Syntax 2
+Comment "HDAudio with dual HD-audio codecs"
+SectionUseCase."HiFi" {
+ File "HiFi-dual.conf"
+ Comment "Default"
+}
diff --git a/ucm2/HDA-Intel/HDAudio-Gigabyte-ALC1220DualCodecs.conf b/ucm2/HDA-Intel/HDAudio-Gigabyte-ALC1220DualCodecs.conf
new file mode 120000
index 000000000000..89801aaa2c40
--- /dev/null
+++ b/ucm2/HDA-Intel/HDAudio-Gigabyte-ALC1220DualCodecs.conf
@@ -0,0 +1 @@
+HDAudio-DualCodecs.conf
\ No newline at end of file
diff --git a/ucm2/HDA-Intel/HDAudio-Lenovo-DualCodecs.conf b/ucm2/HDA-Intel/HDAudio-Lenovo-DualCodecs.conf
new file mode 120000
index 000000000000..89801aaa2c40
--- /dev/null
+++ b/ucm2/HDA-Intel/HDAudio-Lenovo-DualCodecs.conf
@@ -0,0 +1 @@
+HDAudio-DualCodecs.conf
\ No newline at end of file
diff --git a/ucm2/HDA-Intel/HiFi-dual.conf b/ucm2/HDA-Intel/HiFi-dual.conf
new file mode 100644
index 000000000000..846c6db75a51
--- /dev/null
+++ b/ucm2/HDA-Intel/HiFi-dual.conf
@@ -0,0 +1,118 @@
+SectionVerb {
+ Value {
+ TQ "HiFi"
+ PlaybackChannels 2
+ CaptureChannels 2
+ }
+
+ EnableSequence [
+ cset "name='Front Playback Volume' 100%"
+ cset "name='Front Playback Switch' on"
+ cset "name='Rear-Panel Capture Volume' 100%"
+ cset "name='Rear-Panel Capture Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Front Playback Volume' 0"
+ cset "name='Front Playback Switch' off"
+ cset "name='Rear-Panel Capture Volume' 0"
+ cset "name='Rear-Panel Capture Switch' off"
+ ]
+}
+
+SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},4"
+ PlaybackMixerElem "Speaker"
+ }
+
+ ConflictingDevice [
+ "Headphones"
+ ]
+}
+
+SectionDevice."Line1" {
+ Comment "Line Out"
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId}"
+ JackControl "Line Out Jack"
+ JackHWMute "Speaker"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ Value {
+ PlaybackPriority 300
+ PlaybackPCM "hw:${CardId},4"
+ PlaybackMixerElem "Headphone"
+ JackControl "Front Headphone Jack"
+ JackHWMute "Speaker"
+ }
+
+ ConflictingDevice [
+ "Speaker"
+ ]
+}
+
+SectionDevice."Line2" {
+ Comment "Rear Line In"
+
+ Value {
+ CapturePriority 200
+ CapturePCM "hw:${CardId}"
+ JackControl "Line Jack"
+ }
+
+ ConflictingDevice [
+ "Mic2"
+ ]
+
+ EnableSequence [
+ cset "name='Input Source' Line"
+ If.0 {
+ Condition {
+ Type ControlExists
+ Control "name='Line Boost Volume'"
+ }
+ True {
+ cset "name='Line Boost Volume' 3"
+ }
+ }
+ ]
+}
+
+SectionDevice."Mic2" {
+ Comment "Rear Microphone"
+
+ Value {
+ CapturePriority 300
+ CapturePCM "hw:${CardId}"
+ JackHWMute "Line2"
+ }
+
+ ConflictingDevice [
+ "Line2"
+ ]
+
+ EnableSequence [
+ cset "name='Input Source' Rear Mic"
+ ]
+}
+
+SectionDevice."Mic1" {
+ Comment "Front Microphone"
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId},4"
+ CaptureMixerElem "Front-Panel"
+ JackControl "Front Mic Jack"
+ }
+}
--
2.16.4