intel-hda: fix stream search

commit ba43d28916 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>
This commit is contained in:
Gerd Hoffmann 2011-11-02 12:56:14 +01:00 committed by Anthony Liguori
parent 5bb2392776
commit 18ebcc86f2

View File

@ -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) {