OSDN Git Service

tegra: Add UCM for ASUS Google Nexus 7 (2012)
authorDmitry Osipenko <digetx@gmail.com>
Thu, 20 May 2021 05:32:29 +0000 (08:32 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 27 May 2021 07:08:38 +0000 (09:08 +0200)
ASUS Google Nexus 7 tablet device is powered by NVIDIA Tegra30 SoC, it
has Realtek ALC5642 audio CODEC, which is compatible with the RT5640 CODEC.
Nexus 7 has a 2-channel built-in speaker, built-in 2-channel microphone,
a 3-pin 3.5mm jack for headphones, and a custom external audio output for
docking-station. The docking-station configuration isn't supported because
it's unsupported by the upstream Linux kernel yet.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf [new file with mode: 0644]
ucm2/conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf [new file with mode: 0644]

diff --git a/ucm2/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf b/ucm2/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf
new file mode 100644 (file)
index 0000000..a034116
--- /dev/null
@@ -0,0 +1,15 @@
+# Use case Configuration for ASUS Google Nexus 7 (2012)
+
+Define.HaveAif1 "yes"
+Define.HaveAif2 ""
+Define.HaveSpeaker "yes"
+Define.HaveHeadsetMic ""
+Define.HaveInternalMic "yes"
+
+Include.hp.File "/codecs/rt5640/HeadPhones.conf"
+Include.mspk.File "/codecs/rt5640/Speaker.conf"
+Include.dmic.File "/codecs/rt5640/DigitalMics.conf"
+
+SectionVerb {
+       Include.e.File "/codecs/rt5640/EnableSeq.conf"
+}
diff --git a/ucm2/conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf b/ucm2/conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf
new file mode 100644 (file)
index 0000000..1a0978c
--- /dev/null
@@ -0,0 +1,8 @@
+# Use case Configuration for ASUS Google Nexus 7 (2012)
+
+Syntax 4
+
+SectionUseCase."HiFi" {
+       File "/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf"
+       Comment "Play HiFi quality Music"
+}