leighleighleigh / saab-93NG-bluetooth-aux

A module to augment the Aux-In functionality of SAAB 93NG's (2002/3+), to add Bluetooth media playback and steering wheel media control support. If your SAAB has an optic-fiber MOST bus, this will work for you.
GNU General Public License v3.0
10 stars 6 forks source link

No sound on PCM5102 DAC #8

Open Mckansey opened 1 year ago

Mckansey commented 1 year ago

Hi, at first - big thank you for your work.

Currently I'm trying to set up everything and I'm struggling with getting any sound with PCM5102 DAC. At the moment i can't buy UDA1334A because if it's limited avalibility. In main file there is a setup for UDA1334A, so I'm guessing that PCM5102 requires different settings to work. By any chance could i get some help with setting up this DAC?

Mckansey commented 1 year ago

I've found a solution - PCM5102 doesn't requie for work any additional configuraion. Besides that in schematics there is a mistake with pinout from ESP32 to PCM5102 - i decided to change pins in code and hope that info gonna save someone few hours :)

// a2dp_sink.set_swap_lr_channels(true);

// Changing pins I2C i2s_pin_config_t my_pin_config = { .bck_io_num = 26, .ws_io_num = 33, .data_out_num = 25, .data_in_num = I2S_PIN_NO_CHANGE }; a2dp_sink.set_pin_config(my_pin_config);

// Start the A2DP sink a2dp_sink.start("Saab 9-3");

// Metadata a2dp_sink.set_avrc_metadata_callback(avrc_metadata_callback);