[Bug 1768830] [NEW] the audio can't work on Lenovo machines with dual analogue codecs under ubuntu 18.04

Launchpad Bug Tracker 1768830 at bugs.launchpad.net
Fri May 4 02:18:53 UTC 2018


You have been subscribed to a public bug by Hui Wang (hui.wang):

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.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: alsa-lib (Ubuntu)
     Importance: Critical
     Assignee: Hui Wang (hui.wang)
         Status: New


** Tags: originate-from-1735041 sutton
-- 
the audio can't work on Lenovo machines with dual analogue codecs under ubuntu 18.04
https://bugs.launchpad.net/bugs/1768830
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list