I want an amplifier to receive audio from a FM/DAB receiver and from an NRF52832 that - in turn - has received audio over BLE. The amplifier should either receive the radio audio or the BLE audio, no mixing is needed.
My initial idea was to connect the FM/DAB receiver and the NRF52832 to the amplifier and mute the FM/DAB receiver when BLE audio could be transmitted:
FM/DAB --> I2S --> | Amplifier NRF52832 --> I2S
However, I've investigated the NRF52832 I2S capabilities some more and it seems a relay option would be more flexible (the NRF52832 can receive and transmit I2S):
FM/DAB --> I2S --> NRF52832 --> I2S --> Amplifier
This would make switching very easy: either transmit the received audio (relay) or ignore received data and transmit BLE audio.
Is this indeed the best option? And what would the pin mapping be?
The FM/DAB receiver can operate in I2S slave mode only (amplifier in both modes), so making the NRF52832 master would be most logical:
Where:
P26 = SDOUT
P27 = SDIN
P28 = LRCK
P29 = SCK
In other words, could I accomplish the described relay function with the NRF52832?