<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 22, 2017 at 1:38 PM, jo <span dir="ltr"><<a href="mailto:crazyiop@gmail.com" target="_blank">crazyiop@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I am currently trying to get a simple audio I2S DAC board (<a href="https://polyvection.com/shop/plaindac/" rel="noreferrer" target="_blank">https://polyvection.com/shop/<wbr>plaindac/</a>) to work on a beaglebone green wireless. The components is a PCM5121, a popular one that has an existing driver.<br>
<br>
so far,<br>
- I have a custom compiled kernel with the apropriate driver compiled<br>
$ grep PCM512 .config<br>
CONFIG_SND_SOC_PCM512x=m<br>
CONFIG_SND_SOC_PCM512x_I2C=m<br>
<br>
<br>
- I can boot with a custom device tree including my definition of the board as an "asoc-simple-card" and it get recognise without error on boot.<br>
<br>
root@beaglebone:~# dmesg |grep sound<br>
[ 28.730678] asoc-simple-card sound: pcm512x-hifi <-> 48038000.mcasp mapping ok<br>
root@beaglebone:~# lsmod |grep pcm512<br>
snd_soc_pcm512x_i2c 2782 1<br>
snd_soc_pcm512x 24341 1 snd_soc_pcm512x_i2c<br>
snd_soc_core 192029 5 snd_soc_pcm512x,snd_soc_davinc<wbr>i_mcasp,snd_soc_edma,snd_soc_<wbr>omap,snd_soc_simple_card<br>
snd_pcm 103172 6 snd_soc_pcm512x,snd_soc_davinc<wbr>i_mcasp,snd_soc_core,snd_soc_<wbr>omap,snd_pcm_dmaengine<br>
<br>
<br>
- I can open the device with alsamixer, and can confirm the sound is on 100%<br>
<br>
Howewer, I still can't get any sound of the device.<br>
<br>
Does someone has experience in regards to asoc audio device and cant give me some thought on easy to miss things ?<br>
I am still trying to figure out if I have omitted something on the device tree, or if I need to configure something more on the OS (alsa, pulseaudio ?)...<br>
<br>
I have attached my device tree, if someone feel like giving a look at it. (my addition from the original one comes after line 73).<br>
Also some output that may give you more info that they are giving to me:<br>
<br>
root@beaglebone:~# aplay -v Pom\ Pom.wav<br>
Playing WAVE 'Pom Pom.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo<br>
ALSA <-> PulseAudio PCM I/O Plugin<br>
Its setup is:<br>
stream : PLAYBACK<br>
access : RW_INTERLEAVED<br>
format : S32_LE<br>
subformat : STD<br>
channels : 2<br>
rate : 44100<br>
exact rate : 44100 (44100/1)<br>
msbits : 32<br>
buffer_size : 22050<br>
period_size : 5512<br>
period_time : 125000<br>
tstamp_mode : NONE<br>
period_step : 1<br>
avail_min : 5512<br>
period_event : 0<br>
start_threshold : 22050<br>
stop_threshold : 22050<br>
silence_threshold: 0<br>
silence_size : 0<br>
boundary : <a href="tel:1445068800" value="+911445068800" target="_blank">1445068800</a><br>
<br>
#nothing play and the above stay displayed -as is- until I ctrl-c<br></blockquote><div><br></div><div>Possible that you have not turned on the mixer controls i.e.<br></div><div>enabling the volume?<br><br></div><div>Check sw_ptr and hw_ptr and see if those are increasing or not?<br><br></div><div>Probe the I2S lines and see if there is any data?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
root@beaglebone:~# aplay -l<br>
**** List of PLAYBACK Hardware Devices ****<br>
card 0: plaindac [plaindac], device 0: davinci-mcasp.0-pcm512x-hifi pcm512x-hifi-0 []<br>
Subdevices: 0/1<br>
Subdevice #0: subdevice #0<br>
<br>
<br>
root@beaglebone:~# cat /proc/asound/card0/pcm0p/info<br>
card: 0<br>
device: 0<br>
subdevice: 0<br>
stream: PLAYBACK<br>
id: davinci-mcasp.0-pcm512x-hifi pcm512x-hifi-0on<br>
name:<br>
subname: subdevice #0<br>
class: 0<br>
subclass: 0<br>
subdevices_count: 1<br>
subdevices_avail: 0<br>
<br>
<br>
Regards,<br>
Jonathan.<br>
<br>______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
<br></blockquote></div><br></div></div>