aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-28 09:13:40 -0400
committerJaroslav Kysela <perex@suse.cz>2006-06-22 15:33:03 -0400
commite5e8a1d4618595ea406336da3cdbd0c6eb6f260d (patch)
tree11d27311e920b03c710b6a1305fa6ffae2cd8abe
parent57c65c116e1c03c54ac7c4bf38f2b4086d2c1a17 (diff)
[ALSA] hda-codec - 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>
-rw-r--r--sound/pci/hda/hda_codec.c41
1 files changed, 22 insertions, 19 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 5bee3b536478..8c2a8174ece1 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -86,6 +86,8 @@ unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, int dire
86 return res; 86 return res;
87} 87}
88 88
89EXPORT_SYMBOL(snd_hda_codec_read);
90
89/** 91/**
90 * snd_hda_codec_write - send a single command without waiting for response 92 * snd_hda_codec_write - send a single command without waiting for response
91 * @codec: the HDA codec 93 * @codec: the HDA codec
@@ -108,6 +110,8 @@ int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int direct,
108 return err; 110 return err;
109} 111}
110 112
113EXPORT_SYMBOL(snd_hda_codec_write);
114
111/** 115/**
112 * snd_hda_sequence_write - sequence writes 116 * snd_hda_sequence_write - sequence writes
113 * @codec: the HDA codec 117 * @codec: the HDA codec
@@ -122,6 +126,8 @@ void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq)
122 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); 126 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param);
123} 127}
124 128
129EXPORT_SYMBOL(snd_hda_sequence_write);
130
125/** 131/**
126 * snd_hda_get_sub_nodes - get the range of sub nodes 132 * snd_hda_get_sub_nodes - get the range of sub nodes
127 * @codec: the HDA codec 133 * @codec: the HDA codec
@@ -140,6 +146,8 @@ int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *sta
140 return (int)(parm & 0x7fff); 146 return (int)(parm & 0x7fff);
141} 147}
142 148
149EXPORT_SYMBOL(snd_hda_get_sub_nodes);
150
143/** 151/**
144 * snd_hda_get_connections - get connection list 152 * snd_hda_get_connections - get connection list
145 * @codec: the HDA codec 153 * @codec: the HDA codec
@@ -256,6 +264,8 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex)
256 return 0; 264 return 0;
257} 265}
258 266
267EXPORT_SYMBOL(snd_hda_queue_unsol_event);
268
259/* 269/*
260 * process queueud unsolicited events 270 * process queueud unsolicited events
261 */ 271 */
@@ -384,6 +394,7 @@ int snd_hda_bus_new(struct snd_card *card, const struct hda_bus_template *temp,
384 return 0; 394 return 0;
385} 395}
386 396
397EXPORT_SYMBOL(snd_hda_bus_new);
387 398
388/* 399/*
389 * find a matching codec preset 400 * find a matching codec preset
@@ -587,6 +598,8 @@ int snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
587 return 0; 598 return 0;
588} 599}
589 600
601EXPORT_SYMBOL(snd_hda_codec_new);
602
590/** 603/**
591 * snd_hda_codec_setup_stream - set up the codec for streaming 604 * snd_hda_codec_setup_stream - set up the codec for streaming
592 * @codec: the CODEC to set up 605 * @codec: the CODEC to set up
@@ -609,6 +622,7 @@ void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stre
609 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, format); 622 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, format);
610} 623}
611 624
625EXPORT_SYMBOL(snd_hda_codec_setup_stream);
612 626
613/* 627/*
614 * amp access functions 628 * amp access functions
@@ -1294,6 +1308,7 @@ int snd_hda_build_controls(struct hda_bus *bus)
1294 return 0; 1308 return 0;
1295} 1309}
1296 1310
1311EXPORT_SYMBOL(snd_hda_build_controls);
1297 1312
1298/* 1313/*
1299 * stream formats 1314 * stream formats
@@ -1382,6 +1397,8 @@ unsigned int snd_hda_calc_stream_format(unsigned int rate,
1382 return val; 1397 return val;
1383} 1398}
1384 1399
1400EXPORT_SYMBOL(snd_hda_calc_stream_format);
1401
1385/** 1402/**
1386 * snd_hda_query_supported_pcm - query the supported PCM rates and formats 1403 * snd_hda_query_supported_pcm - query the supported PCM rates and formats
1387 * @codec: the HDA codec 1404 * @codec: the HDA codec
@@ -1663,6 +1680,7 @@ int snd_hda_build_pcms(struct hda_bus *bus)
1663 return 0; 1680 return 0;
1664} 1681}
1665 1682
1683EXPORT_SYMBOL(snd_hda_build_pcms);
1666 1684
1667/** 1685/**
1668 * snd_hda_check_board_config - compare the current codec with the config table 1686 * snd_hda_check_board_config - compare the current codec with the config table
@@ -2165,6 +2183,8 @@ int snd_hda_suspend(struct hda_bus *bus, pm_message_t state)
2165 return 0; 2183 return 0;
2166} 2184}
2167 2185
2186EXPORT_SYMBOL(snd_hda_suspend);
2187
2168/** 2188/**
2169 * snd_hda_resume - resume the codecs 2189 * snd_hda_resume - resume the codecs
2170 * @bus: the HDA bus 2190 * @bus: the HDA bus
@@ -2187,6 +2207,8 @@ int snd_hda_resume(struct hda_bus *bus)
2187 return 0; 2207 return 0;
2188} 2208}
2189 2209
2210EXPORT_SYMBOL(snd_hda_resume);
2211
2190/** 2212/**
2191 * snd_hda_resume_ctls - resume controls in the new control list 2213 * snd_hda_resume_ctls - resume controls in the new control list
2192 * @codec: the HDA codec 2214 * @codec: the HDA codec
@@ -2247,25 +2269,6 @@ int snd_hda_resume_spdif_in(struct hda_codec *codec)
2247#endif 2269#endif
2248 2270
2249/* 2271/*
2250 * symbols exported for controller modules
2251 */
2252EXPORT_SYMBOL(snd_hda_codec_read);
2253EXPORT_SYMBOL(snd_hda_codec_write);
2254EXPORT_SYMBOL(snd_hda_sequence_write);
2255EXPORT_SYMBOL(snd_hda_get_sub_nodes);
2256EXPORT_SYMBOL(snd_hda_queue_unsol_event);
2257EXPORT_SYMBOL(snd_hda_bus_new);
2258EXPORT_SYMBOL(snd_hda_codec_new);
2259EXPORT_SYMBOL(snd_hda_codec_setup_stream);
2260EXPORT_SYMBOL(snd_hda_calc_stream_format);
2261EXPORT_SYMBOL(snd_hda_build_pcms);
2262EXPORT_SYMBOL(snd_hda_build_controls);
2263#ifdef CONFIG_PM
2264EXPORT_SYMBOL(snd_hda_suspend);
2265EXPORT_SYMBOL(snd_hda_resume);
2266#endif
2267
2268/*
2269 * INIT part 2272 * INIT part
2270 */ 2273 */
2271 2274