Re: [PATCH] ucm2: hdadsp: add basic ucm config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 06. 03. 20 v 12:30 Mateusz Gorski napsal(a):
Basic UCM configuration for HDA DSP generic enabling codec playback and
capture on both HDA codec and DMIC ports.

Could you describe for what Linux driver (source code) is this configuration?


Signed-off-by: Mateusz Gorski <mateusz.gorski@xxxxxxxxxxxxxxx>
---
  ucm2/hdadsp/hdadsp.conf | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
  create mode 100644 ucm2/hdadsp/hdadsp.conf

diff --git a/ucm2/hdadsp/hdadsp.conf b/ucm2/hdadsp/hdadsp.conf
new file mode 100644
index 0000000..4e98545
--- /dev/null
+++ b/ucm2/hdadsp/hdadsp.conf
@@ -0,0 +1,16 @@
+# UCM for Intel CAVS platforms
+# For Audio in HDA and DMIC mode
+
+ValueDefaults {
+	PlaybackChannels "2"
+	PlaybackPriority "1"
+	CaptureChannels "2"
+	CapturePriority "2"
+}

Remove PlaybackChannel and Priority defaults. The priorities should be defined in the device section.

+
+SectionDefaults [
+	cdev "hw:hdadsp"

It should be "hw:${CardId}" for ucm2.

+	cset "name='codec0_out mo media0_in mi Switch' 1"
+	cset "name='media0_out mo codec0_in mi Switch' 1"
+	cset "name='mch_cap_out mo mch_cap_in mi Switch' 1"
+]

This file does not define any devices. Does pulseaudio work with this configuration?

						Jaroslav


--
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux