Linux No multichannel audio on XBMCBuntu 11
#1
Question 
Hello,

After lot of experimenting, I finally managed to get sound on my Eee Box 1501 but only stereo is passing.

I Unmuted the SPDIF on Nvidia using alsamixer and set the following in Settings/Audio output:

Audio output: HDMI
Speaker configuration: 5.0
Boost volume level on downmix: [x]
Dolby (AC3) capable receiver: [x]
DTS capable receiver: [x]
Audio output device: Custom
Custom output device: plughw:1,3 (if I set this to Nvidia 3 hdmi, I get the error: "unable to initialize audio...")
Passthrough output device: iec958 (ALSA) (If I set this to HDMI, I get the error: "unable to initialize audio...")

The audio is passed only for basic 2.0 sound, everything else is not even transmitted to the receiver (DTS, Dolby, 5.1), it is probably related to forcing Custom output device but I really don't know how to make it work.

I have DTS and Dolby capable A/V receiver, and it worked like a charm on Dharma with exact same hardware.

Can someone please help me figure this out?

Thank you in advance!

Relevant info:
Code:
~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation N10 Family DMI Bridge [8086:a000] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 1 [8086:27d0] (rev 02)
00:1c.1 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 2 [8086:27d2] (rev 02)
00:1c.2 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 3 [8086:27d4] (rev 02)
00:1c.3 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 4 [8086:27d6] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 [8086:27c8] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 [8086:27c9] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 [8086:27ca] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 [8086:27cb] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller [8086:27cc] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2)
00:1f.0 ISA bridge [0601]: Intel Corporation NM10 Family LPC Controller [8086:27bc] (rev 02)
00:1f.2 SATA controller [0106]: Intel Corporation N10/ICH7 Family SATA AHCI Controller [8086:27c1] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation N10/ICH 7 Family SMBus Controller [8086:27da] (rev 02)
02:00.0 VGA compatible controller [0300]: nVidia Corporation GT218 [ION] [10de:0a64] (rev a2)
02:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be3] (rev a1)
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06)
05:00.0 USB Controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 03)
Reply
#2
Is there a .asoundrc file in the root of your user dir (usually /home/xbmc/.asoundrc)? If so, could you please post the content of this file?
Reply
#3
(2012-03-27, 17:20)erhnam Wrote: Is there a .asoundrc file in the root of your user dir (usually /home/xbmc/.asoundrc)? If so, could you please post the content of this file?

I only have /home/hts, no /home/xbmc (no .asoundrc)
Reply
#4
I found the problem. You're using a second generation Nvidia ION right?

We compiled a list with devices for first and second gen Nvidia ION systems. The "ALC662 rev1 Digital" can be both. The next XBMCbuntu version will fix your problem:

https://github.com/xbmc/XBMCbuntu/commit...4668424dea

To easily fix this on your computer you'll have to do:

Code:
wget https://raw.github.com/xbmc/XBMCbuntu/3255a97aca2647936bc0678d6637a84668424dea/Files/config/includes.chroot/etc/xbmc/setup.d/04-configNVIDIAasoundrc.sh
chmod +x 04-configNVIDIAasoundrc.sh
sudo ./04-configNVIDIAasoundrc.sh xbmc
Reply
#5
thank you very much for your help, I tried your solution without success (I had to sudo touch /home/xbmc/.asoundrc first and also wget https://raw.github.com/xbmc/XBMCbuntu/32...soundrc.sh):

Code:
~$ sudo ./04-configNVIDIAasoundrc.sh xbmc
amixer: Unable to find simple control 'IEC958 PCM',0

Maybe this can help:
Code:
~$ amixer | grep 'control'
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'PCM',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Auto-Mute Mode',0
Reply
#6
I'm having the same issue using simular hardware. I tried running the script with the same result.
I do have the file .asoundrc. This might help.

Code:
xbmc@XBMCbuntu:~$ cat .asoundrc

pcm.!default {
        type plug
        slave {
                pcm "both"
        }
}

pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                channels 2
        }
        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 c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

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

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 1
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}
xbmc@XBMCbuntu:~$

Reply
#7
Hey erhnam any clues? Are you still on it? Cool

I have a very demanding wife, two days she can't watch her TV shows so I'm between two fires here, I'm willing to wait a bit for you to find a solution, but no too long to be divorced! Rofl
So what it will be?
Reply
#8
I went through this last night. when i purchased a GT 520 for my Acer X1700.

This Wiki Article Helped A Lot.

http://wiki.xbmc.org/index.php?title=HOW...,_or_GT240

