From: Takashi Iwai Subject: Re: Fixes for identifying VT1617 codec and MSI-7142 mobo Date: Fri, 12 Aug 2005 16:49:30 +0200 Message-ID: References: <42F655E2.5040504@redfish-solutions.com> <20050807192732.GA3079@procyon.home> <42F78569.5070604@redfish-solutions.com> <42F8F69D.2050302@redfish-solutions.com> <42FBA554.3040604@redfish-solutions.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Aug_12_16:49:30_2005-1" Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Philip Prindeville Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Fri_Aug_12_16:49:30_2005-1 Content-Type: text/plain; charset=ISO-2022-JP At Fri, 12 Aug 2005 16:40:46 +0200, 私 wrote: > > At Thu, 11 Aug 2005 13:21:56 -0600, > Philip Prindeville wrote: > > > > I tried: > > > > aplay -v -D spdif /usr/share/system-config-soundcard/sound-sample.wav > > > > and that worked ok (I got PCM sound out), but it was at 48kHz. > > Check /proc/asound/card0/pcm0p/sub3/hw_info whether it's really 48k. > > > So I > > tried with -D plug:spdif, and that was at the correct pitch... But I'm > > confused. If I'm setting: > > > > .action = VIA_DXS_SRC > > > > and: > > > > ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_CONTINUOUS; > > > > shouldn't it be able to playback digitally at arbitrary rates? > > No. SPDIF cannot play arbitrary rates. > > > What do I need > > to change to get it to playback at 44100Hz for testing? > > It shoud work as it is. Otherwise it's a bug. Does the patch below fix your problem? Takashi --Multipart_Fri_Aug_12_16:49:30_2005-1 Content-Type: text/plain; charset=US-ASCII Index: alsa-kernel/pci/via82xx.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/via82xx.c,v retrieving revision 1.170 diff -u -r1.170 via82xx.c --- alsa-kernel/pci/via82xx.c 3 Aug 2005 12:54:38 -0000 1.170 +++ alsa-kernel/pci/via82xx.c 12 Aug 2005 14:47:51 -0000 @@ -929,12 +929,12 @@ if ((rate_changed = via_lock_rate(&chip->rates[0], ac97_rate)) < 0) return rate_changed; - if (rate_changed) { + if (rate_changed) snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, chip->no_vra ? 48000 : runtime->rate); - snd_ac97_set_rate(chip->ac97, AC97_SPDIF, - chip->no_vra ? 48000 : runtime->rate); - } + if (chip->spdif_on && viadev->reg_offset == 0x30) + snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); + if (runtime->rate == 48000) rbits = 0xfffff; else --Multipart_Fri_Aug_12_16:49:30_2005-1-- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf