Using ALSA DMIX plugin on an OpenSSI cluster

John Hughes <[email protected]>
Newsgroups gmane.linux.cluster.ssic.user
Message-ID <[email protected]>
If you want to use ALSA in an OpenSSI cluster you may run across the 
problem that the "DMIX" plugin - software mixer - uses a fixed semaphore 
ID, which can cause conflicts between different nodes.

My quick and dirty fix is to:

1. move the /usr/share/alsa/alsa.conf file to one side:

    mv /usr/share/alsa/alsa.conf /usr/share/alsa/alsa.conf-openssi
      

(on a Debian system a better way to do this is:

    dpkg-divert --local --rename --divert /usr/share/alsa/alsa.conf-openssi /usr/share/alsa/alsa.conf
      

)

2. Make a new alsa.conf:

    # cat <<'EOF' > /usr/share/alsa/alsa.conf
    </usr/share/alsa/alsa.conf-openssi>
    defaults.pcm.!ipc_key 5678293
    EOF
      

3, make this a node-specific file:

    # mklocalfile /usr/share/alsa/alsa.conf
      

4. edit the /cluster/nodeXX/usr/share/alsa/alsa.conf files so the 
"ipc_key" is unique per node.  Prefix it with the node number for example.


-------------------------------------------------------------------------
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=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.