Kodi Community Forum

Full Version: HDMI Audio issue menu/movie sound alternates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
UBUNUTU 10.04
XBMC V11 EDEN

I have just bought a AV receiver and have been trying to get the XBMC audio working. It seems that I have to alternate between either menu sounds or movie sounds
I originally had pulseaudio installed which was making sure that my linux system sounds and anything run on the desktop could be heard and this works fine when i output via analogue but now I want to be running 5.1 though the receiver.

I did a aplay -L when i had pulse audio working and got the following

Code:
aplay -L
pulse
    Playback/recording through the PulseAudio sound server
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output

I then used the following line as a custom passthrough "hdmi:CARD=NVidia,DEV=0" but this still made no difference

I then removed pulse audio and now I can get movie audio but all my navigation sounds and my music playback via either xbmc or standard desktop have gone.

any thoughts? anything you need me to produce? I know why its not working as i have removed pulse audio but just not sure how to get the two working in harmony?? I've already been a little kamikave but time to let the pro's give me a little advice.
Ta
Stu[/quote]

Code:
:58 T:5556816  NOTICE: DVDPlayer: finished waiting
20:03:59 T:3047160688  NOTICE: boblight: use settings for other
20:03:59 T:3047160688  NOTICE: boblight: changed saturation to 4.0(ret True)
20:03:59 T:3047160688  NOTICE: boblight: changed value to 1.0(ret True)
20:03:59 T:3047160688  NOTICE: boblight: changed speed to 50.0(ret True)
20:03:59 T:3047160688  NOTICE: boblight: changed interpolation to 1(ret True)
20:04:07 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:07 T:5556816   ERROR: PulseAudio: Failed to create context
20:04:07 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:07 T:5556816   ERROR: PulseAudio: Failed to create context
20:04:44 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:44 T:5556816   ERROR: PulseAudio: Failed to create context
20:04:44 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:44 T:5556816   ERROR: PulseAudio: Failed to create context
20:04:54 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:54 T:5556816   ERROR: PulseAudio: Failed to create context
20:04:54 T:5556816   ERROR: PulseAudio: Waited for the Context but it failed
20:04:54 T:5556816   ERROR: PulseAudio: Failed to create context
20:06:01 T:5556816   ERROR: Initialize - pcm_open_lconf, alsa error: -2 - No such file or directory
20:06:01 T:5556816   ERROR: Unable to open audio mixer
20:06:01 T:5556816   ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
anybody??
Is that the full output from "aplay -L"? I don't see any digital devices listed there. Also post "aplay -l".

Try to get Pulse back up and working and then set the ALSA device or a custom device for the Passthrough Audio Device in XBMC.
(2012-05-30, 16:38)Plaguester Wrote: [ -> ]Is that the full output from "aplay -L"? I don't see any digital devices listed there. Also post "aplay -l".

Try to get Pulse back up and working and then set the ALSA device or a custom device for the Passthrough Audio Device in XBMC.
if I have pulse working and have the pass through as "hdmi:CARD=NVidia,DEV=0" I don't get menu sounds.

aplay -L
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
    HDA NVidia, ALC662 rev1 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output

aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
(2012-05-30, 17:14)trouty00 Wrote: [ -> ]
(2012-05-30, 16:38)Plaguester Wrote: [ -> ]Is that the full output from "aplay -L"? I don't see any digital devices listed there. Also post "aplay -l".

Try to get Pulse back up and working and then set the ALSA device or a custom device for the Passthrough Audio Device in XBMC.
if I have pulse working and have the pass through as "hdmi:CARD=NVidia,DEV=0" I don't get menu sounds.

That's because "hdmi:CARD=NVidia,DEV=0" does not exist in the "aplay -L" output. You have no digital devices listed in that output (which is strange). However, you could use custom and enter "plughw:0,3". Also, I haven't ever tested Eden with 10.04. XBMCbuntu comes with Ubuntu 11.10. You might consider upgrading to see if that solves some of your issues.
i trust that not having pulseaudio installed wouldn't be having an impact on the aplay -L output? Does XBMCbuntu come with the full gui? I'm not really in a position to upgrade just yet as i have many things being controlled by this box so although i have backups of all my important files and configs I would have to do a discovery just to make sure that I can actually restore everything.
Try to get Pulse back up and working and then set the ALSA device or a custom device for the Passthrough Audio Device in XBMC.Image
Ok, so its been a little while and I have just been putting up with what I had as been short of time, I have re-installed pulse and here are the outputs, I have tried using "plughw:0,3" as my custom passthrough audio device but get audio unable to initialize error.

Any thoughts?

Code:
stu@XBMC:~$ aplay -L
pulse
    Playback/recording through the PulseAudio sound server
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
stu@XBMC:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
anybody??
Not sure if you've gotten this working but, if you have audio working with just ALSA, then you should install pulseaudio and getting sounds becomes a matter of selecting the correct device in pulseaudio (sorry if this is not news to you). Without pulseaudio only one device can use sound so that explains why only your movies would have sound but not the system or XBMC, the movies had the sound "locked" and pulse audio manages the access.

When you have also in situaiton where it works (with anything) then install pulseaudio and pauvcontrol and paman. These are graphical applications which will allow you to dynamically select which device gets the sound- it's odd you don't have a digital device in your list but if alsa is working and you fire up one these tools (with pulse running) you can select sinks (where the sound goes) and sources (where it comes from) graphically without rebooting so you can just try them all and see what works.