Просмотр исходного кода

Remove deprecated audio pin defines (#26111)

Joel Challis 4 месяцев назад
Родитель
Сommit
7382c0a6f2

+ 0 - 18
docs/config_options.md

@@ -74,24 +74,6 @@ This is a C header file that is one of the first things included, and will persi
   * pins mapped to rows and columns, from left to right. Defines a matrix where each switch is connected to a separate pin and ground.
   * pins mapped to rows and columns, from left to right. Defines a matrix where each switch is connected to a separate pin and ground.
 * `#define AUDIO_VOICES`
 * `#define AUDIO_VOICES`
   * turns on the alternate audio voices (to cycle through)
   * turns on the alternate audio voices (to cycle through)
-* `#define C4_AUDIO`
-  * enables audio on pin C4
-  * Deprecated. Use `#define AUDIO_PIN C4`
-* `#define C5_AUDIO`
-  * enables audio on pin C5
-  * Deprecated. Use `#define AUDIO_PIN C5`
-* `#define C6_AUDIO`
-  * enables audio on pin C6
-  * Deprecated. Use `#define AUDIO_PIN C6`
-* `#define B5_AUDIO`
-  * enables audio on pin B5 (duophony is enabled if one of B pins is enabled along with one of C pins)
-  * Deprecated. Use `#define AUDIO_PIN B5`, or use `#define AUDIO_PIN_ALT B5` if a `C` pin is enabled with `AUDIO_PIN`
-* `#define B6_AUDIO`
-  * enables audio on pin B6 (duophony is enabled if one of B pins is enabled along with one of C pins)
-  * Deprecated. Use `#define AUDIO_PIN B6`, or use `#define AUDIO_PIN_ALT B6` if a `C` pin is enabled with `AUDIO_PIN`
-* `#define B7_AUDIO`
-  * enables audio on pin B7 (duophony is enabled if one of B pins is enabled along with one of C pins)
-  * Deprecated. Use `#define AUDIO_PIN B7`, or use `#define AUDIO_PIN_ALT B7` if a `C` pin is enabled with `AUDIO_PIN`
 * `#define BACKLIGHT_PIN B7`
 * `#define BACKLIGHT_PIN B7`
   * pin of the backlight
   * pin of the backlight
 * `#define BACKLIGHT_LEVELS 3`
 * `#define BACKLIGHT_LEVELS 3`

+ 1 - 1
keyboards/delikeeb/vanana/rev1/config.h

@@ -17,7 +17,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
 #pragma once
 #pragma once
 
 
-#define B7_AUDIO
+#define AUDIO_PIN B7
 
 
 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  * This is useful for the Windows task manager shortcut (ctrl+shift+esc).

+ 1 - 1
keyboards/delikeeb/vanana/rev2/config.h

@@ -17,7 +17,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
 #pragma once
 #pragma once
 
 
-#define B7_AUDIO
+#define AUDIO_PIN B7
 
 
 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  * This is useful for the Windows task manager shortcut (ctrl+shift+esc).

+ 1 - 1
keyboards/latincompass/latin6rgb/config.h

@@ -19,4 +19,4 @@
 
 
 #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
 #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
 
 
-#define B7_AUDIO
+#define AUDIO_PIN B7

+ 1 - 1
keyboards/merge/um70/config.h

@@ -19,7 +19,7 @@
 #define SPLIT_USB_DETECT
 #define SPLIT_USB_DETECT
 #define SPLIT_MODS_ENABLE
 #define SPLIT_MODS_ENABLE
 
 
-#define B6_AUDIO
+#define AUDIO_PIN B6
 
 
 #ifdef AUDIO_ENABLE
 #ifdef AUDIO_ENABLE
   #define STARTUP_SONG SONG(STARTUP_SOUND)
   #define STARTUP_SONG SONG(STARTUP_SOUND)

+ 1 - 2
keyboards/nightly_boards/n60_s/config.h

@@ -18,6 +18,5 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 #pragma once
 
 
 /* Audio */
 /* Audio */
-
-#define B7_AUDIO
+#define AUDIO_PIN B7
 #define AUDIO_CLICKY
 #define AUDIO_CLICKY

+ 0 - 14
lib/python/qmk/info.py

@@ -420,19 +420,6 @@ def _extract_direct_matrix(direct_pins):
     return direct_pin_array
     return direct_pin_array
 
 
 
 
-def _extract_audio(info_data, config_c):
-    """Populate data about the audio configuration
-    """
-    audio_pins = []
-
-    for pin in 'B5', 'B6', 'B7', 'C4', 'C5', 'C6':
-        if config_c.get(f'{pin}_AUDIO'):
-            audio_pins.append(pin)
-
-    if audio_pins:
-        info_data['audio'] = {'pins': audio_pins}
-
-
 def _extract_encoders_values(config_c, postfix=''):
 def _extract_encoders_values(config_c, postfix=''):
     """Common encoder extraction logic
     """Common encoder extraction logic
     """
     """
@@ -718,7 +705,6 @@ def _extract_config_h(info_data, config_c):
 
 
     # Pull data that easily can't be mapped in json
     # Pull data that easily can't be mapped in json
     _extract_matrix_info(info_data, config_c)
     _extract_matrix_info(info_data, config_c)
-    _extract_audio(info_data, config_c)
     _extract_secure_unlock(info_data, config_c)
     _extract_secure_unlock(info_data, config_c)
     _extract_split_handedness(info_data, config_c)
     _extract_split_handedness(info_data, config_c)
     _extract_split_serial(info_data, config_c)
     _extract_split_serial(info_data, config_c)