aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-02-27 10:00:17 -0500
committerTakashi Iwai <tiwai@suse.de>2014-02-27 10:00:51 -0500
commit6776a5d712a1e670e9cf31c6693480d4d9b30e33 (patch)
treebeff817c5ea6a29a7c41db87eca8a95c7cefbd96
parentf2606a807935fab0d5a2806673dcc4ce4f1f40e4 (diff)
ALSA: Move EXPORT_SYMBOL() in appropriate places
Just a cleanup to follow the standard coding style. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/hwdep.c3
-rw-r--r--sound/core/rawmidi.c35
2 files changed, 18 insertions, 20 deletions
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c
index d6eb3ef3e3c7..69459e5f712e 100644
--- a/sound/core/hwdep.c
+++ b/sound/core/hwdep.c
@@ -395,6 +395,7 @@ int snd_hwdep_new(struct snd_card *card, char *id, int device,
395 *rhwdep = hwdep; 395 *rhwdep = hwdep;
396 return 0; 396 return 0;
397} 397}
398EXPORT_SYMBOL(snd_hwdep_new);
398 399
399static int snd_hwdep_free(struct snd_hwdep *hwdep) 400static int snd_hwdep_free(struct snd_hwdep *hwdep)
400{ 401{
@@ -567,5 +568,3 @@ static void __exit alsa_hwdep_exit(void)
567 568
568module_init(alsa_hwdep_init) 569module_init(alsa_hwdep_init)
569module_exit(alsa_hwdep_exit) 570module_exit(alsa_hwdep_exit)
570
571EXPORT_SYMBOL(snd_hwdep_new);
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index 801c86133937..6fc71a4c8a51 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -172,6 +172,7 @@ int snd_rawmidi_drop_output(struct snd_rawmidi_substream *substream)
172 spin_unlock_irqrestore(&runtime->lock, flags); 172 spin_unlock_irqrestore(&runtime->lock, flags);
173 return 0; 173 return 0;
174} 174}
175EXPORT_SYMBOL(snd_rawmidi_drop_output);
175 176
176int snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream) 177int snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream)
177{ 178{
@@ -203,6 +204,7 @@ int snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream)
203 } 204 }
204 return err; 205 return err;
205} 206}
207EXPORT_SYMBOL(snd_rawmidi_drain_output);
206 208
207int snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream) 209int snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream)
208{ 210{
@@ -217,6 +219,7 @@ int snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream)
217 spin_unlock_irqrestore(&runtime->lock, flags); 219 spin_unlock_irqrestore(&runtime->lock, flags);
218 return 0; 220 return 0;
219} 221}
222EXPORT_SYMBOL(snd_rawmidi_drain_input);
220 223
221/* look for an available substream for the given stream direction; 224/* look for an available substream for the given stream direction;
222 * if a specific subdevice is given, try to assign it 225 * if a specific subdevice is given, try to assign it
@@ -354,6 +357,7 @@ int snd_rawmidi_kernel_open(struct snd_card *card, int device, int subdevice,
354 module_put(rmidi->card->module); 357 module_put(rmidi->card->module);
355 return err; 358 return err;
356} 359}
360EXPORT_SYMBOL(snd_rawmidi_kernel_open);
357 361
358static int snd_rawmidi_open(struct inode *inode, struct file *file) 362static int snd_rawmidi_open(struct inode *inode, struct file *file)
359{ 363{
@@ -532,6 +536,7 @@ int snd_rawmidi_kernel_release(struct snd_rawmidi_file *rfile)
532 module_put(rmidi->card->module); 536 module_put(rmidi->card->module);
533 return 0; 537 return 0;
534} 538}
539EXPORT_SYMBOL(snd_rawmidi_kernel_release);
535 540
536static int snd_rawmidi_release(struct inode *inode, struct file *file) 541static int snd_rawmidi_release(struct inode *inode, struct file *file)
537{ 542{
@@ -608,6 +613,7 @@ int snd_rawmidi_info_select(struct snd_card *card, struct snd_rawmidi_info *info
608 } 613 }
609 return -ENXIO; 614 return -ENXIO;
610} 615}
616EXPORT_SYMBOL(snd_rawmidi_info_select);
611 617
612static int snd_rawmidi_info_select_user(struct snd_card *card, 618static int snd_rawmidi_info_select_user(struct snd_card *card,
613 struct snd_rawmidi_info __user *_info) 619 struct snd_rawmidi_info __user *_info)
@@ -655,6 +661,7 @@ int snd_rawmidi_output_params(struct snd_rawmidi_substream *substream,
655 substream->active_sensing = !params->no_active_sensing; 661 substream->active_sensing = !params->no_active_sensing;
656 return 0; 662 return 0;
657} 663}
664EXPORT_SYMBOL(snd_rawmidi_output_params);
658 665
659int snd_rawmidi_input_params(struct snd_rawmidi_substream *substream, 666int snd_rawmidi_input_params(struct snd_rawmidi_substream *substream,
660 struct snd_rawmidi_params * params) 667 struct snd_rawmidi_params * params)
@@ -680,6 +687,7 @@ int snd_rawmidi_input_params(struct snd_rawmidi_substream *substream,
680 runtime->avail_min = params->avail_min; 687 runtime->avail_min = params->avail_min;
681 return 0; 688 return 0;
682} 689}
690EXPORT_SYMBOL(snd_rawmidi_input_params);
683 691
684static int snd_rawmidi_output_status(struct snd_rawmidi_substream *substream, 692static int snd_rawmidi_output_status(struct snd_rawmidi_substream *substream,
685 struct snd_rawmidi_status * status) 693 struct snd_rawmidi_status * status)
@@ -935,6 +943,7 @@ int snd_rawmidi_receive(struct snd_rawmidi_substream *substream,
935 spin_unlock_irqrestore(&runtime->lock, flags); 943 spin_unlock_irqrestore(&runtime->lock, flags);
936 return result; 944 return result;
937} 945}
946EXPORT_SYMBOL(snd_rawmidi_receive);
938 947
939static long snd_rawmidi_kernel_read1(struct snd_rawmidi_substream *substream, 948static long snd_rawmidi_kernel_read1(struct snd_rawmidi_substream *substream,
940 unsigned char __user *userbuf, 949 unsigned char __user *userbuf,
@@ -977,6 +986,7 @@ long snd_rawmidi_kernel_read(struct snd_rawmidi_substream *substream,
977 snd_rawmidi_input_trigger(substream, 1); 986 snd_rawmidi_input_trigger(substream, 1);
978 return snd_rawmidi_kernel_read1(substream, NULL/*userbuf*/, buf, count); 987 return snd_rawmidi_kernel_read1(substream, NULL/*userbuf*/, buf, count);
979} 988}
989EXPORT_SYMBOL(snd_rawmidi_kernel_read);
980 990
981static ssize_t snd_rawmidi_read(struct file *file, char __user *buf, size_t count, 991static ssize_t snd_rawmidi_read(struct file *file, char __user *buf, size_t count,
982 loff_t *offset) 992 loff_t *offset)
@@ -1052,6 +1062,7 @@ int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream)
1052 spin_unlock_irqrestore(&runtime->lock, flags); 1062 spin_unlock_irqrestore(&runtime->lock, flags);
1053 return result; 1063 return result;
1054} 1064}
1065EXPORT_SYMBOL(snd_rawmidi_transmit_empty);
1055 1066
1056/** 1067/**
1057 * snd_rawmidi_transmit_peek - copy data from the internal buffer 1068 * snd_rawmidi_transmit_peek - copy data from the internal buffer
@@ -1108,6 +1119,7 @@ int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
1108 spin_unlock_irqrestore(&runtime->lock, flags); 1119 spin_unlock_irqrestore(&runtime->lock, flags);
1109 return result; 1120 return result;
1110} 1121}
1122EXPORT_SYMBOL(snd_rawmidi_transmit_peek);
1111 1123
1112/** 1124/**
1113 * snd_rawmidi_transmit_ack - acknowledge the transmission 1125 * snd_rawmidi_transmit_ack - acknowledge the transmission
@@ -1143,6 +1155,7 @@ int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count)
1143 spin_unlock_irqrestore(&runtime->lock, flags); 1155 spin_unlock_irqrestore(&runtime->lock, flags);
1144 return count; 1156 return count;
1145} 1157}
1158EXPORT_SYMBOL(snd_rawmidi_transmit_ack);
1146 1159
1147/** 1160/**
1148 * snd_rawmidi_transmit - copy from the buffer to the device 1161 * snd_rawmidi_transmit - copy from the buffer to the device
@@ -1164,6 +1177,7 @@ int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream,
1164 return count; 1177 return count;
1165 return snd_rawmidi_transmit_ack(substream, count); 1178 return snd_rawmidi_transmit_ack(substream, count);
1166} 1179}
1180EXPORT_SYMBOL(snd_rawmidi_transmit);
1167 1181
1168static long snd_rawmidi_kernel_write1(struct snd_rawmidi_substream *substream, 1182static long snd_rawmidi_kernel_write1(struct snd_rawmidi_substream *substream,
1169 const unsigned char __user *userbuf, 1183 const unsigned char __user *userbuf,
@@ -1225,6 +1239,7 @@ long snd_rawmidi_kernel_write(struct snd_rawmidi_substream *substream,
1225{ 1239{
1226 return snd_rawmidi_kernel_write1(substream, NULL, buf, count); 1240 return snd_rawmidi_kernel_write1(substream, NULL, buf, count);
1227} 1241}
1242EXPORT_SYMBOL(snd_rawmidi_kernel_write);
1228 1243
1229static ssize_t snd_rawmidi_write(struct file *file, const char __user *buf, 1244static ssize_t snd_rawmidi_write(struct file *file, const char __user *buf,
1230 size_t count, loff_t *offset) 1245 size_t count, loff_t *offset)
@@ -1504,6 +1519,7 @@ int snd_rawmidi_new(struct snd_card *card, char *id, int device,
1504 *rrawmidi = rmidi; 1519 *rrawmidi = rmidi;
1505 return 0; 1520 return 0;
1506} 1521}
1522EXPORT_SYMBOL(snd_rawmidi_new);
1507 1523
1508static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream) 1524static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream)
1509{ 1525{
@@ -1687,6 +1703,7 @@ void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
1687 list_for_each_entry(substream, &rmidi->streams[stream].substreams, list) 1703 list_for_each_entry(substream, &rmidi->streams[stream].substreams, list)
1688 substream->ops = ops; 1704 substream->ops = ops;
1689} 1705}
1706EXPORT_SYMBOL(snd_rawmidi_set_ops);
1690 1707
1691/* 1708/*
1692 * ENTRY functions 1709 * ENTRY functions
@@ -1725,21 +1742,3 @@ static void __exit alsa_rawmidi_exit(void)
1725 1742
1726module_init(alsa_rawmidi_init) 1743module_init(alsa_rawmidi_init)
1727module_exit(alsa_rawmidi_exit) 1744module_exit(alsa_rawmidi_exit)
1728
1729EXPORT_SYMBOL(snd_rawmidi_output_params);
1730EXPORT_SYMBOL(snd_rawmidi_input_params);
1731EXPORT_SYMBOL(snd_rawmidi_drop_output);
1732EXPORT_SYMBOL(snd_rawmidi_drain_output);
1733EXPORT_SYMBOL(snd_rawmidi_drain_input);
1734EXPORT_SYMBOL(snd_rawmidi_receive);
1735EXPORT_SYMBOL(snd_rawmidi_transmit_empty);
1736EXPORT_SYMBOL(snd_rawmidi_transmit_peek);
1737EXPORT_SYMBOL(snd_rawmidi_transmit_ack);
1738EXPORT_SYMBOL(snd_rawmidi_transmit);
1739EXPORT_SYMBOL(snd_rawmidi_new);
1740EXPORT_SYMBOL(snd_rawmidi_set_ops);
1741EXPORT_SYMBOL(snd_rawmidi_info_select);
1742EXPORT_SYMBOL(snd_rawmidi_kernel_open);
1743EXPORT_SYMBOL(snd_rawmidi_kernel_release);
1744EXPORT_SYMBOL(snd_rawmidi_kernel_read);
1745EXPORT_SYMBOL(snd_rawmidi_kernel_write);