Skip to content

Commit fa84cf0

Browse files
committed
ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc()
snd_pcm_lib_mmap_vmalloc() was supposed to be implemented with somewhat special for vmalloc handling, but in the end, this turned to just the default handler, i.e. NULL. As the situation has never changed over decades, let's rip it off. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent ef4db23 commit fa84cf0

21 files changed

Lines changed: 0 additions & 30 deletions

File tree

‎drivers/staging/most/sound/sound.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ static const struct snd_pcm_ops pcm_ops = {
457457
.trigger = pcm_trigger,
458458
.pointer = pcm_pointer,
459459
.page = snd_pcm_lib_get_vmalloc_page,
460-
.mmap = snd_pcm_lib_mmap_vmalloc,
461460
};
462461

463462
static int split_arg_list(char *buf, char **card_name, u16 *ch_num,

‎include/sound/pcm.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,8 +1342,6 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s
13421342
#define snd_pcm_lib_mmap_iomem NULL
13431343
#endif
13441344

1345-
#define snd_pcm_lib_mmap_vmalloc NULL
1346-
13471345
/**
13481346
* snd_pcm_limit_isa_dma_size - Get the max size fitting with ISA DMA transfer
13491347
* @dma: DMA number

‎sound/drivers/aloop.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ static const struct snd_pcm_ops loopback_pcm_ops = {
778778
.trigger = loopback_trigger,
779779
.pointer = loopback_pointer,
780780
.page = snd_pcm_lib_get_vmalloc_page,
781-
.mmap = snd_pcm_lib_mmap_vmalloc,
782781
};
783782

784783
static int loopback_pcm_new(struct loopback *loopback,

‎sound/drivers/vx/vx_pcm.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ static const struct snd_pcm_ops vx_pcm_playback_ops = {
883883
.trigger = vx_pcm_trigger,
884884
.pointer = vx_pcm_playback_pointer,
885885
.page = snd_pcm_lib_get_vmalloc_page,
886-
.mmap = snd_pcm_lib_mmap_vmalloc,
887886
};
888887

889888

@@ -1105,7 +1104,6 @@ static const struct snd_pcm_ops vx_pcm_capture_ops = {
11051104
.trigger = vx_pcm_trigger,
11061105
.pointer = vx_pcm_capture_pointer,
11071106
.page = snd_pcm_lib_get_vmalloc_page,
1108-
.mmap = snd_pcm_lib_mmap_vmalloc,
11091107
};
11101108

11111109

‎sound/firewire/bebob/bebob_pcm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ int snd_bebob_create_pcm_devices(struct snd_bebob *bebob)
373373
.pointer = pcm_playback_pointer,
374374
.ack = pcm_playback_ack,
375375
.page = snd_pcm_lib_get_vmalloc_page,
376-
.mmap = snd_pcm_lib_mmap_vmalloc,
377376
};
378377
struct snd_pcm *pcm;
379378
int err;

‎sound/firewire/dice/dice-pcm.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ int snd_dice_create_pcm(struct snd_dice *dice)
412412
.pointer = capture_pointer,
413413
.ack = capture_ack,
414414
.page = snd_pcm_lib_get_vmalloc_page,
415-
.mmap = snd_pcm_lib_mmap_vmalloc,
416415
};
417416
static const struct snd_pcm_ops playback_ops = {
418417
.open = pcm_open,
@@ -425,7 +424,6 @@ int snd_dice_create_pcm(struct snd_dice *dice)
425424
.pointer = playback_pointer,
426425
.ack = playback_ack,
427426
.page = snd_pcm_lib_get_vmalloc_page,
428-
.mmap = snd_pcm_lib_mmap_vmalloc,
429427
};
430428
struct snd_pcm *pcm;
431429
unsigned int capture, playback;

‎sound/firewire/digi00x/digi00x-pcm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ int snd_dg00x_create_pcm_devices(struct snd_dg00x *dg00x)
352352
.pointer = pcm_playback_pointer,
353353
.ack = pcm_playback_ack,
354354
.page = snd_pcm_lib_get_vmalloc_page,
355-
.mmap = snd_pcm_lib_mmap_vmalloc,
356355
};
357356
struct snd_pcm *pcm;
358357
int err;

‎sound/firewire/fireface/ff-pcm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ int snd_ff_create_pcm_devices(struct snd_ff *ff)
383383
.pointer = pcm_playback_pointer,
384384
.ack = pcm_playback_ack,
385385
.page = snd_pcm_lib_get_vmalloc_page,
386-
.mmap = snd_pcm_lib_mmap_vmalloc,
387386
};
388387
struct snd_pcm *pcm;
389388
int err;

‎sound/firewire/fireworks/fireworks_pcm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ int snd_efw_create_pcm_devices(struct snd_efw *efw)
397397
.pointer = pcm_playback_pointer,
398398
.ack = pcm_playback_ack,
399399
.page = snd_pcm_lib_get_vmalloc_page,
400-
.mmap = snd_pcm_lib_mmap_vmalloc,
401400
};
402401
struct snd_pcm *pcm;
403402
int err;

‎sound/firewire/isight.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ static int isight_create_pcm(struct isight *isight)
454454
.trigger = isight_trigger,
455455
.pointer = isight_pointer,
456456
.page = snd_pcm_lib_get_vmalloc_page,
457-
.mmap = snd_pcm_lib_mmap_vmalloc,
458457
};
459458
struct snd_pcm *pcm;
460459
int err;

0 commit comments

Comments
 (0)