From 563f6e02391274b66b2c38bd1f270469a9b277e4 Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Thu, 20 May 2021 08:32:29 +0300 Subject: [PATCH] tegra: Add UCM for ASUS Google Nexus 7 (2012) 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 Signed-off-by: Jaroslav Kysela --- .../Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf | 15 +++++++++++++++ .../conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 ucm2/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf create mode 100644 ucm2/conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf 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 index 0000000..a034116 --- /dev/null +++ b/ucm2/Tegra/rt5640/ASUS Google Nexus 7 ALC5642.conf @@ -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 index 0000000..1a0978c --- /dev/null +++ b/ucm2/conf.d/tegra/ASUS Google Nexus 7 ALC5642.conf @@ -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" +} -- 2.47.1