1
0
Fork 0
forked from len0rd/rockbox

Squash compiler warnings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8249 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-12-16 11:18:04 +00:00
parent a472ed5114
commit 149f5bbd2f

View file

@ -105,6 +105,8 @@ int wm8975_init(void) {
/* external dev clock to 24MHz */ /* external dev clock to 24MHz */
outl(inl(0x70000018) & ~0xc, 0x70000018); outl(inl(0x70000018) & ~0xc, 0x70000018);
return 0;
} }
/* Silently enable / disable audio output */ /* Silently enable / disable audio output */
@ -177,21 +179,26 @@ int wm8975_set_master_vol(int vol_l, int vol_r)
/* OUT2 */ /* OUT2 */
ipod_i2c_send(0x1a, LOUT2VOL, vol_l); ipod_i2c_send(0x1a, LOUT2VOL, vol_l);
ipod_i2c_send(0x1a, ROUT2VOL | 0x1, vol_r); ipod_i2c_send(0x1a, ROUT2VOL | 0x1, vol_r);
return 0;
} }
int wm8975_set_mixer_vol(int channel1, int channel2) int wm8975_set_mixer_vol(int channel1, int channel2)
{ {
(void)channel1;
(void)channel2;
return 0;
} }
void wm8975_set_bass(int value) void wm8975_set_bass(int value)
{ {
(void)value;
} }
void wm8975_set_treble(int value) void wm8975_set_treble(int value)
{ {
(void)value;
} }
int wm8975_mute(int mute) int wm8975_mute(int mute)
@ -204,6 +211,8 @@ int wm8975_mute(int mute)
/* Set DACMU = 0 to soft-un-mute the audio DACs. */ /* Set DACMU = 0 to soft-un-mute the audio DACs. */
ipod_i2c_send(0x1a, 0xa, 0x0); ipod_i2c_send(0x1a, 0xa, 0x0);
} }
return 0;
} }
/* Nice shutdown of WM8975 codec */ /* Nice shutdown of WM8975 codec */
@ -222,7 +231,7 @@ void wm8975_close(void)
/* Change the order of the noise shaper, 5th order is recommended above 32kHz */ /* Change the order of the noise shaper, 5th order is recommended above 32kHz */
void wm8975_set_nsorder(int order) void wm8975_set_nsorder(int order)
{ {
(void)order;
} }
/* Note: Disable output before calling this function */ /* Note: Disable output before calling this function */
@ -234,6 +243,7 @@ void wm8975_set_sample_rate(int sampling_control) {
void wm8975_enable_recording(bool source_mic) { void wm8975_enable_recording(bool source_mic) {
(void)source_mic;
} }
void wm8975_disable_recording(void) { void wm8975_disable_recording(void) {
@ -242,8 +252,12 @@ void wm8975_disable_recording(void) {
void wm8975_set_recvol(int left, int right, int type) { void wm8975_set_recvol(int left, int right, int type) {
(void)left;
(void)right;
(void)type;
} }
void wm8975_set_monitor(int enable) { void wm8975_set_monitor(int enable) {
(void)enable;
} }