Kodi Community Forum

Full Version: [XBMCbuntu] Menu audio works but failed to initialise on Video playback
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

I have been trying to get the audio working on my Revo 3700 since upgrading from Dharma to Eden B3, the upgrade was done as a clean install.


So far I have managed to get menu audio working but I am still getting the failed to initalise error when playing back an .avi.


Here is my current config:


xbmc@LR-HTPC:/$ aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/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: 0/1
  Subdevice #0: subdevice #0


xbmc@LR-HTPC:/$ aplay -L
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi-remap
remap-surround71
default:CARD=Intel
    HDA Intel, ALC662 rev1 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC662 rev1 Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC662 rev1 Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC662 rev1 Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC662 rev1 Digital
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions


xbmc@LR-HTPC:/$ nano /etc/asound.conf
Code:
pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:1,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}


I have read all the guides and other threads I can find and tried various things to get this working but I am getting no where fast. Sad

Any help would be very gratefully received. Smile
Finally solved it by going to the Audio Output page selecting "Custom" and typing in plughw:1,3 as the device.

Smile
Ok, So here is how I eventually got audio working on my Revo 3700, hopefully this might help some others.

Note: I had already made sure HDMI for NVidia was unmuted in alsamixer before doing all this.



Remove existing Nvidia drivers by performing the following command:
Code:
sudo apt-get --purge remove nvidia-*.


Download the latest Nvidia drivers by performing the following command:
Code:
sudo apt-get install nvidia-current


Update the audio settings by running the following TWO commands:

Code:
sudo wget http://pastebin.com/download.php?i=ApvUwtUX -O /etc/asound.conf

sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf



I then ran alsamixer again, selected F6 then 1 to get to the NVidia Card, the only device there showed as 'MM' in the box indicating it was muted, so pressed M this changed it to 'oo', then pressed Esc to exit.

Next I rebooted the system from command line using:

Code:
sudo shutdown -r now


Once XBMC has reloaded, I went to System >> Settings >> System >> Audio Output and set them as below:

Audio Output = HDMI
Speaker Configuration = 2.0
Boost Volume level on down mix = On
AC3 = Off
DTS - OFF
Audio Output Device = Custom
Custom audio Device = phlughw:1,3
Passthrough output device = hdmi (ALSA)
Thank-you so much sy278! that fixed it for me.

(2012-02-16, 11:53)sy278 Wrote: [ -> ]Ok, So here is how I eventually got audio working on my Revo 3700, hopefully this might help some others.

Note: I had already made sure HDMI for NVidia was unmuted in alsamixer before doing all this.



Remove existing Nvidia drivers by performing the following command:
Code:
sudo apt-get --purge remove nvidia-*.


Download the latest Nvidia drivers by performing the following command:
Code:
sudo apt-get install nvidia-current


Update the audio settings by running the following TWO commands:

Code:
sudo wget http://pastebin.com/download.php?i=ApvUwtUX -O /etc/asound.conf

sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf



I then ran alsamixer again, selected F6 then 1 to get to the NVidia Card, the only device there showed as 'MM' in the box indicating it was muted, so pressed M this changed it to 'oo', then pressed Esc to exit.

Next I rebooted the system from command line using:

Code:
sudo shutdown -r now


Once XBMC has reloaded, I went to System >> Settings >> System >> Audio Output and set them as below:

Audio Output = HDMI
Speaker Configuration = 2.0
Boost Volume level on down mix = On
AC3 = Off
DTS - OFF
Audio Output Device = Custom
Custom audio Device = phlughw:1,3
Passthrough output device = hdmi (ALSA)