return 0;
}
-static int soundcard_open_ctl(void **ctlhandle, struct soundcard *soundcard)
+static int soundcard_open_ctl(snd_ctl_t **ctlhandle, struct soundcard *soundcard)
{
int err;
return 0;
}
-static int soundcard_open_mix(void **mixhandle, struct soundcard *soundcard, struct mixer *mixer)
+static int soundcard_open_mix(snd_mixer_t **mixhandle, struct soundcard *soundcard, struct mixer *mixer)
{
int err;
int soundcard_setup_process_switches(int cardno)
{
int err;
- void *ctlhandle = NULL;
+ snd_ctl_t *ctlhandle = NULL;
struct soundcard *soundcard;
struct ctl_switch *ctlsw;
struct mixer *mixer;
int soundcard_setup_process_data(int cardno)
{
int err;
- void *ctlhandle = NULL;
- void *mixhandle = NULL;
+ snd_ctl_t *ctlhandle = NULL;
+ snd_mixer_t *mixhandle = NULL;
struct soundcard *soundcard;
struct mixer *mixer;
struct mixer_element *element;
static int soundcard_setup_collect_switches1(int cardno)
{
- void *handle, *mhandle;
+ snd_ctl_t *handle;
+ snd_mixer_t *mhandle;
struct soundcard *card, *first, *prev;
int err, device;
struct mixer *mixer, *mixerprev;
static int soundcard_setup_collect_data1(int cardno)
{
- void *handle, *mhandle;
+ snd_ctl_t *handle;
+ snd_mixer_t *mhandle;
struct soundcard *card;
int err, idx;
struct mixer *mixer;
int info(void)
{
int err;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_info_t info;
if ((err = snd_mixer_open(&handle, card, device)) < 0) {
int elements(void)
{
int err, idx;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_elements_t elements;
snd_mixer_eid_t *element;
int elements_contents(void)
{
int err, idx;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_elements_t elements;
snd_mixer_eid_t *element;
int groups(void)
{
int err, idx;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_groups_t groups;
snd_mixer_gid_t *group;
int eset(int argc, char *argv[])
{
int err;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_eid_t eid;
if (argc < 1) {
int eget(int argc, char *argv[])
{
int err;
- void *handle;
+ snd_mixer_t *handle;
snd_mixer_eid_t eid;
if (argc < 1) {
/* global data */
char *command;
-void *pcm_handle;
+snd_pcm_t *pcm_handle;
struct snd_pcm_playback_info pinfo;
struct snd_pcm_record_info rinfo;
snd_pcm_format_t rformat, format;
static void device_list(void)
{
- void *handle;
+ snd_ctl_t *handle;
int card, err, dev, idx;
unsigned int mask;
struct snd_ctl_hw_info info;