[E 2015 Original Android Development] squid2:
I plan to upload something later today, and hopefully Indian dual-sim RIL will be working in the new build. If that works, then at least you will have text messaging and mobile data. Audio is still broken, but I'm working on it as my #1 priority for this ROM. I'm not sure if I'll be able to get it working today, but maybe I'll get lucky. I've narrowed down the problem to a certain part in my dmesg logs.

In the stock ROM with working audio, I see this:

<6>[ 6.457824,1] msm8x10-wcd-i2c-core msm8x10_wcd_codec: msm8x10_wcd_i2c_probe: irq initialization passed
<3>[ 6.477382,0] msm8x10-wcd-i2c-core msm8x10_wcd_codec: Failed to add ADC1 Volume: -16
<6>[ 6.509119,0] asoc: snd-soc-dummy-dai <-> MultiMedia1 mapping ok
<6>[ 6.509709,0] asoc: snd-soc-dummy-dai <-> MultiMedia2 mapping ok
<6>[ 6.510200,0] asoc: snd-soc-dummy-dai <-> CS-VOICE mapping ok
<6>[ 6.510760,0] asoc: snd-soc-dummy-dai <-> VoIP mapping ok
<6>[ 6.511241,0] asoc: snd-soc-dummy-dai <-> MultiMedia3 mapping ok
<6>[ 6.511765,0] asoc: snd-soc-dummy-dai <-> SEC_MI2S_RX_HOSTLESS mapping ok
<6>[ 6.512260,0] asoc: snd-soc-dummy-dai <-> INT_FM_HOSTLESS mapping ok
<6>[ 6.512762,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.241 mapping ok
<6>[ 6.513203,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.240 mapping ok
<6>[ 6.513799,0] compress asoc: snd-soc-dummy-dai <-> MultiMedia4 mapping ok
<6>[ 6.514355,0] asoc: snd-soc-dummy-dai <-> AUXPCM_HOSTLESS mapping ok
<6>[ 6.514815,0] asoc: snd-soc-dummy-dai <-> PRI_MI2S_TX_HOSTLESS mapping ok
<6>[ 6.515390,0] asoc: snd-soc-dummy-dai <-> MultiMedia5 mapping ok
<6>[ 6.515884,0] asoc: snd-soc-dummy-dai <-> Voice2 mapping ok
<6>[ 6.516444,0] asoc: snd-soc-dummy-dai <-> QCHAT mapping ok
<6>[ 6.516959,0] asoc: snd-soc-dummy-dai <-> MultiMedia9 mapping ok
<6>[ 6.517611,0] asoc: msm8x10_wcd_i2s_rx1 <-> msm-dai-q6-mi2s.1 mapping ok
<6>[ 6.518210,0] asoc: msm8x10_wcd_i2s_tx1 <-> msm-dai-q6-mi2s.0 mapping ok
<6>[ 6.518677,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.12288 mapping ok
<6>[ 6.519088,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.12289 mapping ok
<6>[ 6.519561,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.12292 mapping ok
<6>[ 6.520026,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.12293 mapping ok
<6>[ 6.520432,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.224 mapping ok
<6>[ 6.520902,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.225 mapping ok
<6>[ 6.521319,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.32772 mapping ok
<6>[ 6.521785,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.32771 mapping ok
<6>[ 6.522193,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.32773 mapping ok
<6>[ 6.522659,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.32770 mapping ok
<6>[ 6.524533,0] input: msm8x10-snd-card Headset Jack as /devices/sound.46/sound/card0/input4

While in my CM with broken audio, I see this:

<6>[ 15.110862,0] msm8x10-wcd-i2c-core msm8x10_wcd_codec: msm8x10_wcd_i2c_probe: irq initialization passed
<3>[ 15.129928,0] msm8x10-wcd-i2c-core msm8x10_wcd_codec: Failed to add ADC1 Volume: -16
<6>[ 15.161438,0] asoc: snd-soc-dummy-dai <-> MultiMedia1 mapping ok
<6>[ 15.161964,0] asoc: snd-soc-dummy-dai <-> MultiMedia2 mapping ok
<6>[ 15.162525,0] asoc: snd-soc-dummy-dai <-> CS-VOICE mapping ok
<6>[ 15.163053,0] asoc: snd-soc-dummy-dai <-> VoIP mapping ok
<6>[ 15.163599,0] asoc: snd-soc-dummy-dai <-> MultiMedia3 mapping ok
<6>[ 15.164059,0] asoc: snd-soc-dummy-dai <-> SEC_MI2S_RX_HOSTLESS mapping ok
<6>[ 15.164624,0] asoc: snd-soc-dummy-dai <-> INT_FM_HOSTLESS mapping ok
<6>[ 15.165069,0] asoc: msm-stub-rx <-> msm-dai-q6-dev.241 mapping ok
<6>[ 15.165568,0] asoc: msm-stub-tx <-> msm-dai-q6-dev.240 mapping ok
<6>[ 15.166082,0] compress asoc: snd-soc-dummy-dai <-> MultiMedia4 mapping ok
<6>[ 15.166636,0] asoc: snd-soc-dummy-dai <-> AUXPCM_HOSTLESS mapping ok
<6>[ 15.167158,0] asoc: snd-soc-dummy-dai <-> PRI_MI2S_TX_HOSTLESS mapping ok
<6>[ 15.167667,0] asoc: snd-soc-dummy-dai <-> MultiMedia5 mapping ok
<6>[ 15.168222,0] asoc: snd-soc-dummy-dai <-> Voice2 mapping ok
<6>[ 15.168716,0] asoc: snd-soc-dummy-dai <-> QCHAT mapping ok
<6>[ 15.169293,0] asoc: snd-soc-dummy-dai <-> MultiMedia9 mapping ok
<3>[ 15.169773,0] msm8x10-asoc-wcd sound.46: asoc: failed to init SEC_MI2S_RX: -22
<3>[ 15.169910,0] asoc: failed to instantiate card msm8x10-snd-card: -22
<3>[ 15.174388,0] msm8x10-asoc-wcd sound.46: snd_soc_register_card failed (-22)
<4>[ 15.174590,0] msm8x10-asoc-wcd: probe of sound.46 failed with error -22

I've been debugging this issue in a rather tedious manner (adding debugging print messages to the kernel, recompiling on my build server, scp-ing to my local machine, copying to phone, flashing new kernel, reboot, examine dmesg, repeat). There's probably some configuration file that is missing or needs an entry changed somewhere. Error -22 is EINVAL, indicating that something was called with invalid inputs (such as NULL).

If anyone has every experienced this issue with the audio drivers, please share. Also, If anyone here has experience with a more efficient kernel debug workflow that doesn't require JTAG, I would love to hear it. My current approach is quite frustrating.