cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f769i-DISCO audio line in

Beaulier.Francois
Associate II
Posted on November 20, 2016 at 14:50

Hi,

I'am trying to get the audio from WM8994 line input.

The BSP driver seems rather incomplete, it works with the 4 mems mics but not with the line input from the codec.

Is there somewhere any source code example for that ? anyone facing the same problem ?

I can share some code that tries to do playback from line in to headphone out if someone interested.

Regards

Francois 

#stm32f769i-disco-audio-wm8994
16 REPLIES 16
slimen
Senior
Posted on November 21, 2016 at 09:47

Hello,

You can refer to the example under

http://http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef7.html

in the path: 

\STM32Cube_FW_F7_V1.5.1\Projects\STM32F769I-Discovery\Applications\Audio\Audio_playback_and_record

You can check how this example was implemented and get inspiration to develop your application, it may helps you. You find more details on how to use the example in the readme.txt file.

Here is the STM32746G-Discovery user manual

http://www.st.com/content/ccc/resource/technical/document/user_manual/f0/14/c1/b9/95/6d/40/4d/DM00190424.pdf/files/DM00190424.pdf/jcr:content/translations/en.DM00190424.pdf

to have more information about Audio hardware features on the board.

You can share your application in our forum, it may be very helpful for Community users. 

Regards

Beaulier.Francois
Associate II
Posted on November 21, 2016 at 13:49

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6pe&d=%2Fa%2F0X0000000bwP%2F7zGzXnfop2P4Pho4q.svQPSb9EMv8_WPtJaiUVeIK.g&asPdf=false
Posted on December 06, 2016 at 17:28

Out of curiosity, how noisy is the audio in your line in to headphone out passthrough?  That configuration is unusable on the STM32F746 discovery board due to noise, so I've been considering moving to this dev kit for a proof of concept (even though it has more flash and peripherals than I need).  Thanks.

Posted on December 08, 2016 at 15:34

Unfortunatly i have the same problem, it's very noisy...

Posted on January 09, 2017 at 01:18

Did you change the ISR handlers as well (looks like you might be using DMA2_Stream4_IRQHandler)?  I've been attempting to get the passthrough going with your changes but haven't had much luck yet.   Any chance you could share those changes as well if so?  Thanks.

Posted on January 09, 2017 at 02:47

Never mind. I figured it out and I was missing

void DMA2_Stream4_IRQHandler(void)
{
 HAL_DMA_IRQHandler(haudio_in_sai.hdmarx);
}
void DMA2_Stream1_IRQHandler(void)
{
 HAL_DMA_IRQHandler(haudio_out_sai.hdmatx);
}�?�?�?�?�?�?�?�?�?

Thanks.

Posted on March 06, 2017 at 21:19

Hi Guys, will really appreciate if you can post whole working zipped project , struggling since months to get analog MIC work. Really appreciate Thanks

Posted on March 24, 2017 at 07:05

Hi,

Thanks for the code. It works perfectly fine for Line in input and headphone output. However, I noticed that it is not working for speaker output. I tried changing the output device to OUTPUT_DEVICE_SPEAKER as well as gave CODEC_AUDIOFRAME_SLOT_13. What am I missing here?

Posted on April 05, 2017 at 00:55

Hello,

i would be very grateful for a copy of this project, i am struggling to get audio to work on the STM32F769I-Disco....

many thanks in advance!