Skip to contentSkip to conversation

VIA 8233A, 8235 with ALC650 codec

DISCUSSION p z oooo 2 participants 3 messages Feb 19, 2003 1 message not in the archive

lore
Share & tools
lore

p z oooo

author
#0 lore raw

I played with 8233A ALC650 and:

1) this part of code is not working:

switch (runtime->channels) {
	case 1: slots = (1<<0) | (1<<4); break;
	case 2: slots = (1<<0) | (2<<4); break;
	case 3: slots = (1<<0) | (2<<4) | (5<<8); break;
	case 4: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12); break;
	case 5: slots = (1<<0) | (2<<4) | (5<<8) | (3<<12) | (4<<16); 
break;
	case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) 
| (4<<20); break;
	default: slots = 0; break;
	}
	/* STOP index is never reached */
	outl(0xff000000 | slots, VIADEV_REG(viadev, 

OFFSET_STOP_IDX));

I think that 8233A uses this slots mapping and this can't be changed with previous code. I changed
case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break;
to
case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
and this doesn't work (no change).

channels slots
1 - 3, 4
2 - 3, 4
4 - 3, 4, 7, 8
6 - 3, 4, 6, 9, 7, 8

Peter Zubaj

====================== REKLAMA ================================= Vyrazne zlavy pocitacov a prislusenstva
Toshiba Pocket PC e740 v cench u? od 24.300,- Sk bez DPH Navstivte nas na adrese http://www.somi.sk/akcie.php
================================================================

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge

#1 lore raw

At Wed, 19 Feb 2003 07:51:56 +0100,

Quoted 29 lines · p z oooo

I played with 8233A ALC650 and:

1) this part of code is not working:

switch (runtime->channels) {
	case 1: slots = (1<<0) | (1<<4); break;
	case 2: slots = (1<<0) | (2<<4); break;
	case 3: slots = (1<<0) | (2<<4) | (5<<8); break;
	case 4: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12); break;
	case 5: slots = (1<<0) | (2<<4) | (5<<8) | (3<<12) | (4<<16); 
break;
	case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) 
| (4<<20); break;
	default: slots = 0; break;
	}
	/* STOP index is never reached */
	outl(0xff000000 | slots, VIADEV_REG(viadev, 

OFFSET_STOP_IDX));

I think that 8233A uses this slots mapping and this can't be changed with previous code. I changed
case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break;
to
case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
and this doesn't work (no change).

Quoted 5 lines

channels slots
1 - 3, 4
2 - 3, 4
4 - 3, 4, 7, 8
6 - 3, 4, 6, 9, 7, 8

ok, i changed it on cvs.

thanks!

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge

A message that is not in the archive (sent off-list or not yet received): 000d01c2d7fb$4f521de0$8601a8c0@ZUBAJPNEW

#3 lore raw

At Wed, 19 Feb 2003 10:43:07 +0100,

Quoted 8 lines · Ing

Wait. My english is bad.

Do not change slots mapping.
Code from rc7 works good for 8233, 8233C and 8235 and I think is good. I want say, that it seems, that 8233A can not change slots mapping(outl(0xff000000 | slots, VIADEV_REG(viadev,

Quoted 1 line

OFFSET_STOP_IDX));). <- not working

ah, ok.
that's true. i forgot this, too.
these bits doesn't affect to VIA8233A.

Quoted 7 lines

I think, that this is default mapping for via8233A:
channels slots
1 - 3, 4 (L, R)
2 - 3, 4 (L, R)
4 - 3, 4, 7, 8 (L, R, SL, SR)
6 - 3, 4, 6, 9, 7, 8 (L, R, C, W, SL, SR)

Quoted 7 lines

Code from rc7:
playing mono, stereo, 4 channel - ok
6 - channel - swapped rear channels with center, lfe.

sollution:
1,2,4 channels - ac97 (ALC650) register 0x6a bits 30-31 = 0 6 channels - ac97 (ALC650) register 0x6a bits 30-31 = 1

hmm, perhaps this is the easiest way (although it's not beautiful :)

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge