]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: hda - Don't override global PCM hw info flag
authorTakashi Iwai <tiwai@suse.de>
Tue, 6 Aug 2019 12:03:56 +0000 (14:03 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 17 Sep 2019 16:02:18 +0000 (18:02 +0200)
commitdc71dd9977de8c608763ef64742916c34fb0ad70
tree5051ec516d3ee2ccf6ed69353d0cde2950ecf4e0
parent5dc00d22ab1b851373cc2102bb099a71c50e8bac
ALSA: hda - Don't override global PCM hw info flag

BugLink: https://bugs.launchpad.net/bugs/1840520
commit c1c6c877b0c79fd7e05c931435aa42211eaeebaf upstream.

The commit bfcba288b97f ("ALSA - hda: Add support for link audio time
reporting") introduced the conditional PCM hw info setup, but it
overwrites the global azx_pcm_hw object.  This will cause a problem if
any other HD-audio controller, as it'll inherit the same bit flag
although another controller doesn't support that feature.

Fix the bug by setting the PCM hw info flag locally.

Fixes: bfcba288b97f ("ALSA - hda: Add support for link audio time reporting")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/pci/hda/hda_controller.c