Skip to content

Commit cbef55f

Browse files
tiwaiJaroslav Kysela
authored andcommitted
[ALSA] trident - Move EXPORT_SYMBOL() to adjacent to each function
Move EXPORT_SYMBOL() to adjacent to each exported function/variable. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 2dd31de commit cbef55f

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

‎sound/pci/trident/trident_main.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ void snd_trident_start_voice(struct snd_trident * trident, unsigned int voice)
306306
outl(mask, TRID_REG(trident, reg));
307307
}
308308

309+
EXPORT_SYMBOL(snd_trident_start_voice);
310+
309311
/*---------------------------------------------------------------------------
310312
void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice)
311313
@@ -328,6 +330,8 @@ void snd_trident_stop_voice(struct snd_trident * trident, unsigned int voice)
328330
outl(mask, TRID_REG(trident, reg));
329331
}
330332

333+
EXPORT_SYMBOL(snd_trident_stop_voice);
334+
331335
/*---------------------------------------------------------------------------
332336
int snd_trident_allocate_pcm_channel(struct snd_trident *trident)
333337
@@ -502,6 +506,8 @@ void snd_trident_write_voice_regs(struct snd_trident * trident,
502506
#endif
503507
}
504508

509+
EXPORT_SYMBOL(snd_trident_write_voice_regs);
510+
505511
/*---------------------------------------------------------------------------
506512
snd_trident_write_cso_reg
507513
@@ -3884,6 +3890,8 @@ struct snd_trident_voice *snd_trident_alloc_voice(struct snd_trident * trident,
38843890
return NULL;
38853891
}
38863892

3893+
EXPORT_SYMBOL(snd_trident_alloc_voice);
3894+
38873895
void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voice *voice)
38883896
{
38893897
unsigned long flags;
@@ -3912,6 +3920,8 @@ void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voi
39123920
private_free(voice);
39133921
}
39143922

3923+
EXPORT_SYMBOL(snd_trident_free_voice);
3924+
39153925
static void snd_trident_clear_voices(struct snd_trident * trident, unsigned short v_min, unsigned short v_max)
39163926
{
39173927
unsigned int i, val, mask[2] = { 0, 0 };
@@ -3993,13 +4003,3 @@ int snd_trident_resume(struct pci_dev *pci)
39934003
return 0;
39944004
}
39954005
#endif /* CONFIG_PM */
3996-
3997-
EXPORT_SYMBOL(snd_trident_alloc_voice);
3998-
EXPORT_SYMBOL(snd_trident_free_voice);
3999-
EXPORT_SYMBOL(snd_trident_start_voice);
4000-
EXPORT_SYMBOL(snd_trident_stop_voice);
4001-
EXPORT_SYMBOL(snd_trident_write_voice_regs);
4002-
/* trident_memory.c symbols */
4003-
EXPORT_SYMBOL(snd_trident_synth_alloc);
4004-
EXPORT_SYMBOL(snd_trident_synth_free);
4005-
EXPORT_SYMBOL(snd_trident_synth_copy_from_user);

‎sound/pci/trident/trident_memory.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ snd_trident_synth_alloc(struct snd_trident *hw, unsigned int size)
349349
return blk;
350350
}
351351

352+
EXPORT_SYMBOL(snd_trident_synth_alloc);
352353

353354
/*
354355
* free a synth sample area
@@ -365,6 +366,7 @@ snd_trident_synth_free(struct snd_trident *hw, struct snd_util_memblk *blk)
365366
return 0;
366367
}
367368

369+
EXPORT_SYMBOL(snd_trident_synth_free);
368370

369371
/*
370372
* reset TLB entry and free kernel page
@@ -486,3 +488,4 @@ int snd_trident_synth_copy_from_user(struct snd_trident *trident,
486488
return 0;
487489
}
488490

491+
EXPORT_SYMBOL(snd_trident_synth_copy_from_user);

0 commit comments

Comments
 (0)