summaryrefslogtreecommitdiffstats
path: root/alsa.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-09-05 16:38:25 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:32 +1100
commit93db730a4d435e835d144e3393088968e1645c87 (patch)
tree79ced019a01a3602a0d5425477e42348d2b2cd5c /alsa.c
parent91c57bc05904d2f87af864ad9d5f686428ce827f (diff)
Fix warnings generated by checkpatch.pl
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'alsa.c')
-rwxr-xr-xalsa.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/alsa.c b/alsa.c
index dd00ddb..a8609b4 100755
--- a/alsa.c
+++ b/alsa.c
@@ -13,10 +13,7 @@
#include "alsa.h"
-extern struct avirt_coreinfo coreinfo;
-
-static struct snd_card *card = NULL;
-extern struct snd_pcm_ops pcm_ops;
+static struct snd_card *card;
/**
* pcm_constructor - Constructs the ALSA PCM middle devices for this driver
@@ -63,12 +60,12 @@ static int pcm_constructor(struct snd_card *card)
*/
static int alloc_dev_config(struct avirt_alsa_devconfig **devconfig,
struct avirt_alsa_devconfig *userconfig,
- unsigned numdevices)
+ unsigned int numdevices)
{
if (numdevices == 0)
return 0;
- *devconfig = kzalloc(sizeof(struct avirt_alsa_devconfig) * numdevices,
+ *devconfig = kzalloc(sizeof(*devconfig) * numdevices,
GFP_KERNEL);
if (!(*devconfig))
return -ENOMEM;
@@ -101,7 +98,7 @@ struct avirt_alsa_group *avirt_alsa_get_group(int direction)
* @return: 0 on success or error code otherwise
*/
int avirt_alsa_configure_pcm(struct avirt_alsa_devconfig *config, int direction,
- unsigned numdevices)
+ unsigned int numdevices)
{
struct avirt_alsa_group *group;
@@ -167,7 +164,7 @@ int avirt_alsa_deregister(void)
* pcm_buff_complete_cb - PCM buffer complete callback
* @substreamid: pointer to ALSA PCM substream
* @return 0 on success or error code otherwise
- *
+ *
* This should be called from a child Audio Path once it has finished processing
* the pcm buffer
*/