Ok so I have installed the Alsa Upgrade
I am still having issues. Just to clarify I want 2 channel analog and 6 channel through
HDMI. Don'e use SPDIF at this stage but didn't think there was any harm in leaving it in.
I am now getting the message
"failed to initialize audio device"
I have this as my asound.conf file
Code:
# ---------------------------------------------------------------------
# Hardware - do not use directly
# ---------------------------------------------------------------------
pcm.analog-hw {
type hw
card 0
device 0
}
ctl.analog-hw {
type hw
card 0
}
# ---------------------------------------------------------------------
pcm.digital-hw {
type hw
card 0
device 3
}
ctl.digital-hw {
type hw
card 0
}
# -----------------------------------------------------------------------
pcm.spdif-hw {
type hw
card 0
device 1
}
ctl.spdif-hw {
type hw
card 0
}
# -------------------------------------------------------------------------
pcm.dmix-analog {
type dmix
ipc_key 1234
slave {
pcm "analog-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
ctl.dmix-analog {
type hw
card 0
}
# -------------------------------------------------------------------------
pcm.dmix-digital {
type dmix
ipc_key 1235
slave {
pcm "digital-hw"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}
ctl.dmix-digital {
type hw
card 0
}
# ---------------------------------------------------------------------------
# Interfaces to Use
# --------------------------------------------------------------------------
pcm.digital-pcm AC3encode
# --------------------------------------------------------------------------
pcm.analog {
type plug
slave.pcm "analog-hw"
hint {
show on
description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
}
}
ctl.analog {
type hw
card 0
}
# -----------------------------------------------------------------------------
pcm.mixed-analog {
type plug
slave.pcm "dmix-analog"
hint {
show on
description "Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
}
}
ctl.mixed-analog {
type hw
card 0
}
# --------------------------------------------------------------------------------
pcm.digital {
type plug
slave.pcm "digital-hw"
hint {
show on
description "Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary."
}
}
ctl.digital {
type hw
card 0
}
# ----------------------------------------------------------------------------------
pcm.mixed-digital {
type plug
slave.pcm "dmix-digital"
hint {
show on
description "Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
}
}
ctl.mixed-digital {
type hw
card 0
}
pcm.AC3encode {
type a52
bitrate 448
channels 6
}
# ---------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------
# provide a default -for system sounds ??
pcm.!default {
type plug
slave {
pcm multi
rate 48000
}
# Analog Output downmix to 2 channel
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.0 0.7
ttable.3.1 0.7
ttable.4.0 0.7
ttable.4.1 0.7
ttable.5.0 0.5
ttable.5.1 0.5
# HDMI 6 Channel
ttable.0.2 1.0 # FL -> FL
ttable.1.3 1.0 # FR -> FR
ttable.2.4 1.0 # RL -> RL
ttable.3.5 1.0 # RR -> RR
ttable.4.6 1.0 # C -> C
ttable.5.7 1.0 # LFE ->LFE
# Sdif 6 Channel
ttable.0.8 1.0
ttable.1.9 1.0
ttable.2.10 1.0
ttable.3.11 1.0
ttable.4.12 1.0
ttable.5.13 1.0
}
ctl.!default {
type hw
card 0
}
pcm.xbmc {
type plug
slave {
pcm multi
rate 48000
channels 14
}
# Analog Output downmix to 2 channel
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.0 0.7
ttable.3.1 0.7
ttable.4.0 0.7
ttable.4.1 0.7
ttable.5.0 0.5
ttable.5.1 0.5
# HDMI 6 Channel
ttable.0.2 1.0 # FL -> FL
ttable.1.3 1.0 # FR -> FR
ttable.2.4 1.0 # RL -> RL
ttable.3.5 1.0 # RR -> RR
ttable.4.6 1.0 # C -> C
ttable.5.7 1.0 # LFE ->LFE
# Sdif 6 Channel
ttable.0.8 1.0
ttable.1.9 1.0
ttable.2.10 1.0
ttable.3.11 1.0
ttable.4.12 1.0
ttable.5.13 1.0
hint {
show on
description "XBMC device for analog 2 channel and hdmi 6 channel - spdif ac3 upto 6 channels"
}
}
ctl.xbmc {
type hw
card 0
}
pcm.multi {
type multi
slaves.a.pcm "analog-hw"
slaves.a.channels 2
slaves.b.pcm "digital-hw"
slaves.b.channels 6
slaves.c.pcm "spdif-pcm"
slaves.c.channels 6
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
#Hdmi Bindings 6 Channels
bindings.2.slave b
bindings.2.channel 0 # FL
bindings.3.slave b
bindings.3.channel 1 # FR
bindings.4.slave b
bindings.4.channel 2 # RL
bindings.5.slave b
bindings.5.channel 3 # RR
bindings.6.slave b
bindings.6.channel 4 # C
bindings.7.slave b
bindings.7.channel 5 # LFE
#Spdif Bindings 6 Channels
bindings.8.slave c
bindings.8.channel 0
bindings.9.slave c
bindings.9.channel 1
bindings.10.slave c
bindings.10.channel 2
bindings.11.slave c
bindings.11.channel 3
bindings.12.slave c
bindings.12.channel 4
bindings.13.slave c
bindings.13.channel 5
}
ctl.multi {
type hw
card 0
}
This is my aplay
Code:
login as: root
[email protected]'s password:
Linux XBMCLive 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu Sep 9 19:10:03 2010 from 192.168.0.5
root@XBMCLive:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
analog
Analog Output - Use analog outputs, converting samples, format, and rate as necessary.
mixed-analog
Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
digital
Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary.
mixed-digital
Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds.
xbmc
XBMC device for analog 2 channel and hdmi 6 channel - spdif ac3 upto 6 channels
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
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC662 rev1 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
root@XBMCLive:~#
I thought I had it worked out but alas it wasn't to be.
I have my Audio out out Device as alsa:xbmc as instructed.
Any help is much appreciated.
Cheers
Justin
p.s oh if there are any other logs or reports I can get just let me know how too and I will post them up.