Thank you for the explanation.
giuliomoro If you don't get any errors when running aplay, it means that the codec is alive and it works over I2c. If you run aplay that lasts 5 seconds and the program exits after 5 seconds, that's a good indictation that the clocks are also running as expected.
unfortunately, the aplay sample_file1.wav
seems to last forever. It doesn't exit, no matter the file size. Should I assume my clocks are bad?
BTW, I've been playing with the amixer, as you suggested. Not sure if what I was doing is right, but I did the following: in one shell window I let aplay to run the file. In another window I tried to change the settings using amixer sset <ID> <xy>
Now, I didnt find the settings that give me any audio, but I noticed that when changing the audio levels on HP DAC, I get some poping noise on my speaker ( for example amixer sset 'HP DAC' 100
). I have the speakers tied to the HPLOUT and HPROUT pins of the codec, so maybe it means something?
giuliomoro what are the differences ? Do you have a link to both files?
Well both of them are on Github, and the main difference, so far I see, is that PB AUDI uses I2C2 and TLV320 I2C1, which is what the OP corrected in the other thread.