From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: rc2 stereo problem with via8233 Date: Thu, 27 Jun 2002 19:41:28 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <15642.10186.820516.331246@ccs.covici.com> <15643.7633.177373.448813@ccs.covici.com> <15643.16455.420976.668125@ccs.covici.com> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Jun_27_19:41:28_2002-1" Return-path: In-Reply-To: <15643.16455.420976.668125@ccs.covici.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: covici@ccs.covici.com Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Thu_Jun_27_19:41:28_2002-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Thu_Jun_27_19:41:28_2002-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="via8233-fix.dif" Content-Transfer-Encoding: 7bit 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; --Multipart_Thu_Jun_27_19:41:28_2002-1-- ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/