Update of /cvsroot/alsa/alsa-kernel/pci In directory sc8-pr-cvs1:/tmp/cvs-serv27645
Modified Files: via82xx.c Log Message: fixed the playback of multi-channel with dxs_support=2. Index: via82xx.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- via82xx.c 2 Jun 2003 12:59:16 -0000 1.42 +++ via82xx.c 21 Jul 2003 14:55:22 -0000 1.43 @@ -886,7 +886,7 @@ snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate); snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); } - if (chip->chip_type == TYPE_VIA8233A) + if (chip->revision == VIA_REV_8233A) rbits = 0; else rbits = (0xfffff / 48000) * runtime->rate + ((0xfffff % 48000) * runtime->rate) / 48000; @@ -928,7 +928,7 @@ 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 (chip->chip_type == TYPE_VIA8233A) + if (chip->revision == VIA_REV_8233A) slots = 0; else { /* set sample number to slot 3, 4, 7, 8, 6, 9 (for VIA8233/C,8235) */ @@ -1108,7 +1108,7 @@ if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0) return err; substream->runtime->hw.channels_max = 6; - if (chip->chip_type == TYPE_VIA8233A) + if (chip->revision == VIA_REV_8233A) snd_pcm_hw_constraint_list(substream->runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels); return 0; } ------------------------------------------------------- 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 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog