[LINUX] Audio Problems with Eden Beta 3 and Ubuntu 11.10

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Matthias.He Offline
Junior Member
Posts: 4
Joined: Oct 2011
Reputation: 0
Post: #41
FernetMenta Wrote:The setting for passthrough is wrong. plughw is not an iec device and won't accept AES parameters. Try hdmi:Intel

But it works at my zotac too

thank you!!!
find quote
afroallen Offline
Junior Member
Posts: 1
Joined: Mar 2012
Reputation: 0
Post: #42
I came across this thread while researching the same problem that everyone else here seems to have. This was the error I was seeing in my xbmc.log file:

Code:
21:35:11 T:2829056880  NOTICE: Creating audio device with codec id: 86019, channels: 2, sample rate: 48000, pass-through
21:35:11 T:2829056880   ERROR: Initialize - failed to open custom device iec958:CARD=PCH,DEV=0,AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 (error:No such file or directory), retry with default iec958:CARD=PCH,DEV=0
21:35:11 T:2829056880   ERROR: Initialize - pcm_open_lconf, alsa error: -2 - No such file or directory

I had an XBMC Live distro (Dharma) running on my HTPC and my audio goes through spdif (my hdmi cable goes directly to my TV since my receiver doesn't have an HDMI input).

I recently upgraded all the way to 11.10 and XBMC Eden RC2. Everything was working fine and while tweaking a few things here and there, after a reboot my audio stopped working.

I tried everything in this thread but without any luck.

It ended up being caused by a change I made to lightdm.conf - the upgrade from Dharma to Eden didn't seem to update this config file, so I followed advice in another thread in order to remove the text on the screen during boot up (I did this before I had any audio problems):

Code:
[SeatDefaults]
autologin-user=xbmc
autologin-user-timeout=0
user-session=XBMC
greeter-session=lightdm-gtk-greeter

My theory is that using this lightdm config caused my system to start using Pulse Audio whereas it wasn't before. Anyway, I commented out the lines in the config file and rebooted and I got my sound back.

I still plan to get to the bottom of the root cause but for now I can watch my basketball..
find quote
dzan Offline
Junior Member
Posts: 39
Joined: Jul 2010
Reputation: 0
Post: #43
Hi,

Someone here with a Asrock Ion 125D? ( it's an ion2 chipset too ) If so, what settings worked for you? I tried everything in this thread, no luck! When I do aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav I do have sound!

My aplay -l
Quote:**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC892 Digital [ALC892 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

My aplay -L
Quote:xbmc@xbmc-living:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
both
multi
hdmi_formatted
hdmi_complete
front:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=1
HDA Intel, ALC892 Digital
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
HDA Intel, ALC892 Digital
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
HDA Intel, ALC892 Digital
Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
HDA Intel, ALC892 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

Strange thing is, it all works fine every time while running live! ( Xbmcbuntu ) or the first boot after install.

Greets


UPDATE:

I noticed setting both audio and passthrough to pluwhw: 1,3 gives me audio while playback and when set to "Analog". Set to HDMI it's some terrible noise and menu sounds aren't their either way.
(This post was last modified: 2012-03-19 13:14 by dzan.)
find quote
EvilMordor Offline
Junior Member
Posts: 43
Joined: Mar 2012
Reputation: 0
Post: #44
I have a ga-z68xp-ud3p what should i use? tried a few but dint worked :-(
find quote
crosslink Offline
Junior Member
Posts: 1
Joined: Mar 2012
Reputation: 0
Post: #45
Just installed XBMCBuntu on my Zotac GeForce 9300-ITX board and after struggling with the hdmi audio for an hour I thought I'd post my solution here. The fix was adapted from what I found here actually:

http://www.zotacusa.com/forum/topic/5380...den-audio/

My output from aplay -l was:

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

So based on the configuration from the link above I used the following:

Custom audio device: plughw:0,3
Custom passthrough device: plughw:0,1

All is well now. Thanks to all who contributed!
find quote
e1jones Offline
Junior Member
Posts: 2
Joined: May 2012
Reputation: 0
Post: #46
Just installed the XBMCbuntu release and haven't had any luck with getting sound. Depending on what I change sometimes the 'failed to initialize audio device' pops up. I've tried a number of different combinations and still nothing.

aplay -l

card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 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

aplay -L

null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
HDA Intel, ALC888 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
HDA Intel, ALC888 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Direct sample mixing device
dmix:CARD=Intel,DEV=1
HDA Intel, ALC888 Digital
Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
HDA Intel, ALC888 Digital
Direct sample snooping device
hw:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
HDA Intel, ALC888 Digital
Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
HDA Intel, ALC888 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
find quote
Devaron Offline
Member
Posts: 93
Joined: Apr 2011
Reputation: 4
Location: Netherlands
Post: #47
@e1jones

I had the same problem (XBMCBuntu on Ubuntu 12.04). I solved my audio problems by removing (or renaming) the .asoundrc file and rebooting. I believe it's in /home/xbmc/ but can't check now because i'm at work.
Be aware that this is an invisible file!
Also make sure you got the correct audio devices in XBMC. In your case it's plughw:0,0 for analog, plughw:0,1 for digital or plughw:1,3 for HDMI.
(This post was last modified: 2012-05-03 13:59 by Devaron.)
find quote
e1jones Offline
Junior Member
Posts: 2
Joined: May 2012
Reputation: 0
Post: #48
Strange, there isn't an .asoundrc, even with WinSCP set to show hidden files.

Since I neglected to fully describe the situation; I have a Zotac ID11 connected via HDMI to the TV. Video works fine, audio not at all. One of the combinations I tried was

Code:
custom audio device:  plughw:1,3
custom passthru device:  plughw:0,1

as you described; I also switched them just in case I was reading it wrong.

Oddly enough, running alsamixer -c <card_number> on the HDA NVidia shows only the spdif, and it's muted. The HDA Intel shows everything unmuted. Not sure if that's an issue....
find quote
Devaron Offline
Member
Posts: 93
Joined: Apr 2011
Reputation: 4
Location: Netherlands
Post: #49
Ok, and if you enter the same device for BOTH audio and passthru device? So both plughw:1,3 or plughw:0,1.

Regarding .asoundrc, i don't know if WinSCP shows that file, even with hidden files enabled. Best enter the directory "/home/xbmc" and run "ls -a" to be sure. If it's not there, it's possible that there's a "asound.conf" in "/etc/". Maybe if you rename that file and retry? I'd suggest renaming so you can restore the file if something breaks.
find quote
quirino77 Offline
Junior Member
Posts: 1
Joined: Apr 2011
Reputation: 0
Post: #50
I had tried all the options but no sound. Not using passthrough makes me lose quality? If so, could someone help me?

Ubuntu 12.04 64 bits, XBMC Eden, Nvidia GTX 560 TI (no other sound card), Onkyo HT R-390. Sound through HDMI. On Ubuntu sound test, all channels (5.1) works fine.

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

aplay -L
default
Playback/recording through the PulseAudio sound server
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
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
plughw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
HDA NVidia, HDMI 0
Hardware device with all software conversions
find quote
Post Reply