Code: Select all
aplay -Dplug:dmix fileName.8kHz.wav
Firstly setup your linux kernel source code and compile it : http://forum.audioinjector.net/viewtopi ... =10&t=3099
Now you should be ready to hack !
You need to edit the file :
Code: Select all
sound/soc/bcm/audioinjector-pi-soundcard.c
Code: Select all
return snd_soc_dai_set_bclk_ratio(cpu_dai, 1);
Code: Select all
return snd_soc_dai_set_tdm_slot(cpu_dai, 0x1, 0x1, 2, 512);
Code: Select all
sound/soc/bcm/bcm2835-i2s.c
Code: Select all
if (hweight_long((unsigned long) rx_mask) != 2
|| hweight_long((unsigned long) tx_mask) != 2)
return -EINVAL;
Code: Select all
// if (hweight_long((unsigned long) rx_mask) != 2
// || hweight_long((unsigned long) tx_mask) != 2)
// return -EINVAL;
Enjoy
Matt