* rc2 stereo problem with via8233
@ 2002-06-25 18:12 John Covici
2002-06-26 16:59 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: John Covici @ 2002-06-25 18:12 UTC (permalink / raw)
To: alsa-devel
Hi. With kernel 2.4.18 if I use the rc2 drivers, the PCM does not
play the right channel, when I went back to rc1 it worked fine
without any changes to my asound.state file. The cd plays right
channel in rc2 and rc1.
--
John Covici
covici@ccs.covici.com
-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members!
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: rc2 stereo problem with via8233 2002-06-25 18:12 rc2 stereo problem with via8233 John Covici @ 2002-06-26 16:59 ` Takashi Iwai [not found] ` <15642.10186.820516.331246@ccs.covici.com> 0 siblings, 1 reply; 9+ messages in thread From: Takashi Iwai @ 2002-06-26 16:59 UTC (permalink / raw) To: John Covici; +Cc: alsa-devel At Tue, 25 Jun 2002 14:12:15 -0400, John Covici wrote: > > Hi. With kernel 2.4.18 if I use the rc2 drivers, the PCM does not > play the right channel, when I went back to rc1 it worked fine > without any changes to my asound.state file. The cd plays right > channel in rc2 and rc1. i guess you're using via8233 or 8233C, not 8233A, right? please check lspci. there are different chip models of via8233, and each of them is different a bit. actually, the code of via8233 driver was changed since rc1, to support via8233a chip. now it uses the multi-channel playback mode, which is available on all chips. does the problem happen on a stereo sample, or on a mono sample? could you check the difference of formats and channels? thanks, Takashi ------------------------------------------------------- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <15642.10186.820516.331246@ccs.covici.com>]
* Re: rc2 stereo problem with via8233 [not found] ` <15642.10186.820516.331246@ccs.covici.com> @ 2002-06-27 12:38 ` Takashi Iwai 2002-06-27 14:14 ` John covici 0 siblings, 1 reply; 9+ messages in thread From: Takashi Iwai @ 2002-06-27 12:38 UTC (permalink / raw) To: covici; +Cc: alsa-devel Hi, At Wed, 26 Jun 2002 16:44:58 -0400, John covici wrote: > > Here is what I get from the lspci -- I don't think that the via8233 > is multi-channel at all and I didn't see any controls to utilize such > a thing in my asound.state file. in fact via8233 has capability to output up to 6 channels (and spdif), although most of motherboards have only two output channels. the difference is only the implementation of the driver, so no change will appear on /etc/asound.state. the channels are configured dynamically according to the requested channels of pcm. > 00:11.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio > Controller (rev 30) > > I can send you the verbose version if that would help. > yes, could you get more detailed info with -xvv and -nvv options? and, please recheck under which condition this happens, whether with the stereo samples or with the mono samples, or whatever. i can revert the codes only for certain chip models. since via8233 has _only_ multi-channel playback mode, it must use this. but other chip models have another mode, which was used by the old driver. this can be enabled conditionally by checking the chip revision number. Takashi ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: rc2 stereo problem with via8233 2002-06-27 12:38 ` Takashi Iwai @ 2002-06-27 14:14 ` John covici 2002-06-27 14:23 ` Takashi Iwai 0 siblings, 1 reply; 9+ messages in thread From: John covici @ 2002-06-27 14:14 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel OK, here is -xvv for that controller. 00:11.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controller (rev 30) Subsystem: VIA Technologies, Inc.: Unknown device 4511 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin C routed to IRQ 11 Region 0: I/O ports at ec00 [size=256] Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00: 06 11 59 30 01 00 10 02 30 00 01 04 00 00 00 00 10: 01 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 06 11 11 45 30: 00 00 00 00 c0 00 00 00 00 00 00 00 0b 03 00 00 and here is the -nvv 00:11.5 Class 0401: 1106:3059 (rev 30) Subsystem: 1106:4511 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin C routed to IRQ 11 Region 0: I/O ports at ec00 [size=256] Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- When I was using it, a stereo sample did play on both channels, from the cd, from pcm, they were mono -- I didn't test with stereo for the pcm. Is this sound card a multi channel and if so, how do I use more than one channel? on Thursday 06/27/2002 Takashi Iwai(tiwai@suse.de) wrote > Hi, > > At Wed, 26 Jun 2002 16:44:58 -0400, > John covici wrote: > > > > Here is what I get from the lspci -- I don't think that the via8233 > > is multi-channel at all and I didn't see any controls to utilize such > > a thing in my asound.state file. > > in fact via8233 has capability to output up to 6 channels (and spdif), > although most of motherboards have only two output channels. > > the difference is only the implementation of the driver, so no change > will appear on /etc/asound.state. > the channels are configured dynamically according to the requested > channels of pcm. > > > > 00:11.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio > > Controller (rev 30) > > > > I can send you the verbose version if that would help. > > > > yes, could you get more detailed info with -xvv and -nvv options? > > and, please recheck under which condition this happens, > whether with the stereo samples or with the mono samples, or > whatever. > > i can revert the codes only for certain chip models. > since via8233 has _only_ multi-channel playback mode, it must use > this. but other chip models have another mode, which was used by the > old driver. this can be enabled conditionally by checking the chip > revision number. > > > Takashi -- John Covici covici@ccs.covici.com ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: rc2 stereo problem with via8233 2002-06-27 14:14 ` John covici @ 2002-06-27 14:23 ` Takashi Iwai [not found] ` <15643.16455.420976.668125@ccs.covici.com> 0 siblings, 1 reply; 9+ messages in thread From: Takashi Iwai @ 2002-06-27 14:23 UTC (permalink / raw) To: covici; +Cc: alsa-devel At Thu, 27 Jun 2002 10:14:41 -0400, John covici wrote: > > OK, here is -xvv for that controller. > > 00:11.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controller (rev 30) > Subsystem: VIA Technologies, Inc.: Unknown device 4511 > Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- > Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- > Interrupt: pin C routed to IRQ 11 > Region 0: I/O ports at ec00 [size=256] > Capabilities: [c0] Power Management version 2 > Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 PME-Enable- DSel=0 DScale=0 PME- > 00: 06 11 59 30 01 00 10 02 30 00 01 04 00 00 00 00 > 10: 01 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 20: 00 00 00 00 00 00 00 00 00 00 00 00 06 11 11 45 > 30: 00 00 00 00 c0 00 00 00 00 00 00 00 0b 03 00 00 > > and here is the -nvv > 00:11.5 Class 0401: 1106:3059 (rev 30) > Subsystem: 1106:4511 > Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- > Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- > Interrupt: pin C routed to IRQ 11 > Region 0: I/O ports at ec00 [size=256] > Capabilities: [c0] Power Management version 2 > Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) > Status: D0 PME-Enable- DSel=0 DScale=0 PME- thanks. > When I was using it, a stereo sample did play on both channels, from > the cd, from pcm, they were mono -- I didn't test with stereo for the > pcm. Is this sound card a multi channel and if so, how do I use more > than one channel? i meant, to test wavefiles with mono samples and stereo samples, and check if any difference occurs. to be sure: the pcm with stereo samples comes out only from the left speaker, right? Takashi ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <15643.16455.420976.668125@ccs.covici.com>]
* Re: rc2 stereo problem with via8233 [not found] ` <15643.16455.420976.668125@ccs.covici.com> @ 2002-06-27 17:41 ` Takashi Iwai 2002-06-29 0:32 ` John Covici 0 siblings, 1 reply; 9+ messages in thread From: Takashi Iwai @ 2002-06-27 17:41 UTC (permalink / raw) To: covici; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 181 bytes --] At Thu, 27 Jun 2002 12:41:43 -0400, John covici wrote: > > OK, a stereo PCM does play both channels, a mono pcm plays left > channel only. then try the following patch. Takashi [-- Attachment #2: via8233-fix.dif --] [-- Type: application/octet-stream, Size: 749 bytes --] Index: alsa-kernel/pci/via8233.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/via8233.c,v retrieving revision 1.17 diff -u -r1.17 via8233.c --- alsa-kernel/pci/via8233.c 26 Jun 2002 15:13:05 -0000 1.17 +++ alsa-kernel/pci/via8233.c 27 Jun 2002 17:39:42 -0000 @@ -364,7 +364,7 @@ outb(fmt, chip->port + VIA_REG_MULTPLAY_FORMAT); /* set sample number to slot 3, 4, 7, 8, 6, 9 */ switch (runtime->channels) { - case 1: slots = (1<<0); break; + case 1: slots = (1<<0) | (1<<4); break; case 2: slots = (1<<0) | (2<<4); break; case 4: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12); break; case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break; ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: rc2 stereo problem with via8233 2002-06-27 17:41 ` Takashi Iwai @ 2002-06-29 0:32 ` John Covici 2002-07-01 10:03 ` Takashi Iwai 2002-07-03 0:21 ` Nick French 0 siblings, 2 replies; 9+ messages in thread From: John Covici @ 2002-06-29 0:32 UTC (permalink / raw) To: alsa-devel Thanks, your patch worked fine! But I would still like to know if I have a multi-channel chip and if so how to use it? I find that playing cd quality wav files have a very peculiar sound over this chip -- some artifact would be my guess. Any ideas? on Thu, 27 Jun 2002 19:41:28 +0200 Takashi Iwai <tiwai@suse.de> wrote: > At Thu, 27 Jun 2002 12:41:43 -0400, > John covici wrote: >> >> OK, a stereo PCM does play both channels, a mono pcm plays left >> channel only. > > then try the following patch. > > > Takashi > -- John Covici covici@ccs.covici.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Caffeinated soap. No kidding. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: rc2 stereo problem with via8233 2002-06-29 0:32 ` John Covici @ 2002-07-01 10:03 ` Takashi Iwai 2002-07-03 0:21 ` Nick French 1 sibling, 0 replies; 9+ messages in thread From: Takashi Iwai @ 2002-07-01 10:03 UTC (permalink / raw) To: John Covici; +Cc: alsa-devel At Fri, 28 Jun 2002 20:32:44 -0400, John Covici wrote: > > Thanks, your patch worked fine! ok, thanks for your tests. now fixed on cvs. > But I would still like to know if I have a multi-channel chip and if > so how to use it? please note that here multi-channels doesn't mean the multiple playbacks at the same time, but a pcm stream accepts channels more than 2. for example, you can play a wav file with 4 or 6 channels via aplay, or playing ac3 via ac3dec with -4 or -6 option. anyhow, it's nonsense unless you have rear and center/lfe jacks... > I find that playing cd quality wav files have a very peculiar sound > over this chip -- some artifact would be my guess. Any ideas? this problem should be on ac97 chip. possibly there are some filters active on it. is 3d sound switch enabled? well, then it should affect also pcm.. hmm... or maybe a hardware problem? do you have another soundcard to test? Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 9+ messages in thread
* problem with via8233 2002-06-29 0:32 ` John Covici 2002-07-01 10:03 ` Takashi Iwai @ 2002-07-03 0:21 ` Nick French 1 sibling, 0 replies; 9+ messages in thread From: Nick French @ 2002-07-03 0:21 UTC (permalink / raw) To: alsa-devel, John Covici Hi all I seem to have a problem with the via8233 driver. I seem to get breaks/crackle/pop every now and then only very small but annoying. I did not seem to get this with .5. Have tried to look at the code but nothing has come to light I notice that the .9 version uses a different channel now due to the 8233A support (I have one of these chips as well in another Motherboard). Is there anything I can try to see if I can compile with the old channel support to see if it is this. Can I change VIA_REG_MULTIPLAY_STATUS to VIA_REG_PLAYBACK_STATUS and recompile. Any ideas? It seems to be worse with apps that play multiple wav files over and over again. Cheers Nick ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek No, I will not fix your computer. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-07-03 0:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-25 18:12 rc2 stereo problem with via8233 John Covici
2002-06-26 16:59 ` Takashi Iwai
[not found] ` <15642.10186.820516.331246@ccs.covici.com>
2002-06-27 12:38 ` Takashi Iwai
2002-06-27 14:14 ` John covici
2002-06-27 14:23 ` Takashi Iwai
[not found] ` <15643.16455.420976.668125@ccs.covici.com>
2002-06-27 17:41 ` Takashi Iwai
2002-06-29 0:32 ` John Covici
2002-07-01 10:03 ` Takashi Iwai
2002-07-03 0:21 ` Nick French
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.