Skip to contentSkip to conversation

conf/ucm: kblrt5660: Add ucm setting for Dell Edge IoT platform

PATCH In review Hui Wang 2 participants 2 messages Dec 24, 2018 – Jan 1, 2019

lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH 1/1 conf/ucm: kblrt5660: Add ucm setting for Dell Edge IoT platform

The new generation of Dell Edge IoT platform is based on Intel Kabylake platform, and the audio codec is ALC3277 which is 100% compatible with RT5660 in I2S mode.

The audio design on this IoT platform is as below:
- Intel kabylake platform
- connect the codec ALC3277 via SSP0
- line-out and line-in with Micbias jacks
- line-out mute control and jack detection of line-out and line-in
- two HDMI ports with audio capability

---
 configure.ac                          |  1 +
 src/conf/ucm/Makefile.am              |  1 +
 src/conf/ucm/kblrt5660/Hdmi1          | 20 +++++++
 src/conf/ucm/kblrt5660/Hdmi2          | 20 +++++++
 src/conf/ucm/kblrt5660/HiFi           | 85 +++++++++++++++++++++++++++
 src/conf/ucm/kblrt5660/Makefile.am    |  4 ++
 src/conf/ucm/kblrt5660/kblrt5660.conf | 18 ++++++
 7 files changed, 149 insertions(+)
 create mode 100755 src/conf/ucm/kblrt5660/Hdmi1
 create mode 100755 src/conf/ucm/kblrt5660/Hdmi2
 create mode 100755 src/conf/ucm/kblrt5660/HiFi
 create mode 100755 src/conf/ucm/kblrt5660/Makefile.am
 create mode 100755 src/conf/ucm/kblrt5660/kblrt5660.conf
configure.ac +1 -0
index d0cab2d6..6185a7eb 100644
@@ -745,6 +745,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
 	  src/conf/ucm/gpd-win-pocket-rt5645/Makefile \
 	  src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \
 	  src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \
+	  src/conf/ucm/kblrt5660/Makefile \
 	  src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \
 	  src/conf/ucm/PandaBoard/Makefile \
 	  src/conf/ucm/PandaBoardES/Makefile \
src/conf/ucm/Makefile.am +1 -0
index 85c15090..993d02bb 100644
@@ -29,6 +29,7 @@ GoogleNyan \
 gpd-win-pocket-rt5645 \
 HDAudio-Gigabyte-ALC1220DualCodecs \
 HDAudio-Lenovo-DualCodecs \
+kblrt5660 \
 LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \
 PandaBoard \
 PandaBoardES \
src/conf/ucm/kblrt5660/Hdmi1 new file +20 -0
new file mode 100755
index 00000000..95e6187a
@@ -0,0 +1,20 @@
+# Usecase for device HDMI1/Display Port stereo playback on Intel KABYLAKE platforms
+# For Audio in I2S mode
+
+SectionDevice."Hdmi1" {
+        Comment "HDMI/Display Port 1 Stereo"
+
+        EnableSequence [
+        ]
+
+        DisableSequence [
+        ]
+
+        Value {
+                PlaybackPCM "hw:kblrt5660,2"
+                PlaybackChannels "2"
+                PlaybackPriority "2"
+                JackControl "HDMI/DP, pcm=4 Jack"
+        }
+}
+
src/conf/ucm/kblrt5660/Hdmi2 new file +20 -0
new file mode 100755
index 00000000..f6d2feee
@@ -0,0 +1,20 @@
+# Usecase for device HDMI2/Display Port stereo playback on Intel KABYLAKE platforms
+# For Audio in I2S mode
+
+SectionDevice."Hdmi2" {
+        Comment "HDMI/Display Port 2 Stereo"
+
+        EnableSequence [
+        ]
+
+        DisableSequence [
+        ]
+
+        Value {
+                PlaybackPCM "hw:kblrt5660,3"
+                PlaybackChannels "2"
+                PlaybackPriority "3"
+                JackControl "HDMI/DP, pcm=5 Jack"
+        }
+}
+
src/conf/ucm/kblrt5660/HiFi new file +85 -0

85 lines not on this page · raw message

src/conf/ucm/kblrt5660/Makefile.am new file +4 -0
new file mode 100755
index 00000000..83c3743a
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/kblrt5660
+ucm_DATA = kblrt5660.conf HiFi Hdmi1 Hdmi2
+EXTRA_DIST = $(ucm_DATA)
src/conf/ucm/kblrt5660/kblrt5660.conf new file +18 -0
new file mode 100755
index 00000000..c5e9420e
@@ -0,0 +1,18 @@
+SectionUseCase."HiFi" {
+	File "HiFi"
+	Comment "Play HiFi quality Music"
+}
+
+SectionUseCase."Hdmi1" {
+        File "Hdmi1"
+        Comment "Play on Hdmi/DP 1"
+}
+
+SectionUseCase."Hdmi2" {
+        File "Hdmi2"
+        Comment "Play on Hdmi/DP 2"
+}
+
+SectionDefaults [
+	cdev "hw:kblrt5660"
+]
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Hui Wang

The new generation of Dell Edge IoT platform is based on Intel Kabylake platform, and the audio codec is ALC3277 which is 100% compatible with RT5660 in I2S mode.

Quoted 8 lines

The audio design on this IoT platform is as below:
- Intel kabylake platform
- connect the codec ALC3277 via SSP0
- line-out and line-in with Micbias jacks
- line-out mute control and jack detection of line-out and line-in
- two HDMI ports with audio capability

Applied now. Thanks.

Takashi