diff options
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r-- | firmware/mpeg.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 26bfbc0dc3..becd3d54cb 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -2377,17 +2377,17 @@ void mpeg_set_recording_gain(int left, int right, bool use_mic) | |||
2377 | } | 2377 | } |
2378 | 2378 | ||
2379 | /* try to make some kind of beep, also in recording mode */ | 2379 | /* try to make some kind of beep, also in recording mode */ |
2380 | void mpeg_beep(int freq, int duration) | 2380 | void mpeg_beep(int duration) |
2381 | { | 2381 | { |
2382 | (void)freq; /* not used yet */ | ||
2383 | long starttick = current_tick; | 2382 | long starttick = current_tick; |
2384 | do | 2383 | do |
2385 | { | 2384 | { /* toggle bit 0 of codec register 0, toggling the DAC off & on. |
2386 | mas_codec_writereg(0, 0); /* some little-understood sequence, */ | 2385 | * While this is still audible even without an external signal, |
2387 | mas_codec_writereg(0, 1); /* there may be better ways */ | 2386 | * it doesn't affect the (pre-)recording. */ |
2387 | mas_codec_writereg(0, shadow_codec_reg0 ^ 1); | ||
2388 | mas_codec_writereg(0, shadow_codec_reg0); | ||
2388 | } | 2389 | } |
2389 | while (current_tick - starttick < duration); | 2390 | while (current_tick - starttick < duration); |
2390 | mas_codec_writereg(0, shadow_codec_reg0); /* restore it */ | ||
2391 | } | 2391 | } |
2392 | 2392 | ||
2393 | void mpeg_new_file(const char *filename) | 2393 | void mpeg_new_file(const char *filename) |