LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2008, 08:05 AM   #1
ubercow
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
configuring ALSA for mono to stereo


I have been trying to get alsa to output mono tracks in stereo but to no avail. I have tried understanding the asound.conf file but I still can't quite get my head round it.
This is my current asound.conf:

Code:
 pcm.!default {
   type plug
   slave.pcm audiophile_dmix
   ttable.0.0 1 # H/W 1
   ttable.1.1 1 # H/W 2
   ttable.0.8 1 # S/PDIF L
   ttable.1.9 1 # S/PDIF R
 }
 pcm.analog {
   type plug
   slave.pcm audiophile
   ttable.0.0 1 # H/W 1
   ttable.1.1 1 # H/W 2
 }
 pcm.analog_dmix {
   type plug
   slave.pcm audiophile_dmix
   ttable.0.0 1 # H/W 1
   ttable.1.1 1 # H/W 2
 }
 pcm.digital {
   type plug
   slave.pcm audiophile
   ttable.0.8 1 # S/PDIF L
   ttable.1.9 1 # S/PDIF R
 }
 pcm.digital_dmix {
   type plug
   slave.pcm audiophile_dmix
   ttable.0.8 1 # S/PDIF L
   ttable.1.9 1 # S/PDIF R
 }
 pcm.audiophile_dmix {
   type dmix
   ipc_key 1024
   slave {
     pcm "audiophile"
     period_time 0
     period_size 2048
     buffer_size 32768
     rate 44100
     format S32_LE
   }
 }
 pcm.audiophile {
   type hw
   card 0
   device 0
 }
This works fine when playing stereo tracks in eg. Amarok, but if I play a mono track, the sound only comes through the right speaker, when i'd like it to come from both. NB. I am using the spdif out on my sound card. Any help much appreciated!

Last edited by ubercow; 05-13-2008 at 08:11 AM.
 
  


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
Xitel Pro Hifi-link playing mono, not stereo (Fedora Core 6) mojones Linux - Hardware 2 12-11-2006 09:12 AM
how to convert stereo mp3 to mono wav? Beck24 Linux - Software 2 07-11-2006 09:04 PM
Alsa stereo to mono mix kdogksu Linux - Software 1 12-01-2005 12:37 AM
SBlive! stereo channels w/ALSA kodon Slackware 1 07-17-2004 09:58 PM
USB Stereo + ALSA cpluspaul Linux - Hardware 2 09-14-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

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