Sound: ALSA: htcleo: permit to load the driver as module

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
This commit is contained in:
tytung 2011-11-01 00:16:40 +08:00
parent facbe114ed
commit 8ebc201e13
2 changed files with 11 additions and 1 deletions

View File

@ -936,6 +936,7 @@ int q6audio_read(struct audio_client *ac, struct audio_buffer *ab)
r = dal_call_f5(ac->client, AUDIO_OP_READ, &rpc, sizeof(rpc));
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_read);
int q6audio_write(struct audio_client *ac, struct audio_buffer *ab)
{
@ -958,6 +959,7 @@ int q6audio_write(struct audio_client *ac, struct audio_buffer *ab)
r = dal_call_f5(ac->client, AUDIO_OP_WRITE, &rpc, sizeof(rpc));
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_write);
static int audio_rx_volume(struct audio_client *ac, uint32_t dev_id, int32_t volume)
{
@ -2116,6 +2118,7 @@ int q6audio_set_tx_volume(int level)
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_set_tx_volume);
int q6audio_set_tx_mute(int mute)
{
@ -2141,6 +2144,7 @@ int q6audio_set_tx_mute(int mute)
mutex_unlock(&audio_path_lock);
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_set_tx_mute);
int q6audio_set_stream_volume(struct audio_client *ac, int vol)
{
@ -2155,6 +2159,7 @@ int q6audio_set_stream_volume(struct audio_client *ac, int vol)
mutex_unlock(&audio_path_lock);
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_set_stream_volume);
int q6audio_set_stream_eq(struct audio_client *ac, struct cad_audio_eq_cfg *eq_cfg)
{
@ -2212,6 +2217,7 @@ int q6audio_set_rx_volume(int level)
#endif
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_set_rx_volume);
static int q6audio_init_rx_volumes()
{
@ -2257,6 +2263,7 @@ int q6audio_set_rx_mute(int mute)
mutex_unlock(&audio_path_lock);
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_set_rx_mute);
static void do_rx_routing(uint32_t device_id, uint32_t acdb_id)
{
@ -2330,6 +2337,7 @@ int q6audio_do_routing(uint32_t device_id, uint32_t acdb_id)
mutex_unlock(&audio_path_lock);
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_do_routing);
int q6audio_set_route(const char *name)
{
@ -2529,6 +2537,7 @@ struct audio_client *q6audio_open_pcm(uint32_t bufsz, uint32_t rate,
return audio_test();
#endif
}
EXPORT_SYMBOL_GPL(q6audio_open_pcm);
int q6audio_close(struct audio_client *ac)
{
@ -2543,6 +2552,7 @@ int q6audio_close(struct audio_client *ac)
audio_allow_sleep();
return 0;
}
EXPORT_SYMBOL_GPL(q6audio_close);
struct audio_client *q6voice_open(uint32_t flags, uint32_t acdb_id)
{

View File

@ -766,7 +766,7 @@ fail:
DBG("-:%d", rc);
return rc;
}
EXPORT_SYMBOL_GPL(htcleo_alsa_init_pcm);
MODULE_AUTHOR("DFT-Cotulla");
MODULE_DESCRIPTION("HTC LEO ALSA PCM driver");