From 34c18c4fc57e1d2fb887aa036e407c7e219612b6 Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Sun, 19 Dec 1999 22:28:31 +0000 Subject: [PATCH] note to self: vibra16c is not vibra16x --- sys/dev/sound/isa/sbc.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/sys/dev/sound/isa/sbc.c b/sys/dev/sound/isa/sbc.c index 88662e0c84c4..181862551e5f 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;