-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/esp_codec_dev_for_idfv53' into 'master'
esp_codec_dev: Support IDFv5.3 use esp_driver_i2c See merge request adf/esp-adf-internal!1305
- Loading branch information
Showing
19 changed files
with
277 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Changelog | ||
|
||
## v1.2.0 | ||
|
||
### Features | ||
|
||
- Add IDF v5.3 support | ||
Using new i2c driver `esp_driver_i2c`, add `bus_handle` configuration for `audio_codec_i2c_cfg_t`. | ||
User need create the `bus_handle` using API `i2c_new_master_bus` instead of `i2c_driver_install`. | ||
- Change test code to standalone application, user can directly build it under folder [codec_dev_test](test_apps/codec_dev_test) | ||
|
||
### Bug Fixes | ||
|
||
- Fix I2S work in PDM mode record or play mono channel audio wrongly | ||
|
||
|
||
## v1.1.0 | ||
|
||
### Features | ||
|
||
- Add driver for AW88298, see detail datasheet [AW88298](https://datasheetspdf.com/download_new.php?id=1513778) | ||
|
||
### Bug Fixes | ||
|
||
- Fix ES8311 playback fade in for long time | ||
|
||
|
||
## v1.0.3 | ||
|
||
### Bug Fixes | ||
|
||
- Fix I2S TX and RX work in share mode, need enable TX before RX | ||
|
||
|
||
## v1.0.2 | ||
|
||
### Features | ||
|
||
- Add I2S TDM support | ||
- Add API to `esp_codec_dev_set_in_channel_gain` to set input channel gain dependently | ||
|
||
|
||
## v1.0.1 | ||
|
||
### Bug Fixes | ||
|
||
- Fix ES8388 volume register set incorrectly | ||
|
||
|
||
## v1.0.0 | ||
|
||
- Initial version of `esp_codec_dev` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
components/esp_codec_dev/test_apps/codec_dev_test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") | ||
|
||
set(COMPONENTS main) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(codec_dev_test) |
6 changes: 3 additions & 3 deletions
6
components/esp_codec_dev/test/README.md → ...ec_dev/test_apps/codec_dev_test/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 | | ||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | | ||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 | ESP32-P4 | | ||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | | ||
|
||
# esp_codec_dev: Codec device test application | ||
|
||
There are two sets of tests in this application: | ||
1. Using customized codec to test all related API | ||
2. Test codec device on special board | ||
|
||
The default test board is ESP32S3_KORVO2_V3, if you are using other board, please change definition in [test_boards.h](main/test_board.h) and realization code is [test_board.c](test_board.c). | ||
The default test board is ESP32S3_KORVO2_V3, if you are using other board, please change definition in [test_boards.h](main/test_board.h) and realization code is [test_board.c](main/test_board.c). |
13 changes: 13 additions & 0 deletions
13
components/esp_codec_dev/test_apps/codec_dev_test/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
set(priv_requires | ||
unity | ||
driver | ||
esp_codec_dev | ||
) | ||
|
||
idf_component_register(SRC_DIRS . | ||
PRIV_INCLUDE_DIRS . | ||
PRIV_REQUIRES unity esp_codec_dev | ||
PRIV_REQUIRES ${priv_requires} | ||
WHOLE_ARCHIVE TRUE | ||
) |
6 changes: 6 additions & 0 deletions
6
components/esp_codec_dev/test_apps/codec_dev_test/main/idf_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: Codec Device Test | ||
|
||
dependencies: | ||
esp_codec_dev: | ||
version: ">=1.1" | ||
override_path: "../../../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
components/esp_codec_dev/test_apps/codec_dev_test/main/test_app_main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
#include "unity.h" | ||
#include "unity_test_utils.h" | ||
#include "esp_heap_caps.h" | ||
#include "sdkconfig.h" | ||
|
||
#define TEST_MEMORY_LEAK_THRESHOLD (400) | ||
|
||
void setUp(void) | ||
{ | ||
unity_utils_record_free_mem(); | ||
} | ||
|
||
void tearDown(void) | ||
{ | ||
unity_utils_evaluate_leaks_direct(TEST_MEMORY_LEAK_THRESHOLD); | ||
} | ||
|
||
void app_main(void) | ||
{ | ||
unity_run_menu(); | ||
} |
Oops, something went wrong.