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)
commitd1f15e06b2af57228d11e33e06a172ff58f5bc1c
tree33fed3c2c6db96af504cc28ed89d60f1d243ab47
parente828b23734bfebe30e95964302bbb801d02fddf6
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