esp32 adf hfp examples bug
-
- Posts: 11
- Joined: Mon Dec 16, 2024 5:26 am
esp32 adf hfp examples bug
Hello, I am trying to make hands free with esp32 lyrat mini development board, but the pipelien_hfp and pipeline_a2dp_hfp examples in the sample codes do not work correctly. I selected lyrat mini via menuconfig. It connects to bluetooth, but its microphone does not work when making a phone call. The internal microphone on it does not detect the sound. There is no problem on the speaker side, the other party's voice comes to me.
Re: esp32 adf hfp examples bug
Hi! I think there is a problem in the example that I have observed without testing. While setting the control mode for the ES8388 codec (https://github.com/espressif/esp-adf/bl ... ple.c#L390), it is not set for ENCODE_DECODE mode, it is set only for DECODE, which power ups in the ES8388 driver only the DAC/line-out. I think you should change this to ENCODE_DECODE.
Let me know if this works.![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Let me know if this works.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
-
- Posts: 11
- Joined: Mon Dec 16, 2024 5:26 am
Re: esp32 adf hfp examples bug
No, it didn't work. I tried ENCODE, DECODE, BOTH and none of them worked. This card uses two codecs, one of them is adc codec es7243 and the other is dac codec es8311. So I think I should select BOTH options but it didn't work.
Re: esp32 adf hfp examples bug
I do not know for what reason, but on lyraT mini in esp-adf microphone is set to the left channel, you can try to switch to the right channel should workhamzatamer76 wrote: ↑Mon Jan 13, 2025 12:06 pmNo, it didn't work. I tried ENCODE, DECODE, BOTH and none of them worked. This card uses two codecs, one of them is adc codec es7243 and the other is dac codec es8311. So I think I should select BOTH options but it didn't work.
Code: Select all
i2s_cfg.std_cfg.slot_cfg.slot_mode = EXAMPLE_AUDIO_CHANNELS; // mono (1)
i2s_cfg.std_cfg.slot_cfg.slot_mask = I2S_STD_SLOT_RIGHT;// redefine to right ch for lyraT mini
-
- Posts: 11
- Joined: Mon Dec 16, 2024 5:26 am
Re: esp32 adf hfp examples bug
Thank you so much, It worked thanks to you.
Who is online
Users browsing this forum: No registered users and 16 guests