From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: optical SPDIF output on Abit NF7 nforce2 main board. Date: Mon, 01 Sep 2003 18:39:07 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3F532D5E.6040300@icem.com> <3F534D6A.5030706@icem.com> <3F535A42.6020403@icem.com> <3F536C97.5080008@icem.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3F536C97.5080008@icem.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Carsten Koch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 01 Sep 2003 17:58:15 +0200, Carsten Koch wrote: > > Takashi Iwai wrote: > ... > >>The sound was playing too fast with mpg321. > >>I was using > >> mpg321 -o alsa09 --audiodevice hw:0,1 > >>It seems like mpg321 was playing my 44.1kHz mp3 in 48kHz mode. > > > > > > then try plughw:0,1. > > alsa-lib will convert the sample rate automatically. > > Unfortunately, the sound is playing too fast with plughw:0,1 as well. please check /proc/asound/card1/pcm0p/sub0/hw_params during playback. if it shows 44100, perhaps spdif configuration doesn't match with the request one. please check the spdif status in /proc/asound/card/ac97#0, too. > Also, I was wrong about alsaplayer playing it at the right speed. > Maybe I had left alsaplayer's speed at ~90% when I last used it. > I started it again now with a new mp3 file to load and it played > that one (and all other 44kHz files I tried from then on) too fast > (both with hw:0,1 and with plughw:0,1). > > One more question: Is there a way to make hw:0,1 or plughw:0,1 the > default? Many programs do not have a --audiodevice parameter or > use the OSS emulation and I would of course still like to hear their > sound. you can overwrite the default pcm in ~/.asoundrc with '!' prefix. for example, pcm.!default "hw:0,1" for OSS emulation, try libaoss wrapper. (hope it still runs :) Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf