Part Number: TLV320AIC23
Tool/software:
Note: Oscilloscope output screenshots are attached.
System and Configuration
Operating System: Ubuntu
Codec hardware:not present
Overlay used: mbed-dac.dtbo
Line added to /boot/firmware/config.txt: dtoverlay=mbed-dac
With this configuration, the device appears in the aplay -l output.
Test Details
During the test, the following audio file was played:
YouTube: https://youtu.be/YwNs1Z0qRY0 (Stereo Test - Left/Right Audio Test for Headphones/Speakers)
Oscilloscope probes and signals:
Yellow signal: DOUT (Data Out) GPIO 21
Green signal: Clock GPIO 18
Purple signal: Left/Right (LRCK) GPIO 19
Observations
When the audio is playing, the output signal observed on the oscilloscope behaves as follows:
When there is sound, the signal is HIGH; when there is no sound, the signal is LOW.
In other words, the signal goes HIGH when sound is present and LOW when silent.
In some examples on the Internet, the signal is shown as a square wave, but in this case the observed behavior is different — it simply toggles HIGH/LOW based on the presence of sound.
Note
We used the CM5 board and tested with separate device tree files for both I2S0 and I2S1, but the result was the same. On the standard Raspberry Pi 5 board, however, we were able to obtain correct output without issues. Since the codec hardware was not available, only the overlay and software-side behavior were tested.