Commit Graph

81 Commits

Author SHA1 Message Date
Silvano Seva 8625184030 CS7000P: enabled audio management system 2025-03-26 19:58:14 +01:00
Silvano Seva 1a15f793f3 Audio: STM32 ADC: extended driver to STM32H7 family 2025-03-20 20:35:23 +01:00
Silvano Seva 3d04759e8d Audio: STM32 DAC: extended driver to STM32H7 family 2025-03-20 20:35:23 +01:00
Silvano Seva 08cd620951 Audio: stm32_dac: fixed missing restore of output idle level after stream end
On CKS32F407 the external trigger source for a DAC channel needs to be disabled
in order for the writes to the DAC data registers to be effective. This is
coherent with the STM32F4 reference manual, but the STM32 devices update the DAC
output on a register write wether the external trigger is enabled or not.
2025-03-16 10:13:00 +01:00
Silvano Seva cfeb2461b2 CS7000: audio: manage swap between internal and accessory mic/spk 2025-03-16 10:13:00 +01:00
Silvano Seva 4244d85405 CS7000: use hardware SPI for HR_C6000 control interface 2025-03-16 10:13:00 +01:00
Silvano Seva f883d4e7e1 CS7000: avoid spillover of FM audio when switching to HR_C6000 DAC output 2025-03-16 10:13:00 +01:00
Silvano Seva ebff73a95f CS7000: audio driver 2025-03-16 10:13:00 +01:00
marco bbd104172b Audio: ttwrplus: added missing include for SA8x8 driver 2025-01-29 09:11:56 +01:00
Silvano Seva a815588b8c Cx000 DAC: added functions for "beep" tone generation 2024-10-26 12:26:03 +02:00
Silvano Seva 847750e233 Added volume level to device state data structure.
Added filtered volume level to device state. Value is updated at 10Hz and
filtering is done by averaging the current value with the new sample.
2024-10-25 18:48:58 +02:00
Silvano Seva 2d0bf51873 MDUV3x0: using HR_C6000 for MCU to speaker audio 2024-10-12 12:24:05 +02:00
Silvano Seva 2c3f9c50c5 Driver to use HR_C6000 DAC as an audio output device. 2024-10-12 12:20:49 +02:00
Silvano Seva fe3c54153e Stm32 DAC: moved parameter for idle level from config to init function argument 2024-07-10 09:16:14 +02:00
Silvano Seva e95b5bbb6f Linux: fixed compilation errors due to missing gpio-native.h header file 2024-06-23 09:39:43 +02:00
Silvano Seva 8842b98a52 STM32F4xx: updated gpio driver 2024-06-21 18:00:33 +02:00
Silvano Seva 695210d689 GDx: fixed missing audio output from RTX stage 2024-06-21 18:00:18 +02:00
Silvano Seva 3940405c68 stm32_dac: refactored stm32dac_init() to have a per-instance initialization 2024-06-21 09:58:04 +02:00
Silvano Seva 24c4a25b2d Made "static" all the variables local to each translation unit 2024-02-01 11:07:20 +01:00
Silvano Seva 91c0965007 Module17: made M17 baseband output have correct DC bias and amplitude
Removed an old workaround for an hardware bug of Module17 rev 0.1b limiting
the output swing of baseband signal in newer hardware revisions.

Contribution by Mathis Schmieder DB9MAT.
2023-11-21 18:46:03 +01:00
Silvano Seva 75abbaa12c Linux: using file-based driver for SOURCE_RTX input device 2023-11-12 12:35:21 +01:00
Silvano Seva 8040a012b4 Driver for file-based audio input device 2023-11-12 12:34:37 +01:00
Niccolò Izzo 4697be5ea6 Fix squelch behaviour on T-TWR Plus
On LILYGO T-TWR Plus the squelch was being controlled by AT1846s,
resulting in the squelch bar setting being completely ignored. Now we
are introducing the support for a new command of sa8x8-fw called
AT+AUDIO that controls the muting or unmuting of the speaker power
amplifier, enabling us to:
1. Disable AT1846s embedded squelch
2. Enable OpeRTX squelch
Also fixed a bug where the sa8x8-fw version was incorrectly checked.
AT+AUDIO requires sa8x8-fw version v1.3.0.r1, bumped version check in
OpenRTX.

