The -41 introduced this commit from stable kernel, after reverting it,
the sof driver will not print calltrace anymore (#4). And the kernle-5.4
(focal) also backported this commit, but it doesn't introduce the
calltrace in the 5.4 kernel. So it looks like to backport this commit to
5.3, we need something else which is not in kernel-5.3 but is in the
kernel-5.4.

commit 063821115e02229d5fd3de31bad270d5e30aeb41
Author: Dragos Tarcatu <dragos_tarc...@mentor.com>
Date:   Mon Dec 9 18:39:38 2019 -0600

    ASoC: topology: Check return value for snd_soc_add_dai_link()
    
    BugLink: https://bugs.launchpad.net/bugs/1861929
    
    [ Upstream commit 76d2703649321c296df7ec0dafd50add96215de4 ]
    
    snd_soc_add_dai_link() might fail. This situation occurs for
    instance in a very specific use case where a PCM device and a
    Back End DAI link are given identical names in the topology.
    When this happens, soc_new_pcm_runtime() fails and then
    snd_soc_add_dai_link() returns -ENOMEM when called from
    soc_tplg_fe_link_create(). Because of that, the link will not
    get added into the card list, so any attempt to remove it later
    ends up in a panic.
    
    Fix that by checking the return status and free the memory in case
    of an error.
    
    Reviewed-by: Ranjani Sridharan <ranjani.sridha...@linux.intel.com>
    Signed-off-by: Dragos Tarcatu <dragos_tarc...@mentor.com>
    Signed-off-by: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com>
    Link: 
https://lore.kernel.org/r/20191210003939.15752-2-pierre-louis.boss...@linux.intel.com
    Signed-off-by: Mark Brown <broo...@kernel.org>
    Signed-off-by: Sasha Levin <sas...@kernel.org>
    Signed-off-by: Kamal Mostafa <ka...@canonical.com>
    Signed-off-by: Khalid Elmously <khalid.elmou...@canonical.com>

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

Title:
  PCI/internal sound card not detected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1864061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to