All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding controls
@ 2006-03-21 23:39 Adrian McMenamin
  2006-03-21 23:58 ` Lee Revell
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian McMenamin @ 2006-03-21 23:39 UTC (permalink / raw)
  To: alsa-devel

When I try to compile my driver I get loads of messages like this...

/home/adrian/aica/aica/snd_card_aica.c:489: warning: "struct
snd_ctl_elem_info" declared inside parameter list
/home/adrian/aica/aica/snd_card_aica.c:489: warning: its scope is only
this definition or declaration, which is probably not what you want
/home/adrian/aica/aica/snd_card_aica.c:489: warning: "struct
snd_kcontrol" declared inside parameter list
/home/adrian/aica/aica/snd_card_aica.c:494: warning: "struct
snd_ctl_elem_value" declared inside parameter list
/home/adrian/aica/aica/snd_card_aica.c:494: warning: "struct
snd_kcontrol" declared inside parameter list
/home/adrian/aica/aica/snd_card_aica.c:499: warning: "struct
snd_ctl_elem_value" declared inside parameter list
/home/adrian/aica/aica/snd_card_aica.c:499: warning: "struct
snd_kcontrol" declared inside parameter list


The code in question is this:

/* Mixer controls */
static int aica_controls_info(struct snd_kcontrol *kcontrol, struct
snd_ctl_elem_info *uinfo)
{
	return 0;
}

static int aica_controls_get(struct snd_kcontrol *kcontrol, struct
snd_ctl_elem_value *ucontrol)
{
	return 0;
}

static int aica_controls_put(struct snd_kcontrol *kcontrol, struct
snd_ctl_elem_value *ucontrol)
{
	return 0;
}

static struct snd_kcontrol_new snd_aica_controls __devinitdata = {
	.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
	.name = "PCM Playback Volume",
	.index = 0,
	.access = SND_CTL_ELEM_ACCESS_READWRITE,
	.private_values = 0xffff,
	.info = aica_controls_info,
	.get = aica_controls_get,
	.put = aica_controls_put
};


And the includes are these:

#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/firmware.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <asm-sh/io.h>
#include <asm-sh/dma.h>
#include <asm-sh/dreamcast/sysasic.h>
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <sound/info.h>
#include "aica.h"



Plainly I have missed something obvious - like a missing header file.
but for the life of me I cannot spot what it is. Can anyone else?



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-03-26  0:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 23:39 Adding controls Adrian McMenamin
2006-03-21 23:58 ` Lee Revell
2006-03-22 20:36   ` Adrian McMenamin
2006-03-22 20:55     ` Adrian McMenamin
2006-03-23  9:43       ` Takashi Iwai
2006-03-25 17:25         ` Adrian McMenamin
2006-03-25 17:57           ` Adrian McMenamin
2006-03-26  0:05           ` Adrian McMenamin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.