]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix a wrong busy check in alt PCM open
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Jul 2015 07:22:10 +0000 (09:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Jul 2015 07:27:56 +0000 (09:27 +0200)
commit70818c4975a42c34066808261b5d591e2ff2fab0
tree33fed3c2c6db96af504cc28ed89d60f1d243ab47
parent42caed2dc2ae225c2521edc7e7d675f1a41f989d
ALSA: hda - Fix a wrong busy check in alt PCM open

Currently, the alt PCM open callback returns -EBUSY when an
independent HP is turned off, supposing that it conflicts with the
main PCM.  However, obviously, this check is wrong when the
independent HP itself isn't enabled but the alt PCM was explicitly
created via alc_dac_nid by a codec driver.

Reported-and-tested-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c