external sound card TLV320AIC3101 in Raspberry Pi 3 - linux

I'm working on a project to add an external sound card to Raspberry Pi 3.
The sound card we use has a sound codec with IC TLV320AIC3101. This IC has an I2C control interface and an I2S interface. I want to record and play audio using this IC in Raspberry Pi 3. I think I should work with Alsa.
My project is very similar to the project of adding the wm8960 module to Raspberry Pi.
I need help. please guide me

Related

PCM data handling with Raspberry 4 and audio codec (TLV320AIC3104)

I´m working on a project with a Raspberry 4 compute module and IO board.
This is a schema of the project:
https://drive.google.com/file/d/1mg5IhAKTUE2Athzafis1KSsEJS1T7DXG/view?usp=sharing
I have to handle audio and voice to make calls with the raspberry. My setup consists of an audio box, which has a headset connected to it, pass the signal through a TLV320AIC3104 audio codec connected via PCM to the raspberry, and then make calls through a USB modem, which has an integrated audio card. I need two way communication.
So far, I can make the calls with the raspberry and have audio and voice with the caller, using a USB headset.
I am using the TLV320AIC3104EVM-K evaluation board (https://www.ti.com/lit/ug/slau218a/slau218a.pdf?ts=1664262721095&ref_url=https%253A%252F%252Fwww.ti.com%252Ftool%252FTLV320AIC3104EVM-K) to learn how to connect the audio codec to the raspberry, but so far I have been unable to get anything. When the TLV320AIC3104EVM-K is connected to the PC via USB I can use the headset passing through the audio box without problems.
The thing is I can´t figure out how to connect the audio codec to the raspberry to get the headset audio, and then finish the setup passing the information to the modem and back.
I understand that the connection between the TLV320AIC3104EVM-K and the Raspberry is actually an I2S connection. I have connected the GPIO PCM ports (GPIO 18, 19, 20, 21). I have configured the raspberry in the file /etc/asound.conf to have the card0 as default, being this card the one from the modem.
/etc/asound.conf
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
And have the GPIO ports configured to ALT0.
What am I missing here?

How to handle voice from Bluetooth?

I am working on a Raspberry pi based embedded project which turn a raspberry pi to a bluetooth based voice processing system. I have a BLE mic and BLE receiver connected to the RPI, I have BlueZ integrated to my stack. I am able to connect both together. But the problem I am facing now is in handling Audio from the mic. I don't have ALSA or pulse audio in my system. Is there a way to get PCM data from the bluez stack directly? it would be helpful if there is a architecture for handling voice with BLE.

Reading then transmitting a signal over BLE for Raspberry Pi 3

I'm trying to read a signal from a magnetic sensor then want to send it over BLE to a Raspberry Pi 3 module.
What device(s) can I use for the BLE signal reading / transmitting and how do I pair it with a Raspberry Pi 3? Did anyone else try doing this?
There are a lots of modules that you can use for transmitting over bluetooth, SimModules and Hc Modules are two of them. Sim modules also support GPRS and 2G networks. both of them works with At Commands and it can be controlled by a simple MicroController like Arduino series.

How to setup a raspberry pi 3 with two bluetooth connections at the same time?

Hello my name is Edris,
I am looking to make a connection between a raspberry and 2 arduino's with bluetooth. So the raspberry pi 3 would be the master and the arduino's slaves.
But then I thought mayby is it easier to have two connections at the same time.
So one with the build in bluetooth chip
and the other
with a usb bluetooth stick.
The bluetooth chips are all BLUE LoW Energy. Also the build in chip in the raspberry pi 3
Looking forward to hear from someone.
Edris
here are a couple of ways to connect
my preference is bluetoothctl. you'll be able to control each dongle by it's ID, given its ID appears when you do scan on and a list of IDs prints

Stream audio from Raspberry Pi input to Airplay devices

Does anyone know if there is a way to stream audio from Raspberry Pi input to an Airplay enabled device such as an Apple TV ?
To sum up I am seeking for an app like http://www.hersson.net/raopx , but that I could run on the Raspberry Pi.
Thanks.

Resources