Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-01-2008, 08:55 PM   #1
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:
$ 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/ 
# 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 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..)


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 09:58 PM
optical output from sound card RJ Hythloday Ubuntu 2 04-23-2008 12:50 PM
Sound digital (optical) output - is it possible? make Solaris / OpenSolaris 0 04-03-2007 04:44 AM
Optical Output - sound issue! ruddyrum Linux - Hardware 1 03-01-2006 03:36 AM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 08:49 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:03 AM.

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