From c807513422b9344ac4439235253f1bd37ba0df1c Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Thu, 24 Jan 2019 16:33:50 +0000 Subject: [PATCH] quieten a few debug messages, bring a standard one forward. --- audio_alsa.c | 16 ++++++++-------- rtsp.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/audio_alsa.c b/audio_alsa.c index d77bfffa..b71d3b6b 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -1248,7 +1248,7 @@ int do_close() { debug(1, "Error %d (\"%s\") freeing the output device hardware.", derr, snd_strerror(derr)); // flush also closes the device - debug(1, "closing alsa handle"); + debug(2, "alsa: do_close() -- closing alsa handle"); if ((derr = snd_pcm_close(alsa_handle))) debug(1, "Error %d (\"%s\") closing the output device.", derr, snd_strerror(derr)); alsa_handle = NULL; @@ -1273,12 +1273,12 @@ int play(void *buf, int samples) { if (alsa_backend_state == abm_disconnected) { ret = do_open(); if (ret == 0) - debug(1, "alsa: play() -- opened output device"); + debug(2, "alsa: play() -- opened output device"); } if (ret == 0) { if (alsa_backend_state != abm_playing) { - debug(1, "alsa: play() -- alsa_backend_state => abm_playing"); + debug(2, "alsa: play() -- alsa_backend_state => abm_playing"); alsa_backend_state = abm_playing; } ret = do_play(buf, samples); @@ -1295,15 +1295,15 @@ static void flush(void) { do_mute(1); if (alsa_backend_state != abm_disconnected) { // must be playing or connected... if (config.keep_dac_busy != 0) { - debug(1, "alsa: flush() -- alsa_backend_state => abm_connected."); + debug(2, "alsa: flush() -- alsa_backend_state => abm_connected."); alsa_backend_state = abm_connected; } else { - debug(1, "alsa: flush() -- closing the output device"); + debug(2, "alsa: flush() -- closing the output device"); do_close(); // will change the state to disconnected - debug(1, "alsa: flush() -- alsa_backend_state => abm_disconnected."); + debug(2, "alsa: flush() -- alsa_backend_state => abm_disconnected."); } } else - debug(1, "alsa: flush() -- called on a disconnected alsa backend"); + debug(3, "alsa: flush() -- called on a disconnected alsa backend"); debug_mutex_unlock(&alsa_mutex, 3); pthread_cleanup_pop(0); // release the mutex } @@ -1527,4 +1527,4 @@ void *alsa_buffer_monitor_thread_code(__attribute__((unused)) void *arg) { usleep(sleep_time_ms * 1000); // has a cancellation point in it } pthread_exit(NULL); -} \ No newline at end of file +} diff --git a/rtsp.c b/rtsp.c index d854ae1b..f7c6acce 100644 --- a/rtsp.c +++ b/rtsp.c @@ -981,7 +981,7 @@ void handle_setup(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { msg_add_header(resp, "Session", "1"); resp->respcode = 200; // it all worked out okay - debug(2, "Connection %d: SETUP with UDP ports Control: %d, Timing: %d and Audio: %d.", + debug(1, "Connection %d: SETUP with UDP ports Control: %d, Timing: %d and Audio: %d.", conn->connection_number, conn->local_control_port, conn->local_timing_port, conn->local_audio_port);