make als120 cards which report dsp version 3.x whilst only supporting 4.x

and *not* 3.x commands work
This commit is contained in:
Cameron Grant 2000-03-20 15:34:27 +00:00
parent 39004e693d
commit 3252a47be9
1 changed files with 5 additions and 2 deletions

View File

@ -202,9 +202,9 @@ static struct isa_pnp_id sbc_ids[] = {
{0x44008c0e, "Creative SB AWE64 Gold"}, /* CTL0044 */
{0x45008c0e, "Creative SB AWE64"}, /* CTL0045 */
{0x01000000, "Avance Logic ALS100+"}, /* @@@0001 */
{0x01000000, "Avance Logic ALS100+"}, /* @@@0001 - ViBRA16X clone */
{0x01100000, "Avance Asound 110"}, /* @@@1001 */
{0x01200000, "Avance Logic ALS120"}, /* @@@2001 */
{0x01200000, "Avance Logic ALS120"}, /* @@@2001 - ViBRA16X clone */
{0x02017316, "ESS ES1688"}, /* ESS1688 */
{0x68187316, "ESS ES1868"}, /* ESS1868 */
@ -292,6 +292,7 @@ sbc_attach(device_t dev)
scp->bd_ver = sb_identify_board(scp->io[0]) & 0x00000fff;
if (scp->bd_ver == 0) goto bad;
f = 0;
if (logical_id == 0x01200000 && scp->bd_ver < 0x0400) scp->bd_ver = 0x0499;
switch ((scp->bd_ver & 0x0f00) >> 8) {
case 1: /* old sound blaster has nothing... */
break;
@ -341,6 +342,8 @@ sbc_attach(device_t dev)
switch (logical_id) {
case 0x43008c0e: /* CTL0043 */
case 0x01200000:
case 0x01000000:
f |= BD_F_SB16X;
break;
}