[PATCH] ucm2: hdadsp: add basic ucm config

Jaroslav Kysela perex at perex.cz
Mon Mar 9 14:01:18 CET 2020


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 at linux.intel.com>
> ---
>   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 at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list