X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fsound%2Fsb16_csp.h;h=736eac71d053dd165ae065ded9beb0a11ca00c56;hb=5dc93cf4576125f07cfc1b29cab0c9344c5b3d2b;hp=3b44d4b370f5fe2fd6eb3108c5eab67fba7e1f06;hpb=b8c475be7bf9b79e6417c08d7a921b2e8cb04258;p=mv-sheeva.git diff --git a/include/sound/sb16_csp.h b/include/sound/sb16_csp.h index 3b44d4b370f..736eac71d05 100644 --- a/include/sound/sb16_csp.h +++ b/include/sound/sb16_csp.h @@ -114,9 +114,21 @@ struct snd_sb_csp_info { #ifdef __KERNEL__ #include "sb.h" #include "hwdep.h" +#include struct snd_sb_csp; +/* indices for the known CSP programs */ +enum { + CSP_PROGRAM_MULAW, + CSP_PROGRAM_ALAW, + CSP_PROGRAM_ADPCM_INIT, + CSP_PROGRAM_ADPCM_PLAYBACK, + CSP_PROGRAM_ADPCM_CAPTURE, + + CSP_PROGRAM_COUNT +}; + /* * CSP operators */ @@ -158,7 +170,9 @@ struct snd_sb_csp { struct snd_kcontrol *qsound_switch; struct snd_kcontrol *qsound_space; - struct semaphore access_mutex; /* locking */ + struct mutex access_mutex; /* locking */ + + const struct firmware *csp_programs[CSP_PROGRAM_COUNT]; }; int snd_sb_csp_new(struct snd_sb *chip, int device, struct snd_hwdep ** rhwdep);