Skip to content

Commit a4fdf46

Browse files
committed
Merge branch 'feat/component_upgrade_for_release2' into 'master'
feat: release official version of some components Closes AEG-1685 See merge request ae_group/esp-iot-solution!1066
2 parents e567cbb + 4c185ba commit a4fdf46

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+8687
-8107
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ examples/**/build
3434

3535
# Example online download files
3636
examples/usb/device/usb_dual_uvc_device/**/*.avi
37+
components/avi_player/test_apps/**/*.avi
3738

3839
# Doc build artifacts
3940
docs/**/_build/

.gitlab/ci/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,21 @@ build_example_utilities_xz_decompress_file:
820820
variables:
821821
EXAMPLE_DIR: examples/utilities/xz_decompress_file
822822

823+
build_components_audio_pwm_audio_test_apps:
824+
extends:
825+
- .build_examples_template
826+
- .rules:build:component_audio_pwm_audio_test_apps
827+
- .build_idf_active_release_version
828+
variables:
829+
EXAMPLE_DIR: components/audio/pwm_audio/test_apps
830+
831+
build_components_avi_player_test_apps:
832+
extends:
833+
- .build_examples_template
834+
- .rules:build:components_avi_player_test_apps
835+
- .build_idf_active_release_version
836+
variables:
837+
EXAMPLE_DIR: components/avi_player/test_apps
823838

824839
build_components_bluetooth_ble_hci_test_apps:
825840
extends:
@@ -1242,11 +1257,18 @@ build_components_usb_usb_device_uac:
12421257
- .rules:build:components_usb_usb_device_uac
12431258
parallel:
12441259
matrix:
1245-
- IMAGE: espressif/idf:release-v4.4
12461260
- IMAGE: espressif/idf:release-v5.0
12471261
variables:
12481262
EXAMPLE_DIR: components/usb/usb_device_uac
12491263

1264+
build_components_usb_usb_device_uvc:
1265+
extends:
1266+
- .build_examples_template
1267+
- .rules:build:components_usb_usb_device_uvc
1268+
- .build_idf_active_release_version
1269+
variables:
1270+
EXAMPLE_DIR: components/usb/usb_device_uvc
1271+
12501272
build_components_led_lightbulb_driver_test_apps:
12511273
extends:
12521274
- .build_examples_template

.gitlab/ci/rules.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315

316316
- "components/audio/dac_audio/include/dac_audio.h"
317317
- "components/audio/pwm_audio/include/pwm_audio.h"
318+
- "components/avi_player/include/avi_player.h"
318319
- "components/bluetooth/ble_conn_mgr/include/esp_ble_conn_mgr.h"
319320
- "components/bluetooth/ble_conn_mgr/include/esp_ble_conn_mgr.h"
320321
- "components/bluetooth/ble_hci/include/ble_hci.h"
@@ -1428,7 +1429,7 @@
14281429
- <<: *if-dev-push
14291430
changes: *patterns-components_audio_dac_audio
14301431

1431-
.rules:build:component_audio_pwm_audio_test:
1432+
.rules:build:component_audio_pwm_audio_test_apps:
14321433
rules:
14331434
- <<: *if-protected
14341435
- <<: *if-label-build
@@ -1439,6 +1440,17 @@
14391440
- <<: *if-dev-push
14401441
changes: *patterns-components_audio_pwm_audio
14411442

1443+
.rules:build:components_avi_player_test_apps:
1444+
rules:
1445+
- <<: *if-protected
1446+
- <<: *if-label-build
1447+
- <<: *if-label-target_test
1448+
- <<: *if-trigger-job
1449+
- <<: *if-dev-push
1450+
changes: *patterns-build_system
1451+
- <<: *if-dev-push
1452+
changes: *patterns-components_avi_player
1453+
14421454
.rules:build:components_bluetooth_ble_hci_test_apps:
14431455
rules:
14441456
- <<: *if-protected
@@ -2101,6 +2113,17 @@
21012113
- <<: *if-dev-push
21022114
changes: *patterns-components_usb_usb_device_uac
21032115

