[LINUX] 5.1 Analog Sound Issue
#1
Hi,

i don´t get 5.1 analog sound working. My speakers are directly connected to my onboard sound card (3 plugs). In xbmc menusounds are working fine, but when i look a movie i only get background sounds. I tried every thing in the settings but i don´t get it working Sad

Speakertest works fine! Also i have 5.1 sound if i look tv with vdr..

Can someone please help me?

aplay -l
Code:
*** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889A Analog [ALC889A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC889A Digital [ALC889A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

aplay -L
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
    HDA ATI SB, ALC889A Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
Reply
#2
would that be a solution to have stereo hdmi sound and 5.1 analog sound?

Code:
#
# HDMi und analog output
#
pcm.!default {
type plug
slave {
pcm "both"
}
}

pcm.both {
type route
slave {
pcm multi
channels 8
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
ttable.2.4 1.0
ttable.3.5 1.0
ttable.4.6 1.0
ttable.5.7 1.0
}

pcm.multi {
type multi
slaves.a {
pcm "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 6
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave b
bindings.4.channel 2
bindings.5.slave b
bindings.5.channel 3
bindings.6.slave b
bindings.6.channel 4
bindings.7.slave b
bindings.7.channel 5
}

pcm.tv {
type hw
card 1
device 3
channels 2
}

pcm.receiver {
type hw
card 0
device 0
channels 6
}
Reply
#3
Try setting the audio device in XBMC to plugConfusedurround51
Reply
#4
just tried- but still only background sounds (speaker: 5.1, device: "plugConfusedurround51"). i have the feeling that it is more than before. but still no voices...
Reply
#5
Please post a debug log.
Reply
#6
Hi
maybe try
exit out of xbmc and at the prompt type in alsamixer
Make sure you have 6 speakers selected and that the center channel ect is not muted(use the m key to toggle mute Smile ).
Wozza
Reply
#7
Me too having a problem with analog 5.1 output.
I have Creative X-Fi Surround 5.1 Pro USB sound card and there is no audio out-of-the-box in XBMC Live 10.1 ("Failed to initialize audio device"). I've managed to get sound in videos by setting audio output to custom ("surround51:CARD=Pro,DEV=0") but there's still no sound in XBMC menu and I can't tune up levels in Audio Mixer addon because it shows only IEC958.

While aplay -L says the default device is X-Fi, it seems that HDMI audio or S/PDIF is actually set by default. I tried blacklisting snd_hda_intel kernel module but it does not help getting the sound in menu and there's now a blank screen in Audio Mixer.

Another interesting fact is that everything is fine when I use X-Fi Titanium card but only until the first reboot. On the next boot for some reason I see 4 IEC958 controls instead of analog controls in Audio Mixer and there's no sound unless I set custom output device. This only happens in 10.1, not 10.0.

Looks like it's related to some "bugfix" in 10.1 because everything worked fine in 10.0.
Is there a way to change the default sound device?
Reply
#8
Finally I changed the default audio device and got sound in menu. Here's the solution:
create /etc/asound.conf file with following contents
Quote:pcm.!default {
type hw
card 1
device 0
}
This solution turns on analog audio on X-Fi Surroung 5.1 Pro USB audio card.
I have ION2 motherboard so card 0 is NVidia HDA which cannot be disabled completely and card 1 is X-Fi Surround 5.1.
The only problem is that I still cannot adjust audio levels in Audio Mixer or alsamixer (it says "this card does not have any controls"). Is this drivel-level limitation?

EDIT: I actually had to instead put this into asound.conf:
Quote:pcm.!default surround51Tonguero
to have the correct 5.1 sound because the channels were messed up.
Reply
#9
bolzerrr's asound.conf file here is the only one that I can use to get sound to come out of the analog jacks on my setup. The mappings aren't quite right so I keep attempting to edit them but as soon as I do and reboot, I get "failed to load audio device." What am I doing wrong here?
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] 5.1 Analog Sound Issue0