]> git.baikalelectronics.ru Git - 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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Aug 2019 12:06:58 +0000 (14:06 +0200)
commit6c94900e8e927ddd11d923b0c7b249b13b095475
treeda042ea3718ff43df8175b7a991beb775d592886
parent74d7afa679401b6aa0b05bacf6bab02f9f149d7e
ALSA: hda - Don't override global PCM hw info flag

The commit 2c1e51b5e9bd ("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: 2c1e51b5e9bd ("ALSA - hda: Add support for link audio time reporting")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c