ALSA: core: sparse cleanups
Change the core code where sparse complains. In most cases, this means just adding annotations to confirm that we indeed want to do the dirty things we're doing. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
88b27fdac8
commit
fea952e5cc
@@ -25,7 +25,7 @@
|
||||
#include "pcm_plugin.h"
|
||||
|
||||
static void zero_areas(struct snd_pcm_plugin_channel *dvp, int ndsts,
|
||||
snd_pcm_uframes_t frames, int format)
|
||||
snd_pcm_uframes_t frames, snd_pcm_format_t format)
|
||||
{
|
||||
int dst = 0;
|
||||
for (; dst < ndsts; ++dst) {
|
||||
@@ -38,7 +38,7 @@ static void zero_areas(struct snd_pcm_plugin_channel *dvp, int ndsts,
|
||||
|
||||
static inline void copy_area(const struct snd_pcm_plugin_channel *src_channel,
|
||||
struct snd_pcm_plugin_channel *dst_channel,
|
||||
snd_pcm_uframes_t frames, int format)
|
||||
snd_pcm_uframes_t frames, snd_pcm_format_t format)
|
||||
{
|
||||
dst_channel->enabled = 1;
|
||||
snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format);
|
||||
@@ -51,7 +51,7 @@ static snd_pcm_sframes_t route_transfer(struct snd_pcm_plugin *plugin,
|
||||
{
|
||||
int nsrcs, ndsts, dst;
|
||||
struct snd_pcm_plugin_channel *dvp;
|
||||
int format;
|
||||
snd_pcm_format_t format;
|
||||
|
||||
if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))
|
||||
return -ENXIO;
|
||||
|
Reference in New Issue
Block a user