diff options
author | cg <cg@FreeBSD.org> | 1999-12-19 22:28:31 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 1999-12-19 22:28:31 +0000 |
commit | c0e3cdc19dadb776f581197bade7f59b75097a5e (patch) | |
tree | 11a0c4f20471ca506e8193e0ee62a6b385ff10bb /sys | |
parent | 51ac669d2230d2774d4a1246644f25a429eae772 (diff) | |
download | FreeBSD-src-c0e3cdc19dadb776f581197bade7f59b75097a5e.zip FreeBSD-src-c0e3cdc19dadb776f581197bade7f59b75097a5e.tar.gz |
note to self: vibra16c is not vibra16x
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/isa/sbc.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/dev/sound/isa/sbc.c b/sys/dev/sound/isa/sbc.c index 88662e0..1818625 100644 --- a/sys/dev/sound/isa/sbc.c +++ b/sys/dev/sound/isa/sbc.c @@ -305,15 +305,13 @@ sbc_attach(device_t dev) f |= BD_F_SB16 | BD_F_MIX_CT1745; if (scp->drq[0]) dl = rman_get_start(scp->drq[0]); else dl = -1; if (scp->drq[1]) dh = rman_get_start(scp->drq[1]); else dh = dl; - if (!logical_id) { - if (dh < dl) { - struct resource *r; - r = scp->drq[0]; - scp->drq[0] = scp->drq[1]; - scp->drq[1] = r; - dl = rman_get_start(scp->drq[0]); - dh = rman_get_start(scp->drq[1]); - } + if (!logical_id && (dh < dl)) { + struct resource *r; + r = scp->drq[0]; + scp->drq[0] = scp->drq[1]; + scp->drq[1] = r; + dl = rman_get_start(scp->drq[0]); + dh = rman_get_start(scp->drq[1]); } /* soft irq/dma configuration */ x = -1; @@ -335,7 +333,6 @@ sbc_attach(device_t dev) } switch (logical_id) { - case 0x01008c0e: /* CTL0001 */ case 0x43008c0e: /* CTL0043 */ f |= BD_F_SB16X; break; |