This tarball file contains those 5 patches mentioned in the bug
description.


** Description changed:

  Steps:
  1. Install the ubuntu 18.04 on the machine of Lenovo P520.
  2. Login system.
  3. Plug in an external headset to record and playback in front and rear panel.
  
  Expected result:
  Output and input audio should work in front and rear panel.
  
  Actual result:
  Front panel audio doesn't work at all.
  Just output audio working, input audio does't work in rear panel.
+ 
+ 
+ So far the ubuntu 18.04 just imported alsa-lib v1.1.3-5 from debian.org.
+ 
+ And we have several Lenovo machines like Lenovo P520 which have 2
+ analogue audio codecs on them, to make the audio work on those machines,
+ the kernel needs 3 patches for alsa driver, and those 3 patches are
+ already in the linux kernel from linux-4.12, kernel is not a blocking
+ issue under ubuntu 18.04:
+ 
+ 7beb3a6e ALSA: hda - Support Gigabyte Gaming board with dual Realtek codecs
+ 56798e6b ALSA: hda - Use a helper function for renaming kctl names
+ ca169cc2 ALSA: hda/realtek - Add Dual Codecs support for Lenovo P520/420
+ 
+ 
+ Besides those 3 patches for kernel, we also need 5 more patches for alsa-lib. 
Because the ucm configuration files are named by card_long_name,  these 5 
patches intends to introduce the card_long_name searching for ucm and the 
configuration folder/files for Lenovo machines with dual analogue codecs. the 5 
patches are:
+ 
+ 2b9b3f01 ucm: Assure the user input card name not to exceed max size of
+ card long name (it is in the alsa-lib v1.1.4)
+ 
+ 4b9297e6 ucm: Load device-specific configuration file based on the card
+ long name (it is in the alsa-lib v1.1.4)
+ 
+ b7e56af8 conf/ucm: Add dual HD-audio codecs config for Lenovo (it is in
+ the alsa-lib v1.1.6)
+ 
+ 181f8e25 ucm: adding the folder of card_long_name when finding verb conf
+ file (it is in the alsa-lib v1.1.6+)
+ 
+ 81db276f conf/ucm: increase the input volume for LineIn (it is in the
+ alsa-lib v1.1.6+)
+ 
+ To backport these 5 patches to v1.1.3-5, the 3rd and 4th patch need
+ minor change to resolve the patch conflict. And I attached 5 patches to
+ this bug, these patches can be successfully applied to v1.1.3-5 without
+ any change.
+ 
+ After applying this patches, the ucm searcher will look for folder
+ according to card_long_name first, if it fails, it will fallback to use
+ card_name as before, so these 5 patches are safe and will not introduce
+ any regression.

** Attachment added: "patches.tar.bz2"
   
https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1768830/+attachment/5132947/+files/patches.tar.bz2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768830

Title:
  the audio can't work on Lenovo machines with dual analogue codecs
  under ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1768830/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to