This worked for me without adding the Alsa PPA. Working from Latest Live Version installed on Hard Drive.

i ended up shutting off the sound for the motherboard. So you just have the hdmi port. In XBMC i have it set to Optical even though its HDMI connection. 7.1 Sourround.

Both Audio Output and Custom set to plughw:0,3 ( which if i'm not mistaken . you should have yours set to that according to aplay)

EDIT: my bad your right at plughw:1,3 unless you shut off main board sound.

Hope this helps

John

my receiver does show DTS 5.1 when i play that type of content .. haven't figured out how to get it to read 7.1 Sound as of yet.
Reply
#9
(2012-03-28, 13:52)astronaute Wrote: Hey erhnam any clues? Are you still on it? Cool

I have a very demanding wife, two days she can't watch her TV shows so I'm between two fires here, I'm willing to wait a bit for you to find a solution, but no too long to be divorced! Rofl
So what it will be?

Please don't use touch. The asoundrc file shouldn't be there. Could you please remove the .asoundrc file and try again?
Reply
#10
(2012-03-28, 15:28)erhnam Wrote:
(2012-03-28, 13:52)astronaute Wrote: Hey erhnam any clues? Are you still on it? Cool

I have a very demanding wife, two days she can't watch her TV shows so I'm between two fires here, I'm willing to wait a bit for you to find a solution, but no too long to be divorced! Rofl
So what it will be?

Please don't use touch. The asoundrc file shouldn't be there. Could you please remove the .asoundrc file and try again?

It is same error obviously, I don't know if you saw this, I paste it again:
Code:
~$ amixer | grep 'control'
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'PCM',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Auto-Mute Mode',0

As you can see, there is no control with name IEC958 PCM, is this related?

Also, my /home/xbmc/.asoundrc file if needed:
Code:
pcm.!default {
        type plug
        slave {
                pcm "both"
        }
}

pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                channels 2
        }
        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 c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

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

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 1
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}
Reply
#11
have you tried doing a speaker-test -Dplughw:1,3 on terminal?

Reply
#12
(2012-03-28, 17:31)jpreville Wrote: have you tried doing a speaker-test -Dplughw:1,3 on terminal?

That works of course, as I already stated in first post: I have stereo sound, what I'm missing is the multichannel sound which is not transmitted at all (not even in stereo) to my A/V receiver.

Also, the menu sounds are completely missing.

Thank you anyway for trying to help Smile
Reply
#13
(2012-03-28, 17:36)astronaute Wrote:
(2012-03-28, 17:31)jpreville Wrote: have you tried doing a speaker-test -Dplughw:1,3 on terminal?

That works of course, as I already stated in first post: I have stereo sound, what I'm missing is the multichannel sound which is not transmitted at all (not even in stereo) to my A/V receiver.

Also, the menu sounds are completely missing.

Thank you anyway for trying to help Smile

hmmmmm..

what worked for me.. like in my other post

sudo nano /etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hw:0,3"
rate 48000
}
}

and under my audio and pass through i have plughw:0,3
and i also selected optical instead of hdmi. Even though my computer is hooked to receiver via HDMI.

i shut down onboard audio and just utilizing HDMI off the nvidia card.


Reply
#14
(2012-03-28, 17:45)jpreville Wrote:
(2012-03-28, 17:36)astronaute Wrote:
(2012-03-28, 17:31)jpreville Wrote: have you tried doing a speaker-test -Dplughw:1,3 on terminal?

That works of course, as I already stated in first post: I have stereo sound, what I'm missing is the multichannel sound which is not transmitted at all (not even in stereo) to my A/V receiver.

Also, the menu sounds are completely missing.

Thank you anyway for trying to help Smile

hmmmmm..

what worked for me.. like in my other post

sudo nano /etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hw:0,3"
rate 48000
}
}

and under my audio and pass through i have plughw:0,3
and i also selected optical instead of hdmi. Even though my computer is hooked to receiver via HDMI.

i shut down onboard audio and just utilizing HDMI off the nvidia card.

Thank you very much, I just changed HDMI to Optical as you suggested and it worked! Very strange behavior, but it works, again thank you!!!! Wink
Reply
#15



Quote:Thank you very much, I just changed HDMI to Optical as you suggested and it worked! Very strange behavior, but it works, again thank you!!!! Wink

Yea i thought it was strange also. but had read on another forum someone saying only to select the optical. probably has something to with how the nvidia hardware works or something..

That's great that it works know.. does your receiver show the different types of formats (dts 5.1 etc) now?
Reply

Logout Mark Read Team Forum Stats Members Help
No multichannel audio on XBMCBuntu 110