Darmur
June 29, 2020, 2:40pm
1
During the weekend I managed to compile the driver for the TFA9879 (part of the bassfly-uhat ).
Selecting the dt-overlay I can see the DAC in alsa and I can play sound with speaker-test
I followed those instructions to add compatibility to Volumio
{"id":"rpi-tfa9879-mono","name":"TFA9879 Mono","overlay":"rpi-tfa9879-mono","alsanum":"1","mixer":"PCM","modules":"","script":"","needsreboot":"yes"},
I can select the added DAC in the playback options, the config.txt file is modified correctly after the selection
Volume control with HW Mixer woks fine (I can see the updated value from alsamixer if I change volume from Volumio)
Unfortunately I can’t hear any audio coming out from the speaker if I start the playback, I also don’t get any error
What can I do for checking what’s happening? It looks like the output is not selected correctly
Have you tried to resample?
1 Like
Darmur
June 29, 2020, 3:09pm
3
Not yet, I will. Thanks for the hint
Darmur
June 29, 2020, 3:17pm
4
You were right, activating the resampler made it working
Next step is to make it stereo, I need to learn how to modify the .dts
Hi!
I would suggest at this point that in the alsa driver you state that only 24 bits is supported in this DAC, this way it would not need resampling enabled (alsa will take care of it)
Darmur
June 30, 2020, 10:08am
6
Yes, the IC is capable of handling 24bits, I need to have a look to the driver source code and patch it for handling 24bits
If you point me at the sources of the driver that you’re starting with I can give you an hint
Darmur
June 30, 2020, 3:45pm
8
Sure, here the driver I’m using
This is the datasheet, of the amplifier, it supports I2S format with up to 24bit data
noiro
June 30, 2020, 5:34pm
9
I see progress Dario! Well done!
Darmur
June 30, 2020, 6:31pm
10
Yes, very happy about the progress!
I’m becoming more and more familiar with the process, soon I’ll try to build driver for TAS5825M too!