So many headaches, all because of passthrough audio.
#16
Anything Realtek is pretty good.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#17
I have a vantec pcie card and works with optical digital and passthrough


lspici gives:

Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)

oneiric picked it up out the box
Reply
#18
I now have no sound at all from the digital outputs and I can't even run a speaker-test on analog. Resource busy.

I'm giving it one more try with a completely unmodified 10.10 install. If that doesn't work, I'm breaking every Ubuntu disk I have and installing XP.
Reply
#19
So far, so good. I tried a clean basic install of Ubuntu 10.10 and I had no sound, so I wiped it and tried again using an article I found based on Server, so I got 9.10 installed, upgraded it to 10.04, then worked toward getting XBMC installed, and so far, it's working well. And it's quick. The only current problems I know about is that XBMC is not launching automatically upon login and the xbmc user is not allowed to shutdown, reboot or suspend the box, but I know how to fix those two problems.

One thing I noticed with one of my installation attempts was that before I set up the ps3 remote to work with the system, XBMC would bring up a notification, literally every five seconds, that a bluetooth device had been detected. If I pressed and held start & enter, the notifications would stop, but the remote would never pair with the system and as soon as I released the keys, the notifications would start up again. If it's polling devices that often, it's no surprise that I'm burning through batteries in two weeks time, but I don't know how to adjust settings for that.
Reply
#20
My movies are now playing as they should. I have optical/coax, 5.1, all three items selected and the output device says pulse:default@default. Passthrough is set to iec958 but when I try to play an anime or movie trailer, it says failed to initialize audio device. The other options I have are HDMI and Custom. HDMI doesn't work and using pulse:default@default doesn't work. So, I'm not sure how to get audio to pass through to digital.

/etc/asound.conf
Code:
pcm.!default {
    type hw
    card Intel
    device 1
}
ctl.!default {
    type hw
    card Intel
    device 1
}

/usr/share/xbmc/system/asound.conf
Code:
# downmixing to 2 channels
pcm.xbmc_71to2 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type plug
  slave.pcm $SLAVE
  slave.channels 2
  route_policy duplicate
  ttable.0.0 1          # front left speaker
  ttable.1.1 1          # front right speaker
  ttable.2.0 0.7        # rear left speaker
  ttable.3.1 0.7        # rear right speaker
  ttable.4.0 0.7        # center to left mapping
  ttable.4.1 0.7        # center to right mapping
  ttable.5.0 0.5        # LFE (base) to left mapping
  ttable.5.1 0.5        # LFE to right mapping
  ttable.6.0 0.6    # SL to left mapping
  ttable.7.0 0.6    # SR to right mapping
}

# downmixing to 2 channels
pcm.xbmc_51to2 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type plug
  slave.pcm $SLAVE
  slave.channels 2
  route_policy duplicate
  ttable.0.0 1          # front left speaker
  ttable.1.1 1          # front right speaker
  ttable.2.0 0.7        # rear left speaker
  ttable.3.1 0.7        # rear right speaker
  ttable.4.0 0.7        # center to left mapping
  ttable.4.1 0.7        # center to right mapping
  ttable.5.0 0.5        # LFE (base) to left mapping
  ttable.5.1 0.5        # LFE to right mapping
}

# downmixing to 2 channels
pcm.xbmc_50to2 {
  @args.0 SLAVE
  @args.SLAVE {
    type string
    default "default"
  }
  type plug
  slave.pcm $SLAVE
  slave.channels 2
  route_policy duplicate
  ttable.0.0 1          # front left speaker
  ttable.1.1 1          # front right speaker
  ttable.2.0 0.7        # rear left speaker
  ttable.3.1 0.7        # rear right speaker
  ttable.4.0 0.7        # center to left mapping
  ttable.4.1 0.7        # center to right mapping
}

/home/xbmc/.asoundrc
Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,1"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}
Reply
#21
I bought a new TV and set to work on getting XBMC to work with HDMI. I made no changes at all and plugged in the HDMI cable. I hoped that I would get video but didn't expect to get audio yet but I was rudely presented with an error message of unable to initialize audio device. Really? All I did was plug in a cable. I can't go back either. I have no sound whether through coax or through hdmi. Can someone help me figure this out?

I changed the bios to make the onboard video the default. With pci-express the default, the tv wouldn't recognize a signal unless I first had a DVI monitor connected to the computer and allowed it to boot. TV is up, display 1920x1080, just like it should. I've been mucking with this thing for a couple hours now, so I don't know what's correct and what's wrong. I don't much care about sound over coax at this point as long as I can get sound through HDMI.

Code:
root@Griffin:/home/cshoults# aplay -l
**** List of PLAYBACK Hardware Devices ****
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
root@Griffin:/home/cshoults# aplay -L
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, HDA Generic
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
    HDA Intel, INTEL HDMI
    HDMI Audio Output

/etc/asound.conf
Code:
pcm.!default {
    type hw
    card Intel
    device 3
}
ctl.!default {
    type hw
    card Intel
    device 3
}
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}

/home/xbmc/.asoundrc
Code:
pcm.dmixer {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0660
    slave {
        pcm "hw:0,3"
        rate 48000
        channels 2
        period_time 0
        period_size 1024
        buffer_time 0
        buffer_size 8192
    }
    bindings {
        0 0
        1 1
    }
}

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

xbmc config:
Audio Output: HDMI
Audio output device:
  • hdmi = no error, no sound
  • iec958 = error, no sound
  • Defaults = no error, no sound
  • dmixer = error, no sound
Passthrough output device:
  • hdmi = no error, no sound
  • iec958 = no error, no sound
  • dmixer = no error, no sound
  • plug:dmixer = no error, no sound
  • fluffy rabbit = no error, no sound
Reply
#22
If im not mistaking its pointless to have /home/xbmc/.asoundrc if you have asound.conf in etc. remove the one in etc (backup the file if you need it)



From what i can see from your aplay -l is that the card is on 0 and output for hdmi is on device 3.
so try set following in the /home/xbmc/.asoundrc


pcm.!default {
type hw
card 0
device 3
}

that sould give you sound out the hdmi cable

my point is try simplisity first, and when you get that to work, you can try to get pastrought and other nifty stuff to work

And then under xbmc GUI choose not those manual config under pastrought and the other, try one of the with hdmi in the name.Wink
Reply
#23
I had problems with no sound from my Asus sound card(digital output > surround sound amp)using Ubuntu 10.10,I upgraded to 11.04 and bingo no problems,I moved to Ubuntu Satanic Edition which is based on 10.04 and again I have a working digital output.
The only problem I have is when playing mkv files but I think that is another issue.
Any ideas someone please.
Have you tried playing a file using VLC? That way you can deduce if its your distro, Alsa or Xbmc.
For mkv files I stream to my Samsung TV using PS3 Media Server,hence I know that the issue probably lies somewhere within Xbmc
Reply
#24
Another shot is try to type in the name of the card in the 'audio output' preferences of xbmc. Set it to 'custom' and type in...

hdmi:CARD=Intel

I was having problems just yesterday and luckily, by me typing in the name of the card, it magically started working on Eden. In Dharma, xbmc just found the HDMI port and used it, without setting a custom one up.
Reply

Logout Mark Read Team Forum Stats Members Help
So many headaches, all because of passthrough audio.0