]> 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)
commit4aa65c715fa503619515f850441155c645035a14
tree33fed3c2c6db96af504cc28ed89d60f1d243ab47
parent8b4b9daa8d2caf53ee2d9b05b24e05ffa25ad19f
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