From 086a95bd33eff332bc189321b2edbb02f172c7b6 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Wed, 30 Oct 2019 18:07:31 -0500 Subject: [PATCH] sof-bxt-pcm512x: initial import Doesn't do much except set the digital switches Signed-off-by: Pierre-Louis Bossart --- ucm/sof-bxt-pcm512x/HiFi | 36 ++++++++++++++++++++++++ ucm/sof-bxt-pcm512x/sof-bxt-pcm512x.conf | 10 +++++++ 2 files changed, 46 insertions(+) create mode 100644 ucm/sof-bxt-pcm512x/HiFi create mode 100644 ucm/sof-bxt-pcm512x/sof-bxt-pcm512x.conf diff --git a/ucm/sof-bxt-pcm512x/HiFi b/ucm/sof-bxt-pcm512x/HiFi new file mode 100644 index 00000000..9c0bbe8a --- /dev/null +++ b/ucm/sof-bxt-pcm512x/HiFi @@ -0,0 +1,36 @@ +# Use case Configuration for bxt-pcm512x + +SectionVerb { + EnableSequence [ + cdev "hw:sofbxtpcm512x" + exec "echo HiFi enable sequence" + cset "name='Digital Playback Switch' off" + cset "name='Digital Playback Volume' 120" + ] + + DisableSequence [ + cdev "hw:sofbxtpcm512x" + exec "echo HiFi disable sequence" + cset "name='Digital Playback Switch' on" + ] + + Value { + PlaybackPCM "hw:sofbxtpcm512x" + } +} + +SectionDevice."Ext Spk" { + Comment "RCA Line output" + + EnableSequence [ + cdev "hw:sofbxtpcm512x" + ] + + DisableSequence [ + cdev "hw:sofbxtpcm512x" + ] + + Value { + PlaybackChannels "2" + } +} diff --git a/ucm/sof-bxt-pcm512x/sof-bxt-pcm512x.conf b/ucm/sof-bxt-pcm512x/sof-bxt-pcm512x.conf new file mode 100644 index 00000000..308412b6 --- /dev/null +++ b/ucm/sof-bxt-pcm512x/sof-bxt-pcm512x.conf @@ -0,0 +1,10 @@ +SectionUseCase."HiFi" { + File "HiFi" + Comment "Play HiFi quality Music" +} + +SectionDefaults [ + cdev "hw:sofbxtpcm512x" + cset "name='Digital Playback Switch' off" + cset "name='Digital Playback Volume' 120" +]