get two mono channel from stereo line
Hi,
We have a beagleboard with one audio line-in and one audio line-out. From the documentation both are stereo line. Now we want to use four mono audio line for our system. two input from radio and microphone, two output to radio and speaker. We use ALSA and we would like to know how we can achieve this either by plugin or programming alsa.
Thank you for your help
Arif
Quoted 5 lines · arif setiawan
We have a beagleboard with one audio line-in and one audio line-out. From the documentation both are stereo line. Now we want to use four mono audio line for our system. two input from radio and microphone, two output to radio and speaker. We use ALSA and we would like to know how we can achieve this either by plugin or programming alsa.
Try something like this:
pcm_slave.stereo {
pcm "hw:0,0" # or whatever your device is
channels 2
}
pcm.left {
type asym
playback.pcm {
type plug
slave.pcm {
type dshare
slave stereo
ipc_key 200907241
bindings [ 0 ]
}
}
capture.pcm {
type plug
slave.pcm {
type dsnoop
slave stereo
ipc_key 200907242
bindings [ 0 ]
}
}
}pcm.right {
type asym
playback.pcm {
type plug
slave.pcm {
type dshare
slave stereo
ipc_key 20090724
bindings [ 1 ]
}
}
capture.pcm {
type plug
slave.pcm {
type dsnoop
slave stereo
ipc_key 200907242
bindings [ 1 ]
}
}
}HTH
Clemens
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · arif setiawan
It worked now. thank you. Apparently we changed something in your plugin sample.
Sorry, that was my error; I wrote a wrong number for the right dshare plugin.
Quoted 2 lines
The
ipc_keyfor dshare in both left and right is supposed to be same right?, also for dsnoop.
Yes; the two processes that are to share the device use this to communicate with each other.
Best regards,
Clemens