Skip to contentSkip to conversation

via8235 swaped channels

DISCUSSION Anton Worshevsky 2 participants 3 messages Jan 24, 2003 – Jan 27, 2003

lore
Share & tools
lore
#0 lore raw

Dear Takashi Iwai,

Quoted 4 lines · you
Quoted 4 lines
Quoted 4 lines

if someone has VIA8233, VIA8233A, VIA8233C or VIA8235 chipset, could you help the testing of the new driver?
the new driver code is found at

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
        http://www.alsa-project.org/~iwai/via82xx.c

i has VIA8235 and ALC650 codec. After installing new driver from cvs from 20030113, there is following problem:

In 5.1-channel dvd playback with xine using surround51 device, i has swapped Rear and Center/lfe channels.
RL <-> Center, RR <-> LFE

this can be fixed just by exchanging Rear and Center/LFE jacks

Quoted 6 lines
Quoted 6 lines

i fixed this with following patch for via82xx.c

812,813c812,815

<       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;

---

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
//    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;
      case 5: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16); break;
      case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;

I'm not sure that it is alsa problem, xine' may be.

TI> hmm, it could be due to the setting of ALC650. how is the status of TI> "Exchange Center/LFE" mixer switch?

This switch has no effect. Strange. Usually its muted. Now i think this is ALC650 problem.
Is there problem exist on via8235 with other codecs?

Quoted 4 lines
Quoted 4 lines

It will be nice to have a small prog for channel position testing in different playback modes, because now i know no 5.1ch source other then video player. In general multichannel playback has good quality now (with rc6 sound was cracking).

Can you point me to a 5.1ch test audio file where recorded signals for single channel in known order ?
I can easily understand where center channel is playing, but understanding where is Sub playing much more difficult task. You need big Stardestroyer for it =)

Anton Worshevsky

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

#1 lore raw

At Thu, 23 Jan 2003 23:29:56 +0300,

Quoted 31 lines · Anton Worshevsky

Dear Takashi Iwai,

Quoted 4 lines · you
Quoted 4 lines
Quoted 4 lines

if someone has VIA8233, VIA8233A, VIA8233C or VIA8235 chipset, could you help the testing of the new driver?
the new driver code is found at

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
        http://www.alsa-project.org/~iwai/via82xx.c

i has VIA8235 and ALC650 codec. After installing new driver from cvs from 20030113, there is following problem:

In 5.1-channel dvd playback with xine using surround51 device, i has swapped Rear and Center/lfe channels.
RL <-> Center, RR <-> LFE

this can be fixed just by exchanging Rear and Center/LFE jacks

Quoted 11 lines
Quoted 11 lines

i fixed this with following patch for via82xx.c

812,813c812,815

<       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;

---

Quoted 4 lines
//    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;
      case 5: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16); break;
      case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
Quoted 8 lines
Quoted 1 line
Quoted 1 line

I'm not sure that it is alsa problem, xine' may be.

TI> hmm, it could be due to the setting of ALC650. how is the status of TI> "Exchange Center/LFE" mixer switch?

This switch has no effect. Strange. Usually its muted. Now i think this is ALC650 problem.
Is there problem exist on via8235 with other codecs?

the switch above is irrelevant to this behavior. sorry for confusion. but there is another register bits, and i fixed it on the cvs.

please update your alsa-kernel tree via cvs and give a try.

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

It will be nice to have a small prog for channel position testing in different playback modes, because now i know no 5.1ch source other then video player. In general multichannel playback has good quality now (with rc6 sound was cracking).

Can you point me to a 5.1ch test audio file where recorded signals for single channel in known order ?
I can easily understand where center channel is playing, but understanding where is Sub playing much more difficult task. You need big Stardestroyer for it =)

well, i'm usually testing with a wav file decoded from an AC3 demo sound. the best way would be to create a file containing completely different samples (e.g. different songs) per channel...

Takashi

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

#2 lore raw
Quoted 26 lines · you
Quoted 26 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

if someone has VIA8233, VIA8233A, VIA8233C or VIA8235 chipset, could you help the testing of the new driver?
the new driver code is found at

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
        http://www.alsa-project.org/~iwai/via82xx.c

i has VIA8235 and ALC650 codec. After installing new driver from cvs from 20030113, there is following problem:

In 5.1-channel dvd playback with xine using surround51 device, i has swapped Rear and Center/lfe channels.
RL <-> Center, RR <-> LFE

this can be fixed just by exchanging Rear and Center/LFE jacks

Quoted 11 lines
Quoted 11 lines

i fixed this with following patch for via82xx.c

812,813c812,815

<       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;

---

Quoted 4 lines
//    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;
      case 5: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16); break;
      case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

I'm not sure that it is alsa problem, xine' may be.

TI> hmm, it could be due to the setting of ALC650. how is the status of TI> "Exchange Center/LFE" mixer switch?

This switch has no effect. Strange. Usually its muted. Now i think this is ALC650 problem.
Is there problem exist on via8235 with other codecs?

TI> the switch above is irrelevant to this behavior. sorry for confusion. TI> but there is another register bits, and i fixed it on the cvs.

TI> please update your alsa-kernel tree via cvs and give a try.

cvs from 25.01 don`t change this. as i understand we must to modify bits 15:14 in ALC650 vendor specific register MX6A (Multi-Channel Control). i see that value of this register is always 0000h. in addition, "Exchange Center/LFE" mixer switch, which must to set MX6A.3=1 do nothing. MX6A still has 0000h value.

ALC650 uses following default slot mapping (as in AC’97 spec. rev2.2) if MX6A=0000h

L  R  SL SR CEN LFE
3  4  7  8  6   9

now i`m again not sure that this is codec problem.

can anyone test this with other codec ?

Anton Worshevsky

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com