summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_hdmi.c
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@linux.intel.com>2016-03-01 15:18:26 +0800
committerTakashi Iwai <tiwai@suse.de>2016-03-01 10:29:21 +0100
commitd10a80de04a3a8c0d7c1567cbc0a8d2e1181c10a (patch)
tree3985f3401683c6f672549da54d7c734a290e4b37 /sound/pci/hda/patch_hdmi.c
parenteedf5e72c42b5b155ac52324db72161c958b3af8 (diff)
downloadop-kernel-dev-d10a80de04a3a8c0d7c1567cbc0a8d2e1181c10a.zip
op-kernel-dev-d10a80de04a3a8c0d7c1567cbc0a8d2e1181c10a.tar.gz
ALSA: hda - hdmi_find_pcm_slot return value bug fix
hdmi_find_pcm_slot return -EBUSY when not no pcm slot found, not -ENODEV. So the caller should compare with -EBUSY. Fixes: a76056f2e57e ('ALSA: hda - hdmi dynamically bind PCM to pin when monitor hotplug') Signed-off-by: Libin Yang <libin.yang@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r--sound/pci/hda/patch_hdmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 21a2b28..490931d 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1758,7 +1758,7 @@ static void hdmi_attach_hda_pcm(struct hdmi_spec *spec,
if (per_pin->pcm)
return;
idx = hdmi_find_pcm_slot(spec, per_pin);
- if (idx == -ENODEV)
+ if (idx == -EBUSY)
return;
per_pin->pcm_idx = idx;
per_pin->pcm = get_hdmi_pcm(spec, idx);
OpenPOWER on IntegriCloud