TG-553
2023-10-17 09:54:09 +02:00
Silvano Seva 8dc1cba1f7 Removed sources of old audio stream drivers, updated stub audio driver 2023-08-30 18:04:25 +02:00
Silvano Seva cd936ea216 Audio devices table for linux and GDx targets 2023-08-30 18:04:25 +02:00
Silvano Seva 344aa46da7 Audio devices table for MDx 2023-08-30 18:04:25 +02:00
Silvano Seva 2b1d3236d3 Audio devices table for Module17 2023-08-30 18:04:25 +02:00
Silvano Seva f56771734f Audio device driver for STM32F4xx ADC peripheral 2023-08-30 18:04:25 +02:00
Silvano Seva 5aed3e3316 Audio device driver for STM32F4xx PWM-based 8-bit DAC emulation 2023-08-30 18:04:25 +02:00
Silvano Seva efb5f22750 Audio device driver for STM32F4xx DAC peripheral 2023-08-30 18:04:24 +02:00
Silvano Seva 1011dd1081 Moved audio_stream.h from interfaces to core headers 2023-08-30 18:04:24 +02:00
Silvano Seva 4cd1fdfcf3 Moved gpio.h to peripherals 2023-07-21 19:27:14 +02:00
Silvano Seva e93666a515 Implemented mic gain setting based on UI for Module 17 2023-05-29 22:12:40 +02:00
Silvano Seva a89a7523cb Updated year in copyright headers 2023-02-08 16:33:02 +01:00
Silvano Seva 0692bea269 Partial fix for speaker pop when a voiceprompt begins 2022-10-31 08:41:31 +01:00
Silvano Seva 4411e0f3e8 Implemented audio path management API in GDx and Mod17 audio drivers, removed old audio management API 2022-10-28 09:47:47 +02:00
Silvano Seva 21481072e7 Moved audio management in M17 opmode handler to audio path system 2022-10-28 09:47:47 +02:00
Silvano Seva ebc7be39ab Implemented audio path management API in MDx audio driver 2022-10-28 09:47:47 +02:00
Silvano Seva 714a0dd331 Implemented audio path management API in linux audio driver 2022-10-28 09:47:47 +02:00
Silvano Seva 26048b90d1 Bugfix and refactoring of linux output stream driver 2022-10-28 08:30:46 +02:00
Niccolò Izzo adbd1f070d Fixed bug in circular buffer management inside linux output stream driver, added unit test for circular buffer mode.
TG-220
2022-10-28 08:30:46 +02:00
Niccolò Izzo 58c1c3bbd6 Implemented circular buffer mode in linux output stream driver. 2022-10-28 08:30:46 +02:00
Niccolò Izzo 081b19e52c Implemented output audio stream driver for linux.
Implement outputStream backend on linux using Pulseaudio simple API.

TG-250
2022-10-28 08:30:46 +02:00
Alain Carlucci 724e3196b4 Removed exceptions from linux input stream driver 2022-07-10 11:01:15 +02:00
Alain Carlucci 07394cc8a0 Linux input stream driver: bugfixes and completed test 2022-07-10 11:00:49 +02:00
Alain Carlucci 1d48e5e3e0 Implementation of linux input stream driver 2022-07-10 10:59:45 +02:00
Silvano Seva cdbbaa0ef1 In Module17 output stream driver prevented the DAC channel for baseband output to be turned off when the speaker stream is activated. Fixes #78 2022-06-14 21:01:11 +02:00
Silvano Seva a1888ae19e Improved heap memory management in M17 demodulator class 2022-06-05 12:24:43 +02:00
Silvano Seva 316e588bc3 Updated copyright headers 2022-06-02 09:56:05 +02:00
Niccolò Izzo 6322cb49a4 Cleanup demodulator, improved quantization log
Unified offset and phase variable to reduce the chance of off-by-ones
between buffers. Improved logging on linux and module17 adding
quantization indices.

TG-81
2022-05-27 21:49:33 +02:00