[linux-yocto] [PATCH 1/1] ALSA: hda - hdmi_find_pcm_slot return value bug fix
California Sullivan
california.l.sullivan at intel.com
Tue Jun 21 15:55:33 PDT 2016
From: Libin Yang <libin.yang at linux.intel.com>
commit d10a80de04a3a8c0d7c1567cbc0a8d2e1181c10a upstream.
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 at linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
Signed-off-by: California Sullivan <california.l.sullivan at intel.com>
---
sound/pci/hda/patch_hdmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 0de79ef..5b5e5db 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1215,7 +1215,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);
--
2.5.5
More information about the linux-yocto
mailing list