]> mj.ucw.cz Git - ursary.git/commitdiff
Minor fixes
authorMartin Mares <mj@ucw.cz>
Sun, 14 May 2023 14:14:26 +0000 (16:14 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 14 May 2023 14:14:26 +0000 (16:14 +0200)
ursaryd.c

index 2a67a78a780fe7f309b4a489384f8c65ca983e21..56745ea0eb576421003c5ee9ab457d45ddd78257 100644 (file)
--- a/ursaryd.c
+++ b/ursaryd.c
@@ -43,7 +43,7 @@
  *     slider  light color temperature
  */
 
-#define PCH_SINK "alsa_output.pci-0000_00_1f.3.analog-stereo"
+#define PCH_SINK "alsa_output.pci-0000_07_00.6.analog-stereo"
 #define BT_SINK "bluez_sink.CC_98_8B_D0_8C_06.a2dp_sink"
 #define LOGI_SOURCE "alsa_input.usb-046d_Logitech_Webcam_C925e_EF163C5F-02.analog-stereo"
 
@@ -842,7 +842,7 @@ void notify_touch(int rotary UNUSED, int on UNUSED)
 
 static void notify_ir(const char *key)
 {
-  msg(L_INFO, "Received IR key %s", key);
+  DBG("Received IR key %s", key);
 
   // Lights
   if (!strcmp(key, "preset+"))
@@ -874,9 +874,9 @@ static void notify_ir(const char *key)
   else if (!strcmp(key, "next-song"))
     mpd_next();
   else if (!strcmp(key, "rewind"))
-    update_sink_from_rotary(-5, PCH_SINK);
+    update_sink_from_rotary(-2, PCH_SINK);
   else if (!strcmp(key, "ffwd"))
-    update_sink_from_rotary(5, PCH_SINK);
+    update_sink_from_rotary(2, PCH_SINK);
 }
 
 void notify_mqtt(const char *topic, const char *val)