ALC655 in CVS: Are Center/LFE switched with Surround?
I've finally got 5.1 out of my via82xx/ALC655 system using the Line-In/Mic jacks! Thanks Takashi.
However I seem to have got Center/LFE switched with Surround. I.e. if I play xine & mplayer (L, R, RearL, RearR, Center, LFE) through surround51 I get Center/LFE switched with Rear speakers.
I must use the following to work in .asoundrc
pcm_slave.sltest {
pcm "hw:0,1"
channels 6
}
pcm.via51 {
type plug
ttable.0.0 1 ttable.1.1 1 ttable.2.4 1 ttable.3.5 1 ttable.4.2 1 ttable.5.3 1
slave sltest
}
Has anyone else observed this problem?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
At Wed, 19 Nov 2003 23:04:57 +0800,
Quoted 5 lines · Richard Chan
I've finally got 5.1 out of my via82xx/ALC655 system using the Line-In/Mic jacks!
Thanks Takashi.
glad to hear that it works now. what was the problem?
Quoted 3 lines
However I seem to have got Center/LFE switched with Surround. I.e. if I play xine & mplayer (L, R, RearL, RearR, Center, LFE) through surround51 I get Center/LFE switched with Rear speakers.
ah, this reminds me an old story.
there is a mixer switch "Swap Surround Slot". and, IIRC, starngely enough, for 5.1 this should be turned on for 5.1 output while it's off for 4.0.
Quoted 7 lines
I must use the following to work in .asoundrc
pcm_slave.sltest { pcm "hw:0,1" channels 6 }
Quoted 10 lines
pcm.via51 {
type plug
ttable.0.0 1
ttable.1.1 1
ttable.2.4 1
ttable.3.5 1
ttable.4.2 1
ttable.5.3 1
slave sltest
}this is also a solution, but the attached would be more "light" way. copy the attached file to /usr/share/alsa/cards.
also, if you have chance, please test 4.0 output, too.
thanks,
Takashi
Quoted 4 lines · Takashi Iwai
At Wed, 19 Nov 2003 23:04:57 +0800,
Richard Chan wrote:
Quoted 12 lines
Quoted 4 lines
I've finally got 5.1 out of my via82xx/ALC655 system using the Line-In/Mic jacks! Thanks Takashi.
glad to hear that it works now. what was the problem?
I was using
amixer set 'Line-In As Surround' unmute
I guess I needed to use
amixer set 'Line-In As Surround' on
Thanks - will try the new config files and report back.
Richard
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Alas, the new VIA82XX.conf doesn't fix the problem. (ALC655 does not have the "Slot Modify" feature of ALC650). Also I realise I still need a plug with slave.channels 6
If I use surround51 directly I cannot get sound out of the other four speakers. This plug gives me rear sound
pcm.testrear {
type plug
####Aargh!! should be ttable.0.2 and ttable.0.3#### ####Changing Swap Surround Slot doesn't help### ####ALC655 does not have Slot Modify control bits in register 6A###
ttable.0.4 1
ttable.1.5 1
slave.pcm surround51
slave.channels 6
}(I notice surround50.conf has the slave channels set; can something similar be put inside surround51.conf?)
xine will also not product surround sound with the surround51 device - I need to use a plug with channels set to 6.
Funny though mplayer works with the surround51 device (though channels are swapped).
Quoted 51 lines · Takashi Iwai
At Wed, 19 Nov 2003 23:04:57 +0800,
Quoted 4 lines · Richard Chan
I've finally got 5.1 out of my via82xx/ALC655 system using the Line-In/Mic jacks! Thanks Takashi.
glad to hear that it works now. what was the problem?
Quoted 5 lines
However I seem to have got Center/LFE switched with Surround. I.e. if I play xine & mplayer (L, R, RearL, RearR, Center, LFE) through surround51 I get Center/LFE switched with Rear speakers.
ah, this reminds me an old story.
there is a mixer switch "Swap Surround Slot". and, IIRC, starngely enough, for 5.1 this should be turned on for 5.1 output while it's off for 4.0.Quoted 6 lines
I must use the following to work in .asoundrc
pcm_slave.sltest { pcm "hw:0,1" channels 6 }Quoted 12 lines
pcm.via51 { type plug ttable.0.0 1 ttable.1.1 1 ttable.2.4 1 ttable.3.5 1 ttable.4.2 1 ttable.5.3 1 slave sltest }this is also a solution, but the attached would be more "light" way. copy the attached file to
/usr/share/alsa/cards.
also, if you have chance, please test 4.0 output, too.
Quoted 10 lines
thanks,
Takashi
------------------------------------------------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Testers of via82xx 5.1 output (Re: ALC655 in CVS: Are Center/LFE switched with Surround?)
At Thu, 20 Nov 2003 00:35:10 +0800,
Quoted 4 lines · Richard Chan
Alas, the new VIA82XX.conf doesn't fix the problem. (ALC655 does not have the "Slot Modify" feature of ALC650). Also I realise I still need a plug with slave.channels 6
oh yeah, you're right, ALC655 is not completely compatible with ALC655...
ok, the attached patch is a quick hack for better supporting ALC655 and ALC658. it includes the swap of via82xx 5.1 output (again).
IIRC, the slot assignment was determined by reports of someone else, and we confirmed that is the correct order. but, apparently, it's not true on your board.
possibly this depends on the codec or mobo..? not sure, why the slots are swapped on yours.
***
so, now the "CALL FOR TESTS".
does anyone have 5.1 output-capable boards with VIA823x chipset? the VIA8233A is exception. it needs a different way to handle. if it's one of the others, VIA8233,A,C or 8235, please check whether the jack assignment of 5.1 output is correct.
regardless whether the output is correct or not, please give the feedback together with the info, which ac97 codec is on it. see /proc/asound/card0/ac97#0 for that.
oh, don't forget to update to 1.0.0pre1 version!
thanks,
Takashi
Re: Testers of via82xx 5.1 output - report - swapped output still there
In reply to Takashi Iwaivia82xx with ALC655/8 patch and 1.0.0pre1
Summary -
Swapped output 2,3==Center/LFE and 4,5==Surround
has not been fixed by the patch.
/proc/asound> cat version
Advanced Linux Sound Architecture Driver Version 1.0.0pre1. Compiled on Nov 20 2003 for kernel 2.6.0-test9.2R.
/proc/asound> cat card0/codec97#0/ac97#0-0
0-0/0: Realtek ALC655 rev 0
Capabilities : DAC resolution : 16-bit ADC resolution : 16-bit 3D enhancement : No 3D Stereo Enhancement
Current setup
Mic gain : +0dB [+0dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1
ADC/DAC loopback : off
Extended ID : codec=0 rev=2 LDAC SDAC CDAC DSA=0 SPDIF
Extended status : SPCV LDAC SDAC CDAC SPDIF=res SPDIF
SPDIF Control : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
/proc/asound> cat card0/codec97#0/ac97#0-0+regs
0:00 = 0000
0:02 = 0606
0:04 = 0000
0:06 = 801f
0:08 = 0000
0:0a = 801e
0:0c = 801f
0:0e = 801f
0:10 = 9f1f
0:12 = 0000
0:14 = 0000
0:16 = 9f1f
0:18 = 0000
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0400
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 09c4
0:2a = 05f4
0:2c = bb80
0:2e = bb80
0:30 = bb80
0:32 = bb80
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 2824
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0808
0:66 = 0808
0:68 = 0aea
0:6a = 0600
0:6c = 0000
0:6e = 0004
0:70 = 81e0
0:72 = 22e8
0:74 = 8000
0:76 = 0000
0:78 = 0007
0:7a = 0042
0:7c = 414c
0:7e = 4760
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Re: Re: Testers of via82xx 5.1 output - report - swapped output still there
At Thu, 20 Nov 2003 18:29:17 +0800,
Quoted 6 lines · Richard Chan
via82xx with ALC655/8 patch and 1.0.0pre1
Summary -
Swapped output 2,3==Center/LFE and 4,5==Surround
has not been fixed by the patch.
hmm...i'm puzzled.
there must be no longer "Swap Surround Slot" control, anyway. can you confirm this?
also, what happens if you revert the via82xx code (modification of slots bit flags in snd_via8233_multi_prepare) ?
to be sure: is you chip 8233 or 8235, and NOT 8233A, right? check /proc/asound/cards.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Re: Re: Testers of via82xx 5.1 output - report - swapped output still there
In reply to a message not in the archiveAt Thu, 20 Nov 2003 22:53:16 +0800,
Quoted 26 lines · Richard Chan
Quoted 12 lines · Takashi Iwai
At Thu, 20 Nov 2003 18:29:17 +0800,
Quoted 7 lines · Richard Chan
via82xx with ALC655/8 patch and 1.0.0pre1
Summary -
Swapped output 2,3==Center/LFE and 4,5==Surround
has not been fixed by the patch.Quoted 6 lines
hmm...i'm puzzled.
there must be no longer "Swap Surround Slot" control, anyway. can you confirm this?Yes - no more 'Swap Surround Slot'.
Reverting the slot assignment makes no difference at all:
I can confirm that the 4 channel assignment is correct - if a use a plug with slave.channels 4 I get rear sound.
Quoted 6 lines
If I use a plug with slave.channels 6 the rear is always channel 4 5. These lines don't make any difference to 6 channel.
// case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break;
interesting, then your chip doesn't follow the spec written in the datasheet. (or, it can be a newer model.)
if this bit switches have no effect, it's difficult to fix on the driver side. perhaps the routing on alsa-lib is the only solution...
Quoted 3 lines
/usr/src/linux-2.6.0-test9.2/sound/pci> cat/proc/asound/cards0 [rev60 ]: VIA8233 - VIA 823x rev60
VIA 823x rev60 at0xe400, irq 22
i don't know of this revision. really a new one..?
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/