[SRU][Focal][PATCH 0/2] alsa/asoc: export the number of dmic to userspace to work with the latest ucm2 (focal)

Hui Wang hui.wang at canonical.com
Mon Feb 24 01:45:48 UTC 2020


BugLink: http://bugs.launchpad.net/bugs/1864400

[Impact]
In the ubuntu 20.04, we plan to integrate alsa-ucm-conf-v1.2.1.2
or alsa-ucm-conf-v1.2.2, in the ucm2, adding a new element to
tell pulseaudo the number of dmics on this machine, this needs kernel
to export the number via component.
Without these 2 patches, the pulseaudio will fail to initialize
on Lenovo X1 Carbon since this machine has 4 dmics.

[Fix]
Backported the patches from mainline kernel v5.6-c1

[Test Case]
Install the sof-firmware v1.4.2
Install the master branch of alsa-ucm-conf (focal will integrate it too)
Install the master branch of pulseaudio (focal will integrate it too)
boot the kernel with these patches, check the gnome-control-center,
all audio function work well.


[Regression Risk]
Low, the patches are backported from upstream kernel, and I tested
this patch on Lenovo and Dell dmic machines. And after merging
these 2 patches, the kernel still could work with old firmware
and ucm.


Jaroslav Kysela (2):
  ASoC: add control components management
  ASoC: intel/skl/hda - export number of digital microphones via control
    components

 include/sound/soc.h                          |  1 +
 sound/soc/intel/boards/skl_hda_dsp_generic.c |  8 ++++++++
 sound/soc/soc-core.c                         | 13 +++++++++++++
 sound/soc/sof/intel/hda.c                    |  3 ++-
 4 files changed, 24 insertions(+), 1 deletion(-)

-- 
2.17.1




More information about the kernel-team mailing list