Ubuntu no Sound from Optical OUT

audioUbuntu

I installed a new sound card, a Turtle Beach card, and can't seem to get sound out of the optical out. lspci says it is a CM8738 chip. I can get static out the front two channels with the following command but that is it so far (when the test says center, nothing works):

speaker-test -Dplug:iec958 -c 6

When sound does come out those two channels, my reciever says PCM, but when the test says other channels, it says NO AUDIO INPUT. I disable the onboard intel audio from the bios.

aplay -l says:

**** List of PLAYBACK Hardware Devices ****
card 0: CMI8768 [C-Media CMI8768], device 0: CMI8738-MC8 [C-Media PCI DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8768 [C-Media CMI8768], device 1: CMI8738-MC8 [C-Media PCI 2nd DAC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8768 [C-Media CMI8768], device 2: CMI8738-MC8 [C-Media PCI IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Currently I have the following switches checked:
IEC958 5V
IEC958 Output

I also tried:
asoundconf set-default-card CMI8738

I don't really know very much about sound trouble shooting, so any help is appreciated. I am using Ubuntu 9.04

Update:
If I uninstall pulse, it works okay for XMBC, but nothing else has sound. Not sure what I need to do with the Ubuntu Config.

Also, my card is: Turtle Beach TBS-3300-01 Montego DDL Sound Card

Best Answer

Basic troubleshooting steps (taken from the DigitalOut with ALSA page I posted to your earlier question):

  1. Check that the card is found and available (already done! good job!)

  2. Check mixer settings (try TonyUser's suggestion of gnome-volume-control-pulse first, then try running alsamixer and seeing if you need to adjust things there as well).

  3. Try playing back a WAV file: "aplay -D hw:0,2 myfile.wav" or possibly "aplay -D plughw:0,2 myfile.wav". If it works your receiver should indicate it's getting PCM data.

  4. If that doesn't work, look for entries listed as "digital audio playback" in the output of "cat /proc/asound/devices". Note the numbers in brackets ("[0- 2]" should be one of them; that's the one we tried in Step 3 with the "hw:0,2" parameter). If there are other entries, repeat Step 3 with each parameter.

  5. If it still doesn't work, return to Step 2 and play with mixer settings.

  6. Once you get it working, you can grab a DTS WAV file from this link to test that digital pass-through is working on your card -- be sure to substitute in the right hw: numbers that you got to work earlier: "aplay -D hw:0,2 Norrlanda.wav". If it works, your receiver should indicate it's getting DTS data.

Related Question