2116+
.rules:build:components_usb_usb_device_uvc:
2117+
rules:
2118+
- <<: *if-protected
2119+
- <<: *if-label-build
2120+
- <<: *if-label-target_test
2121+
- <<: *if-trigger-job
2122+
- <<: *if-dev-push
2123+
changes: *patterns-build_system
2124+
- <<: *if-dev-push
2125+
changes: *patterns-components_usb_usb_device_uvc
2126+
21042127
.rules:build:components_sensors_humiture_aht20_test_apps:
21052128
rules:
21062129
- <<: *if-protected

components/.build-rules.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
components/audio/pwm_audio/test_apps:
2+
enable:
3+
- if: INCLUDE_DEFAULT == 1
4+
5+
components/avi_player/test_apps:
6+
enable:
7+
- if: IDF_TARGET in ["esp32s3", "esp32p4"]
8+
19
components/touch/touch_proximity_sensor/test_apps:
210
enable:
311
- if: IDF_TARGET in ["esp32s3"]
@@ -146,6 +154,10 @@ components/usb/usb_device_uac/test_apps:
146154
enable:
147155
- if: SOC_USB_OTG_SUPPORTED == 1 and IDF_VERSION_MAJOR >= 5
148156

157+
components/usb/usb_device_uvc/test_apps:
158+
enable:
159+
- if: SOC_USB_OTG_SUPPORTED == 1 and IDF_VERSION_MAJOR >= 5
160+
149161
components/sensors/power_monitor/ina236/test_apps:
150162
enable:
151163
- if: INCLUDE_DEFAULT == 1

components/audio/pwm_audio/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ChangeLog
22

3+
## v1.1.2 - 2024-08-15
4+
5+
### Enhancements:
6+
7+
* Add test-apps.
8+
39
## v1.1.1 - 2023-03-20
410

511
### Bug Fixes:

components/audio/pwm_audio/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.1.1"
1+
version: "1.1.2"
22
description: PWM audio output driver for ESP32 series Socs
33
url: https://github.com/espressif/esp-iot-solution/tree/master/components/audio/pwm_audio
44
repository: https://github.com/espressif/esp-iot-solution.git

components/audio/pwm_audio/pwm_audio.c

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,28 @@ esp_err_t pwm_audio_init(const pwm_audio_config_t *cfg)
475475
/**
476476
* Get the address of LEDC register to reduce the addressing time
477477
*/
478-
g_ledc_left_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].duty.val;
479-
g_ledc_left_conf0_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].conf0.val;
480-
g_ledc_left_conf1_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].conf1.val;
481-
g_ledc_right_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].duty.val;
482-
g_ledc_right_conf0_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].conf0.val;
483-
g_ledc_right_conf1_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].conf1.val;
478+
#if defined (CONFIG_IDF_TARGET_ESP32P4) || defined (CONFIG_IDF_TARGET_ESP32C5) || defined (CONFIG_IDF_TARGET_ESP32C61)
479+
g_ledc_left_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
480+
channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].duty_init.val;
481+
#else
482+
g_ledc_left_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
483+
channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].duty.val;
484+
#endif
485+
g_ledc_left_conf0_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
486+
channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].conf0.val;
487+
g_ledc_left_conf1_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
488+
channel[handle->ledc_channel[CHANNEL_LEFT_INDEX].channel].conf1.val;
489+
#if defined (CONFIG_IDF_TARGET_ESP32P4) || defined (CONFIG_IDF_TARGET_ESP32C5) || defined (CONFIG_IDF_TARGET_ESP32C61)
490+
g_ledc_right_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
491+
channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].duty_init.val;
492+
#else
493+
g_ledc_right_duty_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
494+
channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].duty.val;
495+
#endif
496+
g_ledc_right_conf0_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
497+
channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].conf0.val;
498+
g_ledc_right_conf1_val = &LEDC.channel_group[handle->ledc_timer.speed_mode].
499+
channel[handle->ledc_channel[CHANNEL_RIGHT_INDEX].channel].conf1.val;
484500

485501
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
486502
gptimer_config_t timer_config = {

components/audio/pwm_audio/test/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)