2013-02-02, 02:59
remove the last ) on link https://github.com/xbmc/xbmc/pull/2097
(2013-02-01, 22:13)Hawaltie Wrote: For some reason I am not able to select the audio device 'default'. The system settings only show 3 devices, HDMI, SPDIF and Analog and no default.
My current config is:
- ZBox AD12
- Openelec 2.99.2
This fix (2097 (PR)) on github seems to be related.
(2013-02-02, 08:04)Hawaltie Wrote:(2013-02-01, 22:13)Hawaltie Wrote: For some reason I am not able to select the audio device 'default'. The system settings only show 3 devices, HDMI, SPDIF and Analog and no default.
My current config is:
- ZBox AD12
- Openelec 2.99.2
This fix (2097 (PR)) on github seems to be related.
I corrected the link in this post.
(2013-02-02, 23:52)Hawaltie Wrote: Tried that already, but no effect. Are you using an OPENELEC nightly build? I could try that.
(2013-02-01, 22:13)Hawaltie Wrote: For some reason I am not able to select the audio device 'default'. The system settings only show 3 devices, HDMI, SPDIF and Analog and no default.
My current config is:
- ZBox AD12
- Openelec 2.99.2
This fix (2097 (PR)) on github seems to be related.
(2013-02-06, 18:16)SorryGoFish Wrote:(2013-02-01, 22:13)Hawaltie Wrote: For some reason I am not able to select the audio device 'default'. The system settings only show 3 devices, HDMI, SPDIF and Analog and no default.
My current config is:
- ZBox AD12
- Openelec 2.99.2
This fix (2097 (PR)) on github seems to be related.
I have the same issue (no "default" choice in the device list). I was, however, able to get my "HDMI" option to work simply by removing pulseaudio (and rebooting). I don't know why I had it installed, but after removing it, the HDMI option appears to be using my default defined in .asoundrc.
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]
Sub Devices: 1/1
Subdevice #0: subdevice #0
Card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
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: 0/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
(2013-02-18, 17:53)Sorcer Wrote: <snip>
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
# 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
}
# by puntloos
# This should allow you to send audio to two devices, one HDMI (for surround) and one other device, which can be digital or even analog outputs
# 1- Location of asound.conf in OpenELEC is ./storage/.config/asound.conf - create or modify that file.
# 2- Modify the bottom part of the file to match your hardware
# !!!! !!!!!! Renamed the pcm to see if it would show in XBMC: it did NOT.
pcm.!AWdef {
type plug
slave {
pcm "both_digital"
}
}
# First we create a 'both' route, that has 12 channels
pcm.both_digital {
type route
slave {
pcm multi
channels 12
}
# And we route the channels 1:1
# 6 inputs (0-5) get mapped into 12 outputs (0-11)
# (this is how we copy channels)
ttable.0.0 1.0
ttable.1.1 1.0
ttable.2.2 1.0
ttable.3.3 1.0
ttable.4.4 1.0
ttable.5.5 1.0
ttable.0.6 1.0
ttable.1.7 1.0
ttable.2.8 1.0
ttable.3.9 1.0
ttable.4.10 1.0
ttable.5.11 1.0
}
# Then define a multi device that splits the 12-channel input
# Into 2x 6 output
pcm.multi {
type multi
slaves.a {
pcm "hdmi_hw"
channels 6
}
slaves.b {
# virtual dac still has 6 channels
# although I suppose I could try making it 2
pcm "dac_virtual"
channels 6
}
# Bind stuff to the HDMI outputs
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave a
bindings.2.channel 2
bindings.3.slave a
bindings.3.channel 3
bindings.4.slave a
bindings.4.channel 4
bindings.5.slave a
bindings.5.channel 5
# And to the DAC outputs
bindings.6.slave b
bindings.6.channel 0
bindings.7.slave b
bindings.7.channel 1
bindings.8.slave b
bindings.8.channel 2
bindings.9.slave b
bindings.9.channel 3
bindings.10.slave b
bindings.10.channel 4
bindings.11.slave b
bindings.11.channel 5
}
# Since the DAC is 2 channels, we downmix.
pcm.dac_virtual
{
type route
slave.pcm dac_hw
slave.channels 2
# Front and rear, at 33% of original signal strength
ttable.0.0 0.33
ttable.1.1 0.33
ttable.2.0 0.33
ttable.3.1 0.33
# Center channel routing (routed to front-left and front-right),
# 6dB gaindrop (gain half of main channels) per channel
ttable.4.0 0.16
ttable.4.1 0.16
# LFE channel routing (routed to front-left and front-right),
# 6dB gaindrop (gain half of main channels) per channel
ttable.5.0 0.16
ttable.5.1 0.16
}
# And here is my actual hardware
# Note that this is linked to the output of 'aplay -l'
# HDMI output
pcm.hdmi_hw {
type hw
card 1
device 3
channels 2
# !!!! !!!!!! !!!!! Here i changed it to 2 channels: 6 worked as well: but since it was going to Stereo TV speakers i figured it was enough with 2. I still dont know how the optical audio "gets out".
}
# Stereo output
pcm.dac_hw {
type hw
card 0
device 0
channels 2
}
<advancedsettings>
<useddsfanart>true</useddsfanart>
<cputempcommand>cputemp</cputempcommand>
<gputempcommand>gputemp</gputempcommand>
<samba>
<clienttimeout>50</clienttimeout>
</samba>
<network>
<disableipv6>true</disableipv6>
<cachemembuffersize>30242880</cachemembuffersize>
</network>
<audio>
<resample>0</resample>
<audiophile>1</audiophile>
<audiosinkbufferdurationmsec>200</audiosinkbufferdurationmsec>
<allowtranscode44100>0</allowtranscode44100>
<streamsilence>1</streamsilence>
<dont_resample>1</dont_resample>
<audiophile>1</audiophile>
</audio>
<videoscanner>
<ignoreerrors>true</ignoreerrors>
</videoscanner>
</advancedsettings>
Quote:Renamed the pcm to see if it would show in XBMC: it did NOT.My question is: how did you configure XBMC to use the asound.conf instead of ignoring it?