OSDN Git Service

alsactl: Do not access other cards than specified for init
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 May 2012 06:45:47 +0000 (08:45 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 May 2012 06:45:47 +0000 (08:45 +0200)
commitf7eb87ddc7787e981e6055c9e6f770fc0cd2359a
tree0db410f2e53fc5471bd33484d3cdcb5d8a663d1a
parent05d3bed5cd2fc5ee494766af735f4edd0106167d
alsactl: Do not access other cards than specified for init

When the global state does not exist, alsactl tries to
initialize all soundcards. It is not good when alsactl
is called multiple times from udev. Also, selinux can deny
access to non-existent devices.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/state.c