diff options
author | Alexander Motin <mav@FreeBSD.org> | 2017-11-25 09:42:14 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2017-11-25 09:42:14 +0000 |
commit | 3228add807e36e68fbed12584afbbf98b13e6dbd (patch) | |
tree | ae4c55bd0f6ec40b8f561031b07671e2ee00059c /sys | |
parent | 216f72f1416cb23de8b64ae78702ed30638ca9a9 (diff) |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/pci/hda/hdac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index a41e448312531..a996d003b17b7 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -1801,7 +1801,7 @@ hdac_find_stream(struct hdac_softc *sc, int dir, int stream) int i, ss; ss = -1; - /* Allocate ISS/BSS first. */ + /* Allocate ISS/OSS first. */ if (dir == 0) { for (i = 0; i < sc->num_iss; i++) { if (sc->streams[i].stream == stream) { @@ -1869,7 +1869,7 @@ hdac_stream_alloc(device_t dev, device_t child, int dir, int format, int stripe, /* Allocate stream number */ if (ss >= sc->num_iss + sc->num_oss) - stream = 15 - (ss - sc->num_iss + sc->num_oss); + stream = 15 - (ss - sc->num_iss - sc->num_oss); else if (ss >= sc->num_iss) stream = ss - sc->num_iss + 1; else |