aboutsummaryrefslogtreecommitdiffstats
path: root/hw/intel-hda.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-11-02 12:56:14 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-02 07:51:58 -0500
commit18ebcc86f2e21c83efe26b09218c859234876465 (patch)
tree00612bec37bee42705b93dc8e44cf84d03211ba9 /hw/intel-hda.c
parent5bb23927761db0d48507c60f56c4e28f72f3c2a7 (diff)
intel-hda: fix stream search
commit ba43d28916c4f51c19bd7366089155ce81bee058 introduces a bug: The stream-not-found case doesn't error out any more, instead the code silently uses the first stream. Fix it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/intel-hda.c')
-rw-r--r--hw/intel-hda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index 02def4c1e..10769e0f4 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -402,7 +402,7 @@ static bool intel_hda_xfer(HDACodecDevice *dev, uint32_t stnr, bool output,
break;
}
}
- if (st == NULL) {
+ if (s == 4) {
return false;
}
if (st->bpl == NULL) {