From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Problems with VIA8233A (todays cvs) Date: Wed, 23 Jul 2003 15:09:34 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030722182649.GP9899@thot.informatik.uni-kl.de> <20030722200231.GR9899@thot.informatik.uni-kl.de> <20030723125822.GT9899@thot.informatik.uni-kl.de> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Wed_Jul_23_15:09:34_2003-1" Return-path: In-Reply-To: <20030723125822.GT9899@thot.informatik.uni-kl.de> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Joerg Mayer Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Wed_Jul_23_15:09:34_2003-1 Content-Type: text/plain; charset=US-ASCII At Wed, 23 Jul 2003 14:58:22 +0200, Joerg Mayer wrote: > > Oh, btw. I have some doubts that the chipset really is a 8233A chipset (the A). grrr, i overlooked that your chip is revision A. sorry. that explains why dxs_support options don't work: it's for 8233/8235 only but not 8233A. (8233A has no DXS channels.) could you try the attached patch for tests? i don't expect much that this will solve the problem, but to be sure... if it's still too fast, it might be the ac97 clock problem like in intel8x0 driver. please try to set a lower value to ac97_clock module option, such as 41200. Takashi --Multipart_Wed_Jul_23_15:09:34_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="via-check.dif" Content-Transfer-Encoding: 7bit Index: alsa-kernel/pci/via82xx.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/via82xx.c,v retrieving revision 1.49 diff -u -r1.49 via82xx.c --- alsa-kernel/pci/via82xx.c 21 Jul 2003 14:54:26 -0000 1.49 +++ alsa-kernel/pci/via82xx.c 23 Jul 2003 13:04:57 -0000 @@ -886,9 +886,11 @@ snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate); snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); } +#if 0 if (chip->revision == VIA_REV_8233A) rbits = 0; else +#endif rbits = (0xfffff / 48000) * runtime->rate + ((0xfffff % 48000) * runtime->rate) / 48000; snd_assert((rbits & ~0xfffff) == 0, return -EINVAL); snd_via82xx_channel_reset(chip, viadev); @@ -928,9 +930,12 @@ fmt = (runtime->format == SNDRV_PCM_FORMAT_S16_LE) ? VIA_REG_MULTPLAY_FMT_16BIT : VIA_REG_MULTPLAY_FMT_8BIT; fmt |= runtime->channels << 4; outb(fmt, VIADEV_REG(viadev, OFS_MULTPLAY_FORMAT)); +#if 0 if (chip->revision == VIA_REV_8233A) slots = 0; - else { + else +#endif + { /* set sample number to slot 3, 4, 7, 8, 6, 9 (for VIA8233/C,8235) */ /* corresponding to FL, FR, RL, RR, C, LFE ?? */ switch (runtime->channels) { --Multipart_Wed_Jul_23_15:09:34_2003-1-- ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0