On a machine Lenovo Thinkpad X1 Carbon 7th, running Bionic, verification
failed.

What i did:

1) Enabled Proposed repository
2) Installed libasound2:

```
> dpkg -l | grep libasound2
ii  libasound2:amd64                           1.1.3-5ubuntu0.3                 
               amd64        shared library for ALSA applications
ii  libasound2-data                            1.1.3-5ubuntu0.3                 
               all          Configuration files and profiles for ALSA drivers
ii  libasound2-plugins:amd64                   1.1.1-1ubuntu1                   
               amd64        ALSA library additional plugins

```

3) Upgraded linux-firmware to "1.173.15"
4) Installed "linux-oem-osp1" - "5.0.0-1038-oem-osp1"
5) Verified that all the UCM files are there:

```
ucm
├── apq8064-tabla-snd-card
├── broadwell-rt286
├── chtrt5645
├── DAISY-I2S
├── DB410c
├── Dell-WD15-Dock
├── GoogleNyan
├── HDAudio-Lenovo-DualCodecs
├── LENOVO-20QE000VMC-ThinkPadX1Carbon7th-20QE000VMC
├── LENOVO-20QESITR05-ThinkPadX1Carbon7th-20QESITR05
├── LENOVO-20UB0SIT17-ThinkPadX1YogaGen5-20UB0SIT17
├── LENOVO-MFG_IN_GO-ThinkPad-MFG_IN_GO
├── Manta-I2S
├── Manta-SPDIF
├── msm8974-taiko-mtp-snd-card
├── PandaBoard
├── PandaBoardES
├── PAZ00
├── SDP4430
├── skylake-rt286
├── sof-skl_hda_card
├── tegraalc5632
├── tegra-rt5640
├── Tuna
└── VEYRON-I2S
```

6) Blacklisted "snd_soc_skl" and "snd_hda_intel" on 
"/etc/modprobe.d/blacklist.conf"
7) Verified that SOF firmware has been loaded correctly:

```
  dmesg | grep sof | grep -iv microsoft
[    3.558639] sof-audio-pci 0000:00:1f.3: warning: No matching ASoC machine 
driver found
[    3.558647] sof-audio-pci 0000:00:1f.3: DSP detected with PCI 
class/subclass/prog-if 0x040380
[    3.558800] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[    3.567161] sof-audio-pci 0000:00:1f.3: Linked as a consumer to 0000:00:02.0
[    3.567247] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops 
i915_audio_component_bind_ops [i915])
[    3.607451] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[    3.607454] sof-audio-pci 0000:00:1f.3: using HDA machine driver 
skl_hda_dsp_generic now
[    3.641575] sof-audio-pci 0000:00:1f.3: unexpected ipc interrupt raised!
[    3.641577] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 
0x0
[    3.723585] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:1:0-0f736
[    3.723587] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:7:0 Kernel ABI 3:6:0
[    3.723588] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than 
kernel
[    3.723793] sof-audio-pci 0000:00:1f.3: firmware boot complete
[    3.969365] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:7:0 Kernel ABI 3:6:0
[    3.969366] sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent 
than kernel
[    3.969369] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 
Tx not handled
[    3.970268] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name 
codec0_in not handled
[    3.970269] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 
Tx not handled
[    3.970986] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name 
codec1_in not handled
[    3.970989] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 
Tx not handled
[    3.971741] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
codec0_out not handled
[    3.971743] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog 
CPU Playback not handled
[    3.972525] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
codec1_out not handled
[    3.972527] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital 
CPU Playback not handled
[    3.972529] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name 
codec2_in not handled
[    3.972531] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt 
Analog CPU Playback not handled
[    3.972532] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
codec2_out not handled
[    3.972534] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog 
CPU Capture not handled
[    3.973342] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
iDisp1_out not handled
[    3.973343] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital 
CPU Capture not handled
[    3.974153] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
iDisp2_out not handled
[    3.974155] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt 
Analog CPU Capture not handled
[    3.974930] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name 
iDisp3_out not handled
[    3.981916] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, 
widget card binding deferred
[    4.058562] input: sof-skl_hda_card Mic as 
/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16
[    4.058597] input: sof-skl_hda_card Headphone as 
/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input17
[    4.058638] input: sof-skl_hda_card HDMI/DP,pcm=3 as 
/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input18
[    4.058665] input: sof-skl_hda_card HDMI/DP,pcm=4 as 
/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input19
[    4.058697] input: sof-skl_hda_card HDMI/DP,pcm=5 as 
/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input20
[    5.857580] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 
0x0
[    5.953052] sof-audio-pci 0000:00:1f.3: firmware boot complete
[   14.582472] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 
0x0
[   14.678517] sof-audio-pci 0000:00:1f.3: firmware boot complete
```

I restarted everything and now i have several problems:

1) Just the front speakers get recognized (not 4+1)
2) The microphone gets routed to the soundcard instead of DMIC.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-lib in Ubuntu.
https://bugs.launchpad.net/bugs/1859754

Title:
  add ucm to make alsa/sof driver work under PA (variants of Lenovo X1
  Carbon 7th, Dell cnl and cml machines)

Status in alsa-lib package in Ubuntu:
  Fix Committed
Status in alsa-lib source package in Bionic:
  Fix Committed
Status in alsa-lib source package in Eoan:
  Fix Committed

Bug description:
  This ucm is only for Eoan and Bionic, for focal and future versions,
  we plan to integrate the ucm2 instead of this ucm, and the ucm2
  depends on the alsa-lib-1.2.1 and pluseaudio-v14, the ucm2 is under
  developing by the community, is not ready yet.

  [Impact]
  In the oem project, we have a couple of Lenovo and Dell machines which
  connect the digital mic to PCH directly, this design needs the new
  sound driver soc/sof, and this driver can't work under pulseaudio
  automatically, we need to integrate the ucm for the driver, then the
  sof dirver could work under pulseaudio and gnome.

  This ucm is maintained by intel audio team, and it is not upstreamed
  and will not be upstreamed, since the community is developing the ucm2
  which is based on at least alsa-lib-1.2.1 and pulseaudio-v14.0 (still
  under developing), for bionic and eoan, we have to integrate this ucm
  since the alsa-lib version is too low. For focal and future version, we
  are going to integrate the ucm2 after the ucm2 is ready.

  This ucm is already verified in the oem project, now it is time to put it
  into the stock ubuntu. 

  [Fix]
  These ucm files are backported from sof_ucm1 branch of
  https://github.com/thesofproject/alsa-ucm-conf.git

  [Test Case]
  Boot the eoan kernel or oem-osp1-bionic kernel, then check the log of
  pulseaudio, the ucm files are loaded successfully, then check the
  gnome-sound-setting, both output and input devices work well.

  [Regression Risk]
  Low, just add some new ucm files, and this will not affect other machines,
  and those new added ucm files are only used by specific machines which enable
  the sof driver.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1859754/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to