help with using rear connector as a separate channel

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I seek to use my onboard 4 ch sound in a two stereo setup. so I can
connect a headset to the rear speakers.
I am using gentoo with kernel 2.6.21-ck2-r1 and the alsa provided in the
kernel 1.0.14rc3.

Problem: when I try to use ch34 I get this:
$ aplay -D ch34 sound.wav
ALSA lib pcm_direct.c:1464:(_snd_pcm_direct_get_slave_ipc_offset)
Invalid type 'dshare' for slave PCM

aplay: main:546: audio open error: Invalid argument

my hardware:
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: V8237 [VIA 8237], device 0: VIA 8237 [VIA 8237]
~  Subdevices: 3/4
~  Subdevice #0: subdevice #0
~  Subdevice #1: subdevice #1
~  Subdevice #2: subdevice #2
~  Subdevice #3: subdevice #3
card 0: V8237 [VIA 8237], device 1: VIA 8237 [VIA 8237]
~  Subdevices: 1/1
~  Subdevice #0: subdevice #0

In alsamixer I set the channel to 4 ch. and see this:
$ aplay -L
default:CARD=V8237
~    VIA 8237, VIA 8237
~    Default Audio Device
front:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    Front speakers
surround40:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    4.0 Surround output to Front and Rear speakers
surround41:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=V8237,DEV=0
~    VIA 8237, VIA 8237
~    IEC958 (S/PDIF) Digital Audio Output
null

the only way I may hear anything from the line-in/rear connector is when
running this:
$ aplay -D plug:surround40 sound.wav

I tried this in my .asoundrc file:

pcm_slave.via4 {
~    pcm "hw:0"
~    channels 4
}


pcm.ch12 {
~        type dshare
~        slave via4
~        ipc_key 47110815
~        ipc_key_add_uid no
~        bindings {
~          0 0
~          1 1
~        }
}

pcm.ch34 {
~        type dshare
~        slave via4
~        ipc_key 47110816
~        ipc_key_add_uid no
~        bindings {
~           0 2
~           1 3
~           }
}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHk1TkAyfOPlNsYloRAoQuAJ9V6pQRz+KnymwGs6GXoS1Df0U4CgCgqOlr
wD2rRA8bbNFJnNTmlKZ4fj0=
=2JXw
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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