tesla-android / issue-tracker

Place for reporting issues and discussion with the community
18 stars 1 forks source link

Add support for external dac/audiocard #241

Open avishai0258 opened 1 year ago

avishai0258 commented 1 year ago

Please add support to external dac that use gpio pins (hifiberry) Link to the product US $62.78 14% Off | Nvarcher Raspberry Pi ES9038Q2m DAC audio decoder board HIFI coaxial fiber I2S analog 3B+4B 768K 32Bit DSD512 https://a.aliexpress.com/_EH6LX4J

mikegapinski commented 1 year ago

I've added the audio driver from raspberry-vanilla and enabled the hifiberry kernel module. Did you need to make any other changes in the system to make it work on builds from Konsta? Switching the audio source in the Raspberry Pi settings etc. This component is not open and I did not have any time to see what it does.

I can send you a test build, It think your DAC should work if you play with config.txt on the boot partition: https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/

mikegapinski commented 1 year ago

@avishai0258

avishai0258 commented 1 year ago

Thank you very much for your work can you send me test build please to test? Thank you very much for your hard work

Skitals commented 1 year ago

I have a similar request for external dac support, but I am trying to use a simple usb dac that is supported in android. I am getting audio output, but microphone input does not work properly. It is not consistent, but I can record audio successfully in basic voice recording apps, but it does not work places like the Google app for Google Assistant.

The same dac I can plug into my Android 13 phone and it works perfectly for Google Assistant, etc.

I have not found a way to get Android Auto working completely in Tesla Android. Bluetooth Channel does not work in AutoKit for Android Auto, and Headunit Reloaded requires a working microphone for Google Assistant / Voice commands in Android Auto. Ideally you could plug in a USB microphone and it should just work, but there is something about the audio/input implementation in Tesla Android that is preventing the usb dac from working properly.