LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2008, 07:55 PM   #1
anon311
Member
 
Registered: Jul 2005
Location: Netherlands
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59

Rep: Reputation: 15
Need help getting pulseaudio on optical output.


Question: how can I make Pulseaudio use the optical output on my motherboard?

I tried lots of stuff, got pavucontrol (the pulseaudio mixer) to list all the 5.1 channels and even digital output, but it just doesn't seem to be sending anything out on the digital / optical / s/pdif output.

In the pavucontrol I made sure that the audio stream (Amarok) got assigned to the digital output, or even the combined output, but that wasn't the problem obviously.

"alsamixer -c 0" shows me the 5.1 channels and an iec958 channel, which I have unmuted.

Other info:
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

$ cat .asoundrc
pcm.!default {
  # type pulse
  type plug
  slave {
    pcm "spdif"
  }
}

ctl.!default {
  type pulse
}

pcm.!spdif {
  type hw
  card 0
  device 1
}

pcm.pulse {
  type pulse
}

ctl.pulse {
  type pulse
}

pcm.equalized {
  type plug
  slave.pcm "equalizer";
}

pcm.equalizer {
  type ladspa

  # The output from the EQ can either go direct to a hardware device
  # (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
  # to the software mixer shown here.
  slave.pcm "plughw"
  #slave.pcm "plug:dmix"

  # Sometimes you may need to specify the path to the plugins,
  # especially if you've just installed them.  Once you've logged
  # out/restarted this shouldn't be necessary, but if you get errors
  # about being unable to find plugins, try uncommenting this.
  path "/usr/lib/ladspa"

  plugins [
    {
      label mbeq
      id 1197
      input {
       #this setting is here by example, edit to your own taste
       #bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz, 
       #       1250hz, 1750hz, 25000hz, 50000hz, 10000hz, 20000hz
       #range: -70 to 30
        controls [ -1 -1 -1 -1 -5 -10 -20 -17 -12 -7 -6 -5 -5 0 0 ]
      }
    }
  ]
}

$ tail -n 2 /etc/pulse/default.pa 
# Added on 02-12-2008 in an attempt to get digital output working
load-module module-alsa-sink device=hw:0,1
And it's kernel 2.6.27.2 on Ubuntu Intrepid (8.10).

I'd really like to keep using Pulseaudio though. In a perfect situation, I'd like to be able to select the channels (digital/analog/both, and the separate channels) an audio stream gets sent to, but that's something for later perhaps, right now I just like to use my new home theater set with the optical connection.

If I screwed the configuration up somewhere, please let me know so I can learn from it.

If you need more info, I'd be happy to give it..)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no sound in Fedora 8 "PULSEAUDIO: Unable to connect-" using onboard Optical spdif Legolas327 Fedora 12 07-27-2009 08:58 PM
optical output from sound card RJ Hythloday Ubuntu 2 04-23-2008 11:50 AM
Sound digital (optical) output - is it possible? make Solaris / OpenSolaris 0 04-03-2007 03:44 AM
Optical Output - sound issue! ruddyrum Linux - Hardware 1 03-01-2006 02:36 AM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 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
Open Source Consulting | Domain Registration