Closed eyuan-creare closed 2 years ago
Same symptom with the EarpieceManualMixing_wSD. Sound on the Tympan Headphone jack but not the shield.
Also, the trebleboost example seems to be missing this. Though perhaps it is now called behind the scenes.
myTympan.enableDigitalMicInputs(true);
earpieceShield.enableDigitalMicInputs(true);
Tested on a RevE using Tympan_Library release_candidate1.
I looked at the question of whether enableDigitalMicInputs
was being called. When using the EarpieceMixer_F32 class, you use the class's methods to choose between the different inputs. It does indeed call enableDigitalMicInputs
. Here's the trail:
1) In TrebleBoost_wComp_wEarpieces_wApp in setup():
earpieceMixer.setInputAnalogVsPDM(EarpieceMixerState::INPUT_PDM);
2) In EarpieceMixer_F32, we find setInputAnalogVsPDM:myTympan->enableDigitalMicInputs(true)
and earpieceShield->enableDigitalMicInputs(true);
So, I think that this is not our problem. Bummer. That would have been an easy fix. I'm still on this...
The issue was that it was not using the quad versions of the I2S inptu and output...ie, it needed AudioInputI2SQuad_F32 and AudioOutputI2SQuad_F32. I think that you maybe flagged this somewhere else.
I also made small memory changes to the audio flow in the EarpieceMixer_F32 class, but I don't think that it had an effect.
Stupid mistake on my part. How did this not get picked up in testing? I don't know...
I pushed the changes for EarpieceMixer_F32 and for TrebleBoost_wComp_wEarpieces_wApp to the Tympan_Library, the release_candidate1 branch: cc5cb17
@eyuan-creare ,
You said that EarpieceManualMixing_wSD wasn't working for you?
I just tried EarpieceManualMixing_wSD, with an earpiece plugged in. I successfully heard audio from both the Tympan headphone jack and from the Shield's headphone jack. It worked.
Since this sketch doesn't use the EarpieceMixer, I don't see how my changes could have had any influence. Perhaps the other code updates that are in the release_candidate1 branch solved the problem?
[I also confirmed that AudioPassThru_wEarpieces still works. Both headphone jacks.]
Closing this out as I tried this with the updated library and I can now hear sound from the earpiece mics to the AIC shield headphone output.
In TrebleBoost_wComp_wEarpieces_wApp, I can hear sound from the earpiece mic to headphones on the Tympan. However, when I move my headphones to the Earpiece shield headphone jack, I can't hear sound.
I noticed that the quad version of the audio input and output was not used. I tried changing it to the quad version, but no luck.
existing patchcord
I also tried reverting the patchcord to a simple passthru. Also no luck.
However, the AudioPassthru_wEarpieces does work (earpiece mic sends sound to earpiece shield headphone jack and RIC).