Commit 123992f7 authored by Adrian Bunk's avatar Adrian Bunk Committed by Jaroslav Kysela

[ALSA] sound/core/: possible cleanups

PCM Midlevel,ALSA Core,Timer Midlevel,ALSA sequencer,Virtual Midi
This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 the following unused global functions
- remove the following unneeded EXPORT_SYMBOL's
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5218064c
...@@ -848,23 +848,6 @@ int snd_interval_ratnum(snd_interval_t *i, ...@@ -848,23 +848,6 @@ int snd_interval_ratnum(snd_interval_t *i,
void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params); void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params);
void _snd_pcm_hw_param_setempty(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var); void _snd_pcm_hw_param_setempty(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var);
int snd_pcm_hw_param_min(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var,
unsigned int val, int *dir);
int snd_pcm_hw_param_max(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var,
unsigned int val, int *dir);
int snd_pcm_hw_param_setinteger(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var);
int snd_pcm_hw_param_first(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, int *dir);
int snd_pcm_hw_param_last(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, int *dir);
int snd_pcm_hw_param_near(snd_pcm_substream_t *substream, int snd_pcm_hw_param_near(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, snd_pcm_hw_param_t var,
...@@ -876,7 +859,6 @@ int snd_pcm_hw_param_set(snd_pcm_substream_t *pcm, ...@@ -876,7 +859,6 @@ int snd_pcm_hw_param_set(snd_pcm_substream_t *pcm,
int snd_pcm_hw_params_choose(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); int snd_pcm_hw_params_choose(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params);
int snd_pcm_hw_refine(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); int snd_pcm_hw_refine(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params);
int snd_pcm_hw_params(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params);
int snd_pcm_hw_constraints_init(snd_pcm_substream_t *substream); int snd_pcm_hw_constraints_init(snd_pcm_substream_t *substream);
int snd_pcm_hw_constraints_complete(snd_pcm_substream_t *substream); int snd_pcm_hw_constraints_complete(snd_pcm_substream_t *substream);
......
...@@ -41,9 +41,7 @@ struct snd_midi_event_t { ...@@ -41,9 +41,7 @@ struct snd_midi_event_t {
}; };
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev); int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev);
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize);
void snd_midi_event_free(snd_midi_event_t *dev); void snd_midi_event_free(snd_midi_event_t *dev);
void snd_midi_event_init(snd_midi_event_t *dev);
void snd_midi_event_reset_encode(snd_midi_event_t *dev); void snd_midi_event_reset_encode(snd_midi_event_t *dev);
void snd_midi_event_reset_decode(snd_midi_event_t *dev); void snd_midi_event_reset_decode(snd_midi_event_t *dev);
void snd_midi_event_no_status(snd_midi_event_t *dev, int on); void snd_midi_event_no_status(snd_midi_event_t *dev, int on);
......
...@@ -79,6 +79,5 @@ struct _snd_virmidi_dev { ...@@ -79,6 +79,5 @@ struct _snd_virmidi_dev {
#define SNDRV_VIRMIDI_SEQ_DISPATCH 2 #define SNDRV_VIRMIDI_SEQ_DISPATCH 2
int snd_virmidi_new(snd_card_t *card, int device, snd_rawmidi_t **rrmidi); int snd_virmidi_new(snd_card_t *card, int device, snd_rawmidi_t **rrmidi);
int snd_virmidi_receive(snd_rawmidi_t *rmidi, snd_seq_event_t *ev);
#endif /* __SOUND_SEQ_VIRMIDI */ #endif /* __SOUND_SEQ_VIRMIDI */
...@@ -152,6 +152,4 @@ extern int snd_timer_pause(snd_timer_instance_t * timeri); ...@@ -152,6 +152,4 @@ extern int snd_timer_pause(snd_timer_instance_t * timeri);
extern void snd_timer_interrupt(snd_timer_t * timer, unsigned long ticks_left); extern void snd_timer_interrupt(snd_timer_t * timer, unsigned long ticks_left);
extern unsigned int snd_timer_system_resolution(void);
#endif /* __SOUND_TIMER_H */ #endif /* __SOUND_TIMER_H */
...@@ -1049,7 +1049,6 @@ EXPORT_SYMBOL(snd_pcm_release_substream); ...@@ -1049,7 +1049,6 @@ EXPORT_SYMBOL(snd_pcm_release_substream);
EXPORT_SYMBOL(snd_pcm_format_name); EXPORT_SYMBOL(snd_pcm_format_name);
/* pcm_native.c */ /* pcm_native.c */
EXPORT_SYMBOL(snd_pcm_link_rwlock); EXPORT_SYMBOL(snd_pcm_link_rwlock);
EXPORT_SYMBOL(snd_pcm_start);
#ifdef CONFIG_PM #ifdef CONFIG_PM
EXPORT_SYMBOL(snd_pcm_suspend); EXPORT_SYMBOL(snd_pcm_suspend);
EXPORT_SYMBOL(snd_pcm_suspend_all); EXPORT_SYMBOL(snd_pcm_suspend_all);
......
...@@ -1143,7 +1143,8 @@ int snd_pcm_hw_constraint_pow2(snd_pcm_runtime_t *runtime, ...@@ -1143,7 +1143,8 @@ int snd_pcm_hw_constraint_pow2(snd_pcm_runtime_t *runtime,
#define INT_MIN ((int)((unsigned int)INT_MAX+1)) #define INT_MIN ((int)((unsigned int)INT_MAX+1))
#endif #endif
void _snd_pcm_hw_param_any(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) static void _snd_pcm_hw_param_any(snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var)
{ {
if (hw_is_mask(var)) { if (hw_is_mask(var)) {
snd_mask_any(hw_param_mask(params, var)); snd_mask_any(hw_param_mask(params, var));
...@@ -1163,12 +1164,14 @@ void _snd_pcm_hw_param_any(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) ...@@ -1163,12 +1164,14 @@ void _snd_pcm_hw_param_any(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var)
/** /**
* snd_pcm_hw_param_any * snd_pcm_hw_param_any
*/ */
#if 0
int snd_pcm_hw_param_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int snd_pcm_hw_param_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var) snd_pcm_hw_param_t var)
{ {
_snd_pcm_hw_param_any(params, var); _snd_pcm_hw_param_any(params, var);
return snd_pcm_hw_refine(pcm, params); return snd_pcm_hw_refine(pcm, params);
} }
#endif /* 0 */
void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params) void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params)
{ {
...@@ -1186,11 +1189,13 @@ void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params) ...@@ -1186,11 +1189,13 @@ void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params)
* *
* Fill PARAMS with full configuration space boundaries * Fill PARAMS with full configuration space boundaries
*/ */
#if 0
int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
{ {
_snd_pcm_hw_params_any(params); _snd_pcm_hw_params_any(params);
return snd_pcm_hw_refine(pcm, params); return snd_pcm_hw_refine(pcm, params);
} }
#endif /* 0 */
/** /**
* snd_pcm_hw_param_value * snd_pcm_hw_param_value
...@@ -1198,7 +1203,7 @@ int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) ...@@ -1198,7 +1203,7 @@ int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
* Return the value for field PAR if it's fixed in configuration space * Return the value for field PAR if it's fixed in configuration space
* defined by PARAMS. Return -EINVAL otherwise * defined by PARAMS. Return -EINVAL otherwise
*/ */
int snd_pcm_hw_param_value(const snd_pcm_hw_params_t *params, static int snd_pcm_hw_param_value(const snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, int *dir) snd_pcm_hw_param_t var, int *dir)
{ {
if (hw_is_mask(var)) { if (hw_is_mask(var)) {
...@@ -1303,6 +1308,7 @@ int _snd_pcm_hw_param_setinteger(snd_pcm_hw_params_t *params, ...@@ -1303,6 +1308,7 @@ int _snd_pcm_hw_param_setinteger(snd_pcm_hw_params_t *params,
* non integer values. Reduce configuration space accordingly. * non integer values. Reduce configuration space accordingly.
* Return -EINVAL if the configuration space is empty * Return -EINVAL if the configuration space is empty
*/ */
#if 0
int snd_pcm_hw_param_setinteger(snd_pcm_t *pcm, int snd_pcm_hw_param_setinteger(snd_pcm_t *pcm,
snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var) snd_pcm_hw_param_t var)
...@@ -1317,8 +1323,9 @@ int snd_pcm_hw_param_setinteger(snd_pcm_t *pcm, ...@@ -1317,8 +1323,9 @@ int snd_pcm_hw_param_setinteger(snd_pcm_t *pcm,
} }
return 0; return 0;
} }
#endif /* 0 */
int _snd_pcm_hw_param_first(snd_pcm_hw_params_t *params, static int _snd_pcm_hw_param_first(snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var) snd_pcm_hw_param_t var)
{ {
int changed; int changed;
...@@ -1345,7 +1352,7 @@ int _snd_pcm_hw_param_first(snd_pcm_hw_params_t *params, ...@@ -1345,7 +1352,7 @@ int _snd_pcm_hw_param_first(snd_pcm_hw_params_t *params,
* values > minimum. Reduce configuration space accordingly. * values > minimum. Reduce configuration space accordingly.
* Return the minimum. * Return the minimum.
*/ */
int snd_pcm_hw_param_first(snd_pcm_t *pcm, static int snd_pcm_hw_param_first(snd_pcm_t *pcm,
snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, int *dir) snd_pcm_hw_param_t var, int *dir)
{ {
...@@ -1359,7 +1366,7 @@ int snd_pcm_hw_param_first(snd_pcm_t *pcm, ...@@ -1359,7 +1366,7 @@ int snd_pcm_hw_param_first(snd_pcm_t *pcm,
return snd_pcm_hw_param_value(params, var, dir); return snd_pcm_hw_param_value(params, var, dir);
} }
int _snd_pcm_hw_param_last(snd_pcm_hw_params_t *params, static int _snd_pcm_hw_param_last(snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var) snd_pcm_hw_param_t var)
{ {
int changed; int changed;
...@@ -1386,7 +1393,7 @@ int _snd_pcm_hw_param_last(snd_pcm_hw_params_t *params, ...@@ -1386,7 +1393,7 @@ int _snd_pcm_hw_param_last(snd_pcm_hw_params_t *params,
* values < maximum. Reduce configuration space accordingly. * values < maximum. Reduce configuration space accordingly.
* Return the maximum. * Return the maximum.
*/ */
int snd_pcm_hw_param_last(snd_pcm_t *pcm, static int snd_pcm_hw_param_last(snd_pcm_t *pcm,
snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, int *dir) snd_pcm_hw_param_t var, int *dir)
{ {
...@@ -1437,8 +1444,9 @@ int _snd_pcm_hw_param_min(snd_pcm_hw_params_t *params, ...@@ -1437,8 +1444,9 @@ int _snd_pcm_hw_param_min(snd_pcm_hw_params_t *params,
* values < VAL. Reduce configuration space accordingly. * values < VAL. Reduce configuration space accordingly.
* Return new minimum or -EINVAL if the configuration space is empty * Return new minimum or -EINVAL if the configuration space is empty
*/ */
int snd_pcm_hw_param_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, static int snd_pcm_hw_param_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, unsigned int val, int *dir) snd_pcm_hw_param_t var, unsigned int val,
int *dir)
{ {
int changed = _snd_pcm_hw_param_min(params, var, val, dir ? *dir : 0); int changed = _snd_pcm_hw_param_min(params, var, val, dir ? *dir : 0);
if (changed < 0) if (changed < 0)
...@@ -1451,8 +1459,9 @@ int snd_pcm_hw_param_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, ...@@ -1451,8 +1459,9 @@ int snd_pcm_hw_param_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
return snd_pcm_hw_param_value_min(params, var, dir); return snd_pcm_hw_param_value_min(params, var, dir);
} }
int _snd_pcm_hw_param_max(snd_pcm_hw_params_t *params, static int _snd_pcm_hw_param_max(snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, unsigned int val, int dir) snd_pcm_hw_param_t var, unsigned int val,
int dir)
{ {
int changed; int changed;
int open = 0; int open = 0;
...@@ -1490,8 +1499,9 @@ int _snd_pcm_hw_param_max(snd_pcm_hw_params_t *params, ...@@ -1490,8 +1499,9 @@ int _snd_pcm_hw_param_max(snd_pcm_hw_params_t *params,
* values >= VAL + 1. Reduce configuration space accordingly. * values >= VAL + 1. Reduce configuration space accordingly.
* Return new maximum or -EINVAL if the configuration space is empty * Return new maximum or -EINVAL if the configuration space is empty
*/ */
int snd_pcm_hw_param_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, static int snd_pcm_hw_param_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
snd_pcm_hw_param_t var, unsigned int val, int *dir) snd_pcm_hw_param_t var, unsigned int val,
int *dir)
{ {
int changed = _snd_pcm_hw_param_max(params, var, val, dir ? *dir : 0); int changed = _snd_pcm_hw_param_max(params, var, val, dir ? *dir : 0);
if (changed < 0) if (changed < 0)
...@@ -2564,9 +2574,6 @@ snd_pcm_sframes_t snd_pcm_lib_readv(snd_pcm_substream_t *substream, ...@@ -2564,9 +2574,6 @@ snd_pcm_sframes_t snd_pcm_lib_readv(snd_pcm_substream_t *substream,
EXPORT_SYMBOL(snd_interval_refine); EXPORT_SYMBOL(snd_interval_refine);
EXPORT_SYMBOL(snd_interval_list); EXPORT_SYMBOL(snd_interval_list);
EXPORT_SYMBOL(snd_interval_ratnum); EXPORT_SYMBOL(snd_interval_ratnum);
EXPORT_SYMBOL(snd_interval_muldivk);
EXPORT_SYMBOL(snd_interval_mulkdiv);
EXPORT_SYMBOL(snd_interval_div);
EXPORT_SYMBOL(_snd_pcm_hw_params_any); EXPORT_SYMBOL(_snd_pcm_hw_params_any);
EXPORT_SYMBOL(_snd_pcm_hw_param_min); EXPORT_SYMBOL(_snd_pcm_hw_param_min);
EXPORT_SYMBOL(_snd_pcm_hw_param_set); EXPORT_SYMBOL(_snd_pcm_hw_param_set);
...@@ -2580,7 +2587,6 @@ EXPORT_SYMBOL(snd_pcm_hw_param_last); ...@@ -2580,7 +2587,6 @@ EXPORT_SYMBOL(snd_pcm_hw_param_last);
EXPORT_SYMBOL(snd_pcm_hw_param_near); EXPORT_SYMBOL(snd_pcm_hw_param_near);
EXPORT_SYMBOL(snd_pcm_hw_param_set); EXPORT_SYMBOL(snd_pcm_hw_param_set);
EXPORT_SYMBOL(snd_pcm_hw_refine); EXPORT_SYMBOL(snd_pcm_hw_refine);
EXPORT_SYMBOL(snd_pcm_hw_params);
EXPORT_SYMBOL(snd_pcm_hw_constraints_init); EXPORT_SYMBOL(snd_pcm_hw_constraints_init);
EXPORT_SYMBOL(snd_pcm_hw_constraints_complete); EXPORT_SYMBOL(snd_pcm_hw_constraints_complete);
EXPORT_SYMBOL(snd_pcm_hw_constraint_list); EXPORT_SYMBOL(snd_pcm_hw_constraint_list);
......
...@@ -337,7 +337,7 @@ static int snd_pcm_hw_refine_user(snd_pcm_substream_t * substream, snd_pcm_hw_pa ...@@ -337,7 +337,7 @@ static int snd_pcm_hw_refine_user(snd_pcm_substream_t * substream, snd_pcm_hw_pa
return err; return err;
} }
int snd_pcm_hw_params(snd_pcm_substream_t *substream, static int snd_pcm_hw_params(snd_pcm_substream_t *substream,
snd_pcm_hw_params_t *params) snd_pcm_hw_params_t *params)
{ {
snd_pcm_runtime_t *runtime; snd_pcm_runtime_t *runtime;
......
...@@ -171,11 +171,13 @@ void snd_midi_event_reset_decode(snd_midi_event_t *dev) ...@@ -171,11 +171,13 @@ void snd_midi_event_reset_decode(snd_midi_event_t *dev)
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
} }
#if 0
void snd_midi_event_init(snd_midi_event_t *dev) void snd_midi_event_init(snd_midi_event_t *dev)
{ {
snd_midi_event_reset_encode(dev); snd_midi_event_reset_encode(dev);
snd_midi_event_reset_decode(dev); snd_midi_event_reset_decode(dev);
} }
#endif /* 0 */
void snd_midi_event_no_status(snd_midi_event_t *dev, int on) void snd_midi_event_no_status(snd_midi_event_t *dev, int on)
{ {
...@@ -185,6 +187,7 @@ void snd_midi_event_no_status(snd_midi_event_t *dev, int on) ...@@ -185,6 +187,7 @@ void snd_midi_event_no_status(snd_midi_event_t *dev, int on)
/* /*
* resize buffer * resize buffer
*/ */
#if 0
int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize) int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize)
{ {
unsigned char *new_buf, *old_buf; unsigned char *new_buf, *old_buf;
...@@ -204,6 +207,7 @@ int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize) ...@@ -204,6 +207,7 @@ int snd_midi_event_resize_buffer(snd_midi_event_t *dev, int bufsize)
kfree(old_buf); kfree(old_buf);
return 0; return 0;
} }
#endif /* 0 */
/* /*
* read bytes and encode to sequencer event if finished * read bytes and encode to sequencer event if finished
...@@ -517,8 +521,6 @@ static int extra_decode_xrpn(snd_midi_event_t *dev, unsigned char *buf, int coun ...@@ -517,8 +521,6 @@ static int extra_decode_xrpn(snd_midi_event_t *dev, unsigned char *buf, int coun
EXPORT_SYMBOL(snd_midi_event_new); EXPORT_SYMBOL(snd_midi_event_new);
EXPORT_SYMBOL(snd_midi_event_free); EXPORT_SYMBOL(snd_midi_event_free);
EXPORT_SYMBOL(snd_midi_event_resize_buffer);
EXPORT_SYMBOL(snd_midi_event_init);
EXPORT_SYMBOL(snd_midi_event_reset_encode); EXPORT_SYMBOL(snd_midi_event_reset_encode);
EXPORT_SYMBOL(snd_midi_event_reset_decode); EXPORT_SYMBOL(snd_midi_event_reset_decode);
EXPORT_SYMBOL(snd_midi_event_no_status); EXPORT_SYMBOL(snd_midi_event_no_status);
......
...@@ -672,7 +672,8 @@ static void queue_broadcast_event(queue_t *q, snd_seq_event_t *ev, int atomic, i ...@@ -672,7 +672,8 @@ static void queue_broadcast_event(queue_t *q, snd_seq_event_t *ev, int atomic, i
* process a received queue-control event. * process a received queue-control event.
* this function is exported for seq_sync.c. * this function is exported for seq_sync.c.
*/ */
void snd_seq_queue_process_event(queue_t *q, snd_seq_event_t *ev, int atomic, int hop) static void snd_seq_queue_process_event(queue_t *q, snd_seq_event_t *ev,
int atomic, int hop)
{ {
switch (ev->type) { switch (ev->type) {
case SNDRV_SEQ_EVENT_START: case SNDRV_SEQ_EVENT_START:
......
...@@ -111,7 +111,6 @@ int snd_seq_queue_use(int queueid, int client, int use); ...@@ -111,7 +111,6 @@ int snd_seq_queue_use(int queueid, int client, int use);
int snd_seq_queue_is_used(int queueid, int client); int snd_seq_queue_is_used(int queueid, int client);
int snd_seq_control_queue(snd_seq_event_t *ev, int atomic, int hop); int snd_seq_control_queue(snd_seq_event_t *ev, int atomic, int hop);
void snd_seq_queue_process_event(queue_t *q, snd_seq_event_t *ev, int atomic, int hop);
/* /*
* 64bit division - for sync stuff.. * 64bit division - for sync stuff..
......
...@@ -36,7 +36,8 @@ extern int seq_default_timer_resolution; ...@@ -36,7 +36,8 @@ extern int seq_default_timer_resolution;
#define SKEW_BASE 0x10000 /* 16bit shift */ #define SKEW_BASE 0x10000 /* 16bit shift */
void snd_seq_timer_set_tick_resolution(seq_timer_tick_t *tick, int tempo, int ppq, int nticks) static void snd_seq_timer_set_tick_resolution(seq_timer_tick_t *tick,
int tempo, int ppq, int nticks)
{ {
if (tempo < 1000000) if (tempo < 1000000)
tick->resolution = (tempo * 1000) / ppq; tick->resolution = (tempo * 1000) / ppq;
......
...@@ -64,8 +64,6 @@ extern seq_timer_t *snd_seq_timer_new(void); ...@@ -64,8 +64,6 @@ extern seq_timer_t *snd_seq_timer_new(void);
/* delete timer (destructor) */ /* delete timer (destructor) */
extern void snd_seq_timer_delete(seq_timer_t **tmr); extern void snd_seq_timer_delete(seq_timer_t **tmr);
void snd_seq_timer_set_tick_resolution(seq_timer_tick_t *tick, int tempo, int ppq, int nticks);
/* */ /* */
static inline void snd_seq_timer_update_tick(seq_timer_tick_t *tick, unsigned long resolution) static inline void snd_seq_timer_update_tick(seq_timer_tick_t *tick, unsigned long resolution)
{ {
......
...@@ -110,7 +110,7 @@ static int snd_virmidi_dev_receive_event(snd_virmidi_dev_t *rdev, snd_seq_event_ ...@@ -110,7 +110,7 @@ static int snd_virmidi_dev_receive_event(snd_virmidi_dev_t *rdev, snd_seq_event_
* handler of a remote port which is attached to the virmidi via * handler of a remote port which is attached to the virmidi via
* SNDRV_VIRMIDI_SEQ_ATTACH. * SNDRV_VIRMIDI_SEQ_ATTACH.
*/ */
/* exported */ #if 0
int snd_virmidi_receive(snd_rawmidi_t *rmidi, snd_seq_event_t *ev) int snd_virmidi_receive(snd_rawmidi_t *rmidi, snd_seq_event_t *ev)
{ {
snd_virmidi_dev_t *rdev; snd_virmidi_dev_t *rdev;
...@@ -118,6 +118,7 @@ int snd_virmidi_receive(snd_rawmidi_t *rmidi, snd_seq_event_t *ev) ...@@ -118,6 +118,7 @@ int snd_virmidi_receive(snd_rawmidi_t *rmidi, snd_seq_event_t *ev)
rdev = rmidi->private_data; rdev = rmidi->private_data;
return snd_virmidi_dev_receive_event(rdev, ev); return snd_virmidi_dev_receive_event(rdev, ev);
} }
#endif /* 0 */
/* /*
* event handler of virmidi port * event handler of virmidi port
...@@ -548,4 +549,3 @@ module_init(alsa_virmidi_init) ...@@ -548,4 +549,3 @@ module_init(alsa_virmidi_init)
module_exit(alsa_virmidi_exit) module_exit(alsa_virmidi_exit)
EXPORT_SYMBOL(snd_virmidi_new); EXPORT_SYMBOL(snd_virmidi_new);
EXPORT_SYMBOL(snd_virmidi_receive);
...@@ -431,7 +431,6 @@ EXPORT_SYMBOL(snd_card_pci_resume); ...@@ -431,7 +431,6 @@ EXPORT_SYMBOL(snd_card_pci_resume);
EXPORT_SYMBOL(snd_device_new); EXPORT_SYMBOL(snd_device_new);
EXPORT_SYMBOL(snd_device_register); EXPORT_SYMBOL(snd_device_register);
EXPORT_SYMBOL(snd_device_free); EXPORT_SYMBOL(snd_device_free);
EXPORT_SYMBOL(snd_device_free_all);
/* isadma.c */ /* isadma.c */
#ifdef CONFIG_ISA #ifdef CONFIG_ISA
EXPORT_SYMBOL(snd_dma_program); EXPORT_SYMBOL(snd_dma_program);
......
...@@ -845,7 +845,7 @@ int snd_timer_dev_register(snd_device_t *dev) ...@@ -845,7 +845,7 @@ int snd_timer_dev_register(snd_device_t *dev)
return 0; return 0;
} }
int snd_timer_unregister(snd_timer_t *timer) static int snd_timer_unregister(snd_timer_t *timer)
{ {
struct list_head *p, *n; struct list_head *p, *n;
snd_timer_instance_t *ti; snd_timer_instance_t *ti;
...@@ -946,11 +946,6 @@ struct snd_timer_system_private { ...@@ -946,11 +946,6 @@ struct snd_timer_system_private {
unsigned long correction; unsigned long correction;
}; };
unsigned int snd_timer_system_resolution(void)
{
return 1000000000L / HZ;
}
static void snd_timer_s_function(unsigned long data) static void snd_timer_s_function(unsigned long data)
{ {
snd_timer_t *timer = (snd_timer_t *)data; snd_timer_t *timer = (snd_timer_t *)data;
...@@ -1938,4 +1933,3 @@ EXPORT_SYMBOL(snd_timer_global_free); ...@@ -1938,4 +1933,3 @@ EXPORT_SYMBOL(snd_timer_global_free);
EXPORT_SYMBOL(snd_timer_global_register); EXPORT_SYMBOL(snd_timer_global_register);
EXPORT_SYMBOL(snd_timer_global_unregister); EXPORT_SYMBOL(snd_timer_global_unregister);
EXPORT_SYMBOL(snd_timer_interrupt); EXPORT_SYMBOL(snd_timer_interrupt);
EXPORT_SYMBOL(snd_timer_system_resolution);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment