Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 63 forks source link

Why does this project not have a common history with espressif/esp-adf ? #10

Open msalat opened 3 years ago

msalat commented 3 years ago

I've copied a few files from ESP32-A1S-AudioKit/components and copy&pasted a few paragraphs components.mk, CMakefile.txt etc. to esp-adf and idf.py build works & runs,

but why can't I git pull https://github.com/espressif/esp-adf within ESP32-A1S-AudioKit? License incompatibility?

xuhongv commented 3 years ago

esp-adf and ESP32-A1S-AudioKit is not the same project.

msalat commented 3 years ago

Yes, it is not the same project and this is not necesarry to be the same project, but you could have done fork of esp-adf, and then we could do

git remote add upstream https://github.com/espressif/esp-adf
git fetch upstream # fetch changes from esp-adf
git checkout master
git merge upstream/master
# etc ff
Patsjemoe commented 3 years ago

hi, you say ...fork of esp-adf... I am not familiar with this term. where can I find more information on this ? thanks and regards ludo

Op wo 30 sep. 2020 21:15 schreef msalat notifications@github.com:

Yes, it is not the same project and this is not necesarry, but you could have done fork of esp-adf, and then we could do

git remote add upstream https://github.com/espressif/esp-adf git fetch upstream # fetch changes from esp-adf git checkout master git merge upstream/master

etc ff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Ai-Thinker-Open/ESP32-A1S-AudioKit/issues/10#issuecomment-701590394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMBAJSAFTQHQHLB7Q27L53SIN7WXANCNFSM4R2NXXBQ .

msalat commented 3 years ago

e. g. here https://github.com/espressif/esp-adf (as on every github project page, this page you are reading now, too) is a button Fork (on the same line as the project name) where you could create a derivative of an existing github project with common history, so changes on the original project (esp-adf) could be pulled into the forked project.

othiman commented 3 years ago

Hi,

I did this the following way which resulted in the repo https://github.com/othiman/esp-adf.git:

After forking (click fork in the top right corner of https://github.com/espressif/esp-adf) I did the following to achieve this:

git clone --recursive https://github.com/Ai-Thinker-Open/ESP32-A1S-AudioKit.git
git clone --recursive https://github.com/othiman/esp-adf.git
cd ESP32-A1S-AudioKit
git checkout 00e857d63baba188b68e4b61bf5fc1f86ff18fd7
diff -Naru --exclude=.git* --exclude=korvo_du1906 --exclude=lib*.a --exclude=audio_type_def.h --exclude=wav_encoder.c ../esp-adf/ . > ../patch-esp-adf.patch
cd ../esp-adf
git pull origin master
patch -s -p0 < ../patch-esp-adf.patch
git add README-zh.md components/audio_board/ai_thinker_audio_kit_v2_2 components/audio_hal/driver/ac101
git add *
git commit -m "add ai thinker board v2.2 with ac101 audio HAL"
git push origin master

After that integrating changes of the upstream repo is as easy as:

git remote add upstream https://github.com/espressif/esp-adf.git
git fetch upstream master
git checkout master
git merge upstream/master

as msalat mentioned before. The first command of this is only necessary once. Maybe you can also try to get your changes upstream (via a pull request), i.e. your board can be used with the original esp-adf.

Best regards, othiman

msalat commented 3 years ago

Fine! Would it be possible to rename your othiman/esp-adf to something more clear, perhaps othiman/esp-adf-ac101? There are so many forks of esp-adf...

Am 10.10.20 um 13:21 schrieb Thomas Schlien:

Hi,

I did this the following way which resulted in the repo https://github.com/othiman/esp-adf.git:

After forking (click fork in the top right corner of https://github.com/espressif/esp-adf) I did the following to achieve this:

|git clone --recursive https://github.com/Ai-Thinker-Open/ESP32-A1S-AudioKit.git git clone --recursive https://github.com/othiman/esp-adf.git cd ESP32-A1S-AudioKit git checkout 00e857d63baba188b68e4b61bf5fc1f86ff18fd7 diff -Naru --exclude=.git --exclude=korvo_du1906 --exclude=lib.a --exclude=audio_type_def.h --exclude=wav_encoder.c ../esp-adf/ . > ../patch-esp-adf.patch cd ../esp-adf git pull origin master patch -s -p0 < ../patch-esp-adf.patch git add README-zh.md components/audio_board/ai_thinker_audio_kit_v2_2 components/audio_hal/driver/ac101 git add * git commit -m "add ai thinker board v2.2 with ac101 audio HAL" git push origin master |

After that integrating changes of the upstream repo is as easy as:

|git remote add upstream https://github.com/espressif/esp-adf.git git fetch upstream master git checkout master git merge upstream/master |

as msalat mentioned before. The first command of this is only necessary once. Maybe you can also try to get your changes upstream (via a pull request), i.e. your board can be used with the original esp-adf.

Best regards, othiman

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ai-Thinker-Open/ESP32-A1S-AudioKit/issues/10#issuecomment-706533168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6GH7KOTFRNPTV6C6ZMCELSKA7VPANCNFSM4R2NXXBQ.

othiman commented 3 years ago

Sure. It is now reachable at https://github.com/othiman/esp-adf-ac101. Maybe it would be a good idea to try to get this branch merged into the main esp-adf project.

othiman commented 3 years ago

It did some more changes to my branch. I adapted the board definition to the lyrat_mini_board and it now works fine for the sd card example in examples/player/element_sdcard_mp3. Sadly, e.g., the example examples/player/pipeline_http_mp3 is also working, but stuttering all the time. Will try to open a different issue ticket for this.

msalat commented 3 years ago

I've tried examples/advanced_examples/dlna, stuttiering a lot while playing youtube from browser; a lot better from vlc (os: linux). Also tried pipeline_living_stream, worked great for me after search/replace aac -> mp3.

msalat commented 3 years ago

PS: pipeline_a2dp_sink_and_hfp is running currently on my esp32-a1s-board, but I think the esp32 is a bit oversophisticated for that purpose.

PS2: idf.py monitor showed some error message to pull a patch. Funny that "make" on my linux pc did not mention this.

herostrat commented 3 years ago

I opened a PR with @othiman branch at esp-adf. https://github.com/espressif/esp-adf/pull/554

Is this ok?

othiman commented 3 years ago

I am fine with that. I also already signed the CLA stuff in the PR. Lets see if ESP will integrate it.