Re: How to use the multiple outputs on intel-hda ALC888 - asoundrc magic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 23 October 2008 02:21:06 Christian Thorge Schmidt wrote:
> Is there a way of making the other outputs work so that I can play two
> or even better three different songs on different outputs?

Hmm I'm sure its somewhere on the ML.

Heres (part of) my setup. I make my .asoundrc include files from a config 
directory.  Much easier to try one thing or the other by including different 
snippets of config.

.asoundrc
# Alsa top level configuration file
</home/me/asoundrc.d/hda_dmix_split>


then in /home/me/asoundrc.d/hda_dmix_split

# Define multichannel dmix
pcm.dmixs40 {
	type dmix
	ipc_key 1040
	ipc_key_add_uid false # let multiple users share
	ipc_perm 0660 # IPC permissions (octal, default 0600)
	slave.pcm "hw:0"
	slave.channels 4
	slave.rate 48000
	slave.periods 4
	slave.period_size 4096
}

pcm.s40_rear {
     type route
     slave.pcm "surround40"
     slave.channels 4
     ttable.0.2 1
     ttable.1.3 1
}

pcm.dmixs40_front {
     type route
     slave.pcm "dmixs40"
     slave.channels 4
     ttable.0.0 1
     ttable.1.1 1
}

pcm.dmixs40_rear {
     type route
     slave.pcm "dmixs40"
     slave.channels 4
     ttable.0.2 1
     ttable.1.3 1
}

pcm.dmixs51 {
	type dmix
	ipc_key 1051
	ipc_key_add_uid false # let multiple users share
	ipc_perm 0660 # IPC permissions (octal, default 0600)
	slave.pcm "hw:0"
	slave.channels 6
	slave.rate 48000
	slave.periods 4
	slave.period_size 4096
}

pcm.dmixs51_front {
     type route
     slave.pcm "dmixs51"
     slave.channels 6
     ttable.0.0 1
     ttable.1.1 1
}

pcm.dmixs51_rear {
     type route
     slave.pcm "dmixs51"
     slave.channels 6
     ttable.0.2 1
     ttable.1.3 1
}

pcm.dmixs51_clfe {
     type route
     slave.pcm "dmixs51"
     slave.channels 6
     ttable.0.4 1
     ttable.1.5 1
}

pcm.dmixs71 {
	type dmix
	ipc_key 1071
	ipc_key_add_uid false # let multiple users share
	ipc_perm 0660 # IPC permissions (octal, default 0600)
	slave.pcm "hw:0"
	slave.channels 8
	slave.rate 48000
	slave.periods 4
	slave.period_size 4096
}


# Green jack : front
pcm.dmixs71_green {
     type route
     slave.pcm "dmixs71"
     slave.channels 8
     ttable.0.0 1
     ttable.1.1 1
}

# Orange jack : centre+lfe (indep mode)
pcm.dmixs71_orange {
     type route
     slave.pcm "dmixs71"
     slave.channels 8
     ttable.0.2 1
     ttable.1.3 1
}

# Black jack : (indep, dup-front off)
pcm.dmixs71_black {
     type route
     slave.pcm "dmixs71"
     slave.channels 8
     ttable.0.4 1
     ttable.1.5 1
}

# Grey jack (doesn't work?)
pcm.dmixs71_grey {
     type route
     slave.pcm "dmixs71"
     slave.channels 8
     ttable.0.6 1
     ttable.1.7 1
}

--
Eliot Blennerhassett
www.audioscience.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux