Help to modify asound.conf
#1
I have this sound cards in my PC:

aplay -L
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
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
null
Discard all samples (playback) or generate zero samples (capture)

my hardware list :aplay -l
**** 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: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

So device 0 is analog sound card with 5.1 ability and device 3 is hdmi sound card.
What I want : Set xbmc to analog output without downmix with custom plug.
From this plug I want : 5.1 sound to analog output ( device 0 ) + downmixed stereo to hdmi ( device 3 ).

I tried to make asound.conf :
# ---------------------------------------------------------------------
# Hardware - do not use directly
# ---------------------------------------------------------------------
pcm.analog {
type hw
card 0
device 0
}
ctl.analog {
type hw
card 0
}
# ---------------------------------------------------------------------
pcm.hdmi {
type hw
card 0
device 3
}
ctl.hdmi {
type hw
card 0
}

# -------------------------------------------------------------------------
pcm.hdmi {
type dmix
ipc_key 1235
slave {
pcm "hdmi"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
}

ctl.hdmi {
type hw
card 0
}
# -------------------------------------------------------------------------
pcm.analog {
type plug
slave.pcm "analog"
hint {
show on
description "Analog Output - Use analog outputs, converting samples,
format, and rate as necessary."
}
}

ctl.analog {
type hw
card 0
}


#-------------------------------------------------------------------------
#-------------------------------------------------------------------------

pcm.xbmc {
type plug
slave {
pcm multi
rate 48000
channels 8
}
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.6 0.7
ttable.3.7 0.7
ttable.4.6 0.7
ttable.4.7 0.7
ttable.5.6 0.5
ttable.5.7 0.5
}

ctl.xbmc {
type hw
card 0
}

pcm.multi {
type multi
slaves.a.pcm "analog"
slaves.a.channels 6
slaves.b.pcm "hdmi"
slaves.b.channels 2
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
bindings.6.slave b
bindings.6.channel 0
bindings.7.slave b
bindings.7.channel 1
}

ctl.multi {
type hw
card 0
}


But somethink is wrong and I don't know what. Please can you help me what I'm doing wrong ? Blush

Thanks for each help

Alda
Reply

Logout Mark Read Team Forum Stats Members Help
Help to modify asound.conf0