LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-10-2005, 11:22 AM   #1
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Wrong sample rate on optical out


Hi,

my sound card is a Terratec 512i and I use the alsa fm801 drivers. It connects to my receiver via TOSlink.

The problem is: the music plays too fast. Sound encoded with 22kHz plays more than twice as fast and sound encoded with 44kHz still is faster than usual. Sometimes it's not that noticable but once you realizd it it's driving you nuts. It doesn't matter whether I use OSS (emulation) output or alsa directly. It also doesn't depend on the player software. It happens with XMMS, mpg321 and mplayer.

As the speed depends on the encoding rate I suspect that there is something wrong with the sample rate conversion. My receiver always tells me that it receives signals at 48kHz.

Since I usually don't play music on it I don't know with which kernel update it started But I tested it with a 2.4.29-Kernel -with alsa 1.0.8) from Slackware and everything was fine.

I use 2.6.10 right now though. I assume it's just a kernel-config/module-loading error but I've tried everything from snd-rtctimer to rtc and genrtc and nothing help


Here a an excerpt of a timed mpg321 output when playing an mp3 encoded with 22kHz.

Quote:
...
[1:28] Decoding of queen - footballfight.mp3 finished.

real 0m40.791s
...
So any ideas what could cause this lack of sample conversion?
 
Old 04-11-2005, 09:22 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
Use alsamixer to do:
Multi Track Rate Locking [Off]
Multi Track Rate Reset [On]
 
Old 04-12-2005, 03:27 AM   #3
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Original Poster
Rep: Reputation: 31
I don't have those settings in alsamixer

Can I change them somewhere else?
 
Old 04-12-2005, 11:31 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
Try to find some graphical control panel on the alsa website. They have some pretty good ones. I found one for my card (ICE1712) which allows me to access spdif functions.
 
Old 04-13-2005, 04:53 AM   #5
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Original Poster
Rep: Reputation: 31
I still don't know why or how this happened. But I deactivated alsa in the kernel and installed it directly from the sources of alsa's website.

Now it's okay
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing sample rate for OSS? Elijah Linux - Hardware 2 04-27-2006 06:57 PM
wrong sample rate for Gnome system sounds sharkzf6 Linux - Hardware 0 03-10-2005 11:10 AM
mplayer: faad assumes wrong sample rate Hmm ^_^ Linux - Software 1 09-14-2004 03:47 AM
wrong refresh rate egoadk Linux - Hardware 5 10-09-2002 05:53 AM
ps2 mouse sample rate citron Linux - General 0 09-18-2002 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration