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:
parent
5bb2392776
commit
18ebcc86f2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user