* No sound on nitrogen6x + linux-boundary 3.10.17
@ 2014-05-05 6:51 Erik Botö
2014-05-05 13:24 ` Erik Botö
2014-05-05 17:40 ` Fabio Estevam
0 siblings, 2 replies; 19+ messages in thread
From: Erik Botö @ 2014-05-05 6:51 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
Hi,
I'm having trouble playing audio on this board using the sgtl5000. Can
anyone verify that it works on their system? Also any ideas of what
might be wrong are highly appreciated :)
Using aplay it get stuck here:
Program received signal SIGINT, Interrupt.
0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) bt
#0 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x482bc490 in snd1_pcm_wait_nocheck (pcm=pcm@entry=0x2afe8,
timeout=timeout@entry=-1)
at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2418
#2 0x482c16a4 in snd1_pcm_write_areas (pcm=pcm@entry=0x2afe8,
areas=areas@entry=0x7efff948, offset=offset@entry=0,
size=size@entry=1920,
func=0x482cd2f4 <snd_pcm_mmap_write_areas>) at
/usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:6808
#3 0x482cd7d8 in snd_pcm_mmap_writei (pcm=0x2afe8, buffer=<optimized
out>, size=1920)
at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_mmap.c:186
#4 0x482baf00 in _snd_pcm_writei (pcm=<optimized out>, pcm=<optimized
out>, size=<optimized out>, buffer=<optimized out>)
at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_local.h:525
#5 snd_pcm_writei (pcm=<optimized out>, buffer=<optimized out>,
size=<optimized out>)
at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:1260
#6 0x0000daf0 in pcm_write (data=<optimized out>, count=<optimized
out>, count@entry=1920) at aplay.c:1928
#7 0x0000dea8 in playback_go (fd=5, loaded=<optimized out>,
loaded@entry=0, count=34560, rtype=2, name=0x7efffe6d
"Front_Left.wav")
at aplay.c:2677
#8 0x0000f480 in playback (name=<optimized out>) at aplay.c:2738
#9 0x00011968 in main (argc=2, argv=0x7efffd54) at aplay.c:787
And using gst-launch with alsasink and GST_DEBUG=*:5 I get stuck on an
endless row of:
0:00:12.679512074 1379 0x76112580 DEBUG alsa
foo/nitro-build/tmp/work/cortexa9-vfp-neon-mx6-bistro-linux-gnueabi/gst-plugins-base/0.10.36-r8/gst-plugins-base-0.10.36/ext/alsa/gstalsasink.c:864:gst_alsasink_write:<audiosink-actual-sink-alsa>
written -11 frames out of 1920
Cheers,
Erik
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 6:51 No sound on nitrogen6x + linux-boundary 3.10.17 Erik Botö @ 2014-05-05 13:24 ` Erik Botö 2014-05-05 14:31 ` Otavio Salvador 2014-05-05 14:32 ` Erik Botö 2014-05-05 17:40 ` Fabio Estevam 1 sibling, 2 replies; 19+ messages in thread From: Erik Botö @ 2014-05-05 13:24 UTC (permalink / raw) To: meta-freescale@yoctoproject.org Update: I built the exact same image but using the 3.0.35 kernel and then playback works fine. Cheers, Erik On Mon, May 5, 2014 at 8:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: > Hi, > > I'm having trouble playing audio on this board using the sgtl5000. Can > anyone verify that it works on their system? Also any ideas of what > might be wrong are highly appreciated :) > > Using aplay it get stuck here: > > Program received signal SIGINT, Interrupt. > 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 > 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) > (gdb) bt > #0 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 > #1 0x482bc490 in snd1_pcm_wait_nocheck (pcm=pcm@entry=0x2afe8, > timeout=timeout@entry=-1) > at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2418 > #2 0x482c16a4 in snd1_pcm_write_areas (pcm=pcm@entry=0x2afe8, > areas=areas@entry=0x7efff948, offset=offset@entry=0, > size=size@entry=1920, > func=0x482cd2f4 <snd_pcm_mmap_write_areas>) at > /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:6808 > #3 0x482cd7d8 in snd_pcm_mmap_writei (pcm=0x2afe8, buffer=<optimized > out>, size=1920) > at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_mmap.c:186 > #4 0x482baf00 in _snd_pcm_writei (pcm=<optimized out>, pcm=<optimized > out>, size=<optimized out>, buffer=<optimized out>) > at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_local.h:525 > #5 snd_pcm_writei (pcm=<optimized out>, buffer=<optimized out>, > size=<optimized out>) > at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:1260 > #6 0x0000daf0 in pcm_write (data=<optimized out>, count=<optimized > out>, count@entry=1920) at aplay.c:1928 > #7 0x0000dea8 in playback_go (fd=5, loaded=<optimized out>, > loaded@entry=0, count=34560, rtype=2, name=0x7efffe6d > "Front_Left.wav") > at aplay.c:2677 > #8 0x0000f480 in playback (name=<optimized out>) at aplay.c:2738 > #9 0x00011968 in main (argc=2, argv=0x7efffd54) at aplay.c:787 > > And using gst-launch with alsasink and GST_DEBUG=*:5 I get stuck on an > endless row of: > 0:00:12.679512074 1379 0x76112580 DEBUG alsa > foo/nitro-build/tmp/work/cortexa9-vfp-neon-mx6-bistro-linux-gnueabi/gst-plugins-base/0.10.36-r8/gst-plugins-base-0.10.36/ext/alsa/gstalsasink.c:864:gst_alsasink_write:<audiosink-actual-sink-alsa> > written -11 frames out of 1920 > > Cheers, > Erik ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 13:24 ` Erik Botö @ 2014-05-05 14:31 ` Otavio Salvador 2014-05-05 14:32 ` Erik Botö 1 sibling, 0 replies; 19+ messages in thread From: Otavio Salvador @ 2014-05-05 14:31 UTC (permalink / raw) To: Erik Botö, Eric Nelson; +Cc: meta-freescale@yoctoproject.org Hello Erik, I am adding Eric Nelson in Cc so he can comment on this... On Mon, May 5, 2014 at 10:24 AM, Erik Botö <erik.boto@pelagicore.com> wrote: > Update: > > I built the exact same image but using the 3.0.35 kernel and then > playback works fine. > > Cheers, > Erik > > On Mon, May 5, 2014 at 8:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: >> Hi, >> >> I'm having trouble playing audio on this board using the sgtl5000. Can >> anyone verify that it works on their system? Also any ideas of what >> might be wrong are highly appreciated :) >> >> Using aplay it get stuck here: >> >> Program received signal SIGINT, Interrupt. >> 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 >> 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) >> (gdb) bt >> #0 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 >> #1 0x482bc490 in snd1_pcm_wait_nocheck (pcm=pcm@entry=0x2afe8, >> timeout=timeout@entry=-1) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2418 >> #2 0x482c16a4 in snd1_pcm_write_areas (pcm=pcm@entry=0x2afe8, >> areas=areas@entry=0x7efff948, offset=offset@entry=0, >> size=size@entry=1920, >> func=0x482cd2f4 <snd_pcm_mmap_write_areas>) at >> /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:6808 >> #3 0x482cd7d8 in snd_pcm_mmap_writei (pcm=0x2afe8, buffer=<optimized >> out>, size=1920) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_mmap.c:186 >> #4 0x482baf00 in _snd_pcm_writei (pcm=<optimized out>, pcm=<optimized >> out>, size=<optimized out>, buffer=<optimized out>) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_local.h:525 >> #5 snd_pcm_writei (pcm=<optimized out>, buffer=<optimized out>, >> size=<optimized out>) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:1260 >> #6 0x0000daf0 in pcm_write (data=<optimized out>, count=<optimized >> out>, count@entry=1920) at aplay.c:1928 >> #7 0x0000dea8 in playback_go (fd=5, loaded=<optimized out>, >> loaded@entry=0, count=34560, rtype=2, name=0x7efffe6d >> "Front_Left.wav") >> at aplay.c:2677 >> #8 0x0000f480 in playback (name=<optimized out>) at aplay.c:2738 >> #9 0x00011968 in main (argc=2, argv=0x7efffd54) at aplay.c:787 >> >> And using gst-launch with alsasink and GST_DEBUG=*:5 I get stuck on an >> endless row of: >> 0:00:12.679512074 1379 0x76112580 DEBUG alsa >> foo/nitro-build/tmp/work/cortexa9-vfp-neon-mx6-bistro-linux-gnueabi/gst-plugins-base/0.10.36-r8/gst-plugins-base-0.10.36/ext/alsa/gstalsasink.c:864:gst_alsasink_write:<audiosink-actual-sink-alsa> >> written -11 frames out of 1920 >> >> Cheers, >> Erik > -- > _______________________________________________ > meta-freescale mailing list > meta-freescale@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-freescale -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 13:24 ` Erik Botö 2014-05-05 14:31 ` Otavio Salvador @ 2014-05-05 14:32 ` Erik Botö 1 sibling, 0 replies; 19+ messages in thread From: Erik Botö @ 2014-05-05 14:32 UTC (permalink / raw) To: meta-freescale@yoctoproject.org I measured the different clock signals to the sgtl5000 chip and they seem to be running at least. Approx 1,4 MHz I2S_SCLK, 44100 Hz sample rate and SYS_MCLK is ~23 MHz. Those are similar with the older kernel, except SYS_MCLK which seems a bit lower ~16 MHz. Cheers, Erik On Mon, May 5, 2014 at 3:24 PM, Erik Botö <erik.boto@pelagicore.com> wrote: > Update: > > I built the exact same image but using the 3.0.35 kernel and then > playback works fine. > > Cheers, > Erik > > On Mon, May 5, 2014 at 8:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: >> Hi, >> >> I'm having trouble playing audio on this board using the sgtl5000. Can >> anyone verify that it works on their system? Also any ideas of what >> might be wrong are highly appreciated :) >> >> Using aplay it get stuck here: >> >> Program received signal SIGINT, Interrupt. >> 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 >> 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) >> (gdb) bt >> #0 0x48104668 in poll () at ../sysdeps/unix/syscall-template.S:81 >> #1 0x482bc490 in snd1_pcm_wait_nocheck (pcm=pcm@entry=0x2afe8, >> timeout=timeout@entry=-1) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2418 >> #2 0x482c16a4 in snd1_pcm_write_areas (pcm=pcm@entry=0x2afe8, >> areas=areas@entry=0x7efff948, offset=offset@entry=0, >> size=size@entry=1920, >> func=0x482cd2f4 <snd_pcm_mmap_write_areas>) at >> /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:6808 >> #3 0x482cd7d8 in snd_pcm_mmap_writei (pcm=0x2afe8, buffer=<optimized >> out>, size=1920) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_mmap.c:186 >> #4 0x482baf00 in _snd_pcm_writei (pcm=<optimized out>, pcm=<optimized >> out>, size=<optimized out>, buffer=<optimized out>) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm_local.h:525 >> #5 snd_pcm_writei (pcm=<optimized out>, buffer=<optimized out>, >> size=<optimized out>) >> at /usr/src/debug/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:1260 >> #6 0x0000daf0 in pcm_write (data=<optimized out>, count=<optimized >> out>, count@entry=1920) at aplay.c:1928 >> #7 0x0000dea8 in playback_go (fd=5, loaded=<optimized out>, >> loaded@entry=0, count=34560, rtype=2, name=0x7efffe6d >> "Front_Left.wav") >> at aplay.c:2677 >> #8 0x0000f480 in playback (name=<optimized out>) at aplay.c:2738 >> #9 0x00011968 in main (argc=2, argv=0x7efffd54) at aplay.c:787 >> >> And using gst-launch with alsasink and GST_DEBUG=*:5 I get stuck on an >> endless row of: >> 0:00:12.679512074 1379 0x76112580 DEBUG alsa >> foo/nitro-build/tmp/work/cortexa9-vfp-neon-mx6-bistro-linux-gnueabi/gst-plugins-base/0.10.36-r8/gst-plugins-base-0.10.36/ext/alsa/gstalsasink.c:864:gst_alsasink_write:<audiosink-actual-sink-alsa> >> written -11 frames out of 1920 >> >> Cheers, >> Erik ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 6:51 No sound on nitrogen6x + linux-boundary 3.10.17 Erik Botö 2014-05-05 13:24 ` Erik Botö @ 2014-05-05 17:40 ` Fabio Estevam 2014-05-05 17:55 ` Fabio Estevam 1 sibling, 1 reply; 19+ messages in thread From: Fabio Estevam @ 2014-05-05 17:40 UTC (permalink / raw) To: Erik Botö; +Cc: meta-freescale@yoctoproject.org Erik, On Mon, May 5, 2014 at 3:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: > Hi, > > I'm having trouble playing audio on this board using the sgtl5000. Can > anyone verify that it works on their system? Also any ideas of what > might be wrong are highly appreciated :) > > Using aplay it get stuck here: I remember that I have helped John Weber recently to get audio working on 3.10.17 on wandboard. There were two patches that were needed: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=9e13f345887c179068bbc1f7389b7177bf88f57e and this one as well: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=46a5905e1cd4a9d9d238ec7beece49ce49e2ad85 Regards, Fabio Estevam ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 17:40 ` Fabio Estevam @ 2014-05-05 17:55 ` Fabio Estevam 2014-05-05 18:02 ` John Weber 2014-05-06 12:36 ` Erik Botö 0 siblings, 2 replies; 19+ messages in thread From: Fabio Estevam @ 2014-05-05 17:55 UTC (permalink / raw) To: Erik Botö; +Cc: meta-freescale@yoctoproject.org On Mon, May 5, 2014 at 2:40 PM, Fabio Estevam <festevam@gmail.com> wrote: > Erik, > > On Mon, May 5, 2014 at 3:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: >> Hi, >> >> I'm having trouble playing audio on this board using the sgtl5000. Can >> anyone verify that it works on their system? Also any ideas of what >> might be wrong are highly appreciated :) >> >> Using aplay it get stuck here: > > I remember that I have helped John Weber recently to get audio working > on 3.10.17 on wandboard. > > There were two patches that were needed: > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=9e13f345887c179068bbc1f7389b7177bf88f57e > > and this one as well: > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=46a5905e1cd4a9d9d238ec7beece49ce49e2ad85 For a more complete reference, please apply all the ASoC patches from: https://github.com/wandboard-org/linux/commits/wandboard_imx_3.10.17_1.0.0_ga and make sure the codec dts files also matches. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 17:55 ` Fabio Estevam @ 2014-05-05 18:02 ` John Weber 2014-05-05 19:31 ` Eric Nelson 2014-05-28 17:26 ` Fabio Estevam 2014-05-06 12:36 ` Erik Botö 1 sibling, 2 replies; 19+ messages in thread From: John Weber @ 2014-05-05 18:02 UTC (permalink / raw) To: Fabio Estevam, Erik Botö; +Cc: meta-freescale@yoctoproject.org Hi Erik, On 5/5/14, 12:55 PM, Fabio Estevam wrote: > On Mon, May 5, 2014 at 2:40 PM, Fabio Estevam <festevam@gmail.com> wrote: >> Erik, >> >> On Mon, May 5, 2014 at 3:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: >>> Hi, >>> >>> I'm having trouble playing audio on this board using the sgtl5000. Can >>> anyone verify that it works on their system? Also any ideas of what >>> might be wrong are highly appreciated :) >>> >>> Using aplay it get stuck here: >> I remember that I have helped John Weber recently to get audio working >> on 3.10.17 on wandboard. >> >> There were two patches that were needed: >> >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=9e13f345887c179068bbc1f7389b7177bf88f57e >> >> and this one as well: >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=46a5905e1cd4a9d9d238ec7beece49ce49e2ad85 > For a more complete reference, please apply all the ASoC patches from: > https://github.com/wandboard-org/linux/commits/wandboard_imx_3.10.17_1.0.0_ga > > and make sure the codec dts files also matches. This could be related to the problems that I saw in Wandboard. The SGTL5000 would not be properly initialize if I passed audio through it /and/ then rebooted the board (any type of reboot). Fabio's patches worked to solve the problem. It would be good to know if this fixes your problem. John ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 18:02 ` John Weber @ 2014-05-05 19:31 ` Eric Nelson 2014-05-05 23:22 ` Troy Kisky 2014-05-28 17:26 ` Fabio Estevam 1 sibling, 1 reply; 19+ messages in thread From: Eric Nelson @ 2014-05-05 19:31 UTC (permalink / raw) To: John Weber; +Cc: meta-freescale@yoctoproject.org, Troy Kisky [-- Attachment #1: Type: text/plain, Size: 1843 bytes --] Thanks for the detailed report, Erik. And thanks for the info, Fabio and John. On Mon, May 5, 2014 at 11:02 AM, John Weber <rjohnweber@gmail.com> wrote: > Hi Erik, > > On 5/5/14, 12:55 PM, Fabio Estevam wrote: > >> On Mon, May 5, 2014 at 2:40 PM, Fabio Estevam <festevam@gmail.com> wrote: >> >>> Erik, >>> >>> On Mon, May 5, 2014 at 3:51 AM, Erik Botö <erik.boto@pelagicore.com> >>> wrote: >>> >>>> Hi, >>>> >>>> I'm having trouble playing audio on this board using the sgtl5000. Can >>>> anyone verify that it works on their system? Also any ideas of what >>>> might be wrong are highly appreciated :) >>>> >>>> Using aplay it get stuck here: >>>> >>> I remember that I have helped John Weber recently to get audio working >>> on 3.10.17 on wandboard. >>> >>> There were two patches that were needed: >>> >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/ >>> linux.git/commit/sound/soc/codecs/sgtl5000.c?id= >>> 9e13f345887c179068bbc1f7389b7177bf88f57e >>> >>> and this one as well: >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/ >>> linux.git/commit/sound/soc/codecs/sgtl5000.c?id= >>> 46a5905e1cd4a9d9d238ec7beece49ce49e2ad85 >>> >> For a more complete reference, please apply all the ASoC patches from: >> https://github.com/wandboard-org/linux/commits/wandboard_ >> imx_3.10.17_1.0.0_ga >> >> and make sure the codec dts files also matches. >> > This could be related to the problems that I saw in Wandboard. The > SGTL5000 would not be properly initialize if I passed audio through it > /and/ then rebooted the board (any type of reboot). Fabio's patches worked > to solve the problem. It would be good to know if this fixes your problem. > > John > > I'm out of the office today, but CC'ing Troy to see if he can reproduce things. Regards, Eric [-- Attachment #2: Type: text/html, Size: 3430 bytes --] ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 19:31 ` Eric Nelson @ 2014-05-05 23:22 ` Troy Kisky 2014-05-05 23:27 ` Fabio Estevam 0 siblings, 1 reply; 19+ messages in thread From: Troy Kisky @ 2014-05-05 23:22 UTC (permalink / raw) To: Eric Nelson, John Weber; +Cc: meta-freescale@yoctoproject.org On 5/5/2014 12:31 PM, Eric Nelson wrote: > Thanks for the detailed report, Erik. > > And thanks for the info, Fabio and John. > > > I'm out of the office today, but CC'ing Troy to see if he can reproduce things. > I just did a similar fix for the problem, but I also reset registers to power on default value. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 23:22 ` Troy Kisky @ 2014-05-05 23:27 ` Fabio Estevam 2014-05-05 23:59 ` Troy Kisky 2014-05-06 14:04 ` Eric Nelson 0 siblings, 2 replies; 19+ messages in thread From: Fabio Estevam @ 2014-05-05 23:27 UTC (permalink / raw) To: Troy Kisky; +Cc: meta-freescale@yoctoproject.org On Mon, May 5, 2014 at 8:22 PM, Troy Kisky <troy.kisky@boundarydevices.com> wrote: > On 5/5/2014 12:31 PM, Eric Nelson wrote: >> Thanks for the detailed report, Erik. >> >> And thanks for the info, Fabio and John. >> >> >> I'm out of the office today, but CC'ing Troy to see if he can reproduce things. >> > > > I just did a similar fix for the problem, but I also reset registers to power on > default value. Like this one, I guess: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/sound/soc/codecs/sgtl5000.c?id=af8ee11209e749c75eabf32b2a4ca631f396acf8 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 23:27 ` Fabio Estevam @ 2014-05-05 23:59 ` Troy Kisky 2014-05-06 14:04 ` Eric Nelson 1 sibling, 0 replies; 19+ messages in thread From: Troy Kisky @ 2014-05-05 23:59 UTC (permalink / raw) To: Fabio Estevam; +Cc: meta-freescale@yoctoproject.org On 5/5/2014 4:27 PM, Fabio Estevam wrote: > On Mon, May 5, 2014 at 8:22 PM, Troy Kisky > <troy.kisky@boundarydevices.com> wrote: >> On 5/5/2014 12:31 PM, Eric Nelson wrote: >>> Thanks for the detailed report, Erik. >>> >>> And thanks for the info, Fabio and John. >>> >>> >>> I'm out of the office today, but CC'ing Troy to see if he can reproduce things. >>> >> >> >> I just did a similar fix for the problem, but I also reset registers to power on >> default value. > > Like this one, I guess: > https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/sound/soc/codecs/sgtl5000.c?id=af8ee11209e749c75eabf32b2a4ca631f396acf8 > Yes, but without regmap. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 23:27 ` Fabio Estevam 2014-05-05 23:59 ` Troy Kisky @ 2014-05-06 14:04 ` Eric Nelson 2014-05-06 14:39 ` Erik Botö 1 sibling, 1 reply; 19+ messages in thread From: Eric Nelson @ 2014-05-06 14:04 UTC (permalink / raw) To: Fabio Estevam, Troy Kisky; +Cc: meta-freescale@yoctoproject.org Hi Fabio, On 05/05/2014 04:27 PM, Fabio Estevam wrote: > On Mon, May 5, 2014 at 8:22 PM, Troy Kisky > <troy.kisky@boundarydevices.com> wrote: >> On 5/5/2014 12:31 PM, Eric Nelson wrote: >>> Thanks for the detailed report, Erik. >>> >>> And thanks for the info, Fabio and John. >>> >>> I'm out of the office today, but CC'ing Troy to see if he can reproduce things. >>> >> I just did a similar fix for the problem, but I also reset registers to power on >> default value. > > Like this one, I guess: > https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/sound/soc/codecs/sgtl5000.c?id=af8ee11209e749c75eabf32b2a4ca631f396acf8 > Essentially yes. Troy pulled in an older patch that also has some retry logic around I2C reads and writes: https://github.com/boundarydevices/linux-imx6/commit/c8e4e642 Erik, I'll forward a patch against linux-boundary_3.10.17.bb later today, but you can test by changing SRCREV to fe41f1e14c1769c2012b21ac6375ddb1ab15ea52 Regards, Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-06 14:04 ` Eric Nelson @ 2014-05-06 14:39 ` Erik Botö 2014-05-06 18:16 ` Eric Nelson 0 siblings, 1 reply; 19+ messages in thread From: Erik Botö @ 2014-05-06 14:39 UTC (permalink / raw) To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org, Troy Kisky Hi, On Tue, May 6, 2014 at 4:04 PM, Eric Nelson <eric.nelson@boundarydevices.com> wrote: > Hi Fabio, > > > On 05/05/2014 04:27 PM, Fabio Estevam wrote: >> >> On Mon, May 5, 2014 at 8:22 PM, Troy Kisky >> <troy.kisky@boundarydevices.com> wrote: >>> >>> On 5/5/2014 12:31 PM, Eric Nelson wrote: >>>> >>>> Thanks for the detailed report, Erik. >>>> >>>> And thanks for the info, Fabio and John. >>>> >>>> I'm out of the office today, but CC'ing Troy to see if he can reproduce >>>> things. >>>> >>> I just did a similar fix for the problem, but I also reset registers to >>> power on >>> default value. >> >> >> Like this one, I guess: >> >> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/sound/soc/codecs/sgtl5000.c?id=af8ee11209e749c75eabf32b2a4ca631f396acf8 >> > > Essentially yes. > > Troy pulled in an older patch that also has some retry logic > around I2C reads and writes: > https://github.com/boundarydevices/linux-imx6/commit/c8e4e642 > > Erik, I'll forward a patch against linux-boundary_3.10.17.bb later > today, but you can test by changing SRCREV to > fe41f1e14c1769c2012b21ac6375ddb1ab15ea52 I tried that now but I still can't play anything using alsa (or anything else I've tried). Note that this is not just after reboot, I also don't have working audio after a cold boot. Looking at the kernel output from boot it looks like the driver load just fine, and I have the device under /dev/snd/pcmC0D0p and it's listed using aplay -L: Has anyone been able to test using a sabrelite or nitrogen6x to see if they get the same result? I just use aplay to play a test file from alsa (/usr/share/sounds/alsa/Front_Left.wav on most linux systems). > > Regards, > > > Eric > -- ============================================= Erik Botö Senior Software Engineer Pelagicore AB Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden Mobile: +46 (0)76 881 72 03 E-Mail: erik.boto@pelagicore.com ============================================= ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-06 14:39 ` Erik Botö @ 2014-05-06 18:16 ` Eric Nelson 2014-05-07 8:02 ` Erik Botö 0 siblings, 1 reply; 19+ messages in thread From: Eric Nelson @ 2014-05-06 18:16 UTC (permalink / raw) To: Erik Botö; +Cc: meta-freescale@yoctoproject.org, Troy Kisky Hi Erik, On 05/06/2014 07:39 AM, Erik Botö wrote: > Hi, > > On Tue, May 6, 2014 at 4:04 PM, Eric Nelson > <eric.nelson@boundarydevices.com> wrote: > > <snip> > >> >> Erik, I'll forward a patch against linux-boundary_3.10.17.bb later >> today, but you can test by changing SRCREV to >> fe41f1e14c1769c2012b21ac6375ddb1ab15ea52 > > I tried that now but I still can't play anything using alsa (or > anything else I've tried). Note that this is not just after reboot, I > also don't have working audio after a cold boot. Looking at the kernel > output from boot it looks like the driver load just fine, and I have > the device under /dev/snd/pcmC0D0p and it's listed using aplay -L: > > Has anyone been able to test using a sabrelite or nitrogen6x to see if > they get the same result? I just use aplay to play a test file from > alsa (/usr/share/sounds/alsa/Front_Left.wav on most linux systems). > I just tested against this image, revision fe41f1e of our kernel and nitrogen6x_defconfig on a Nitrogen6x and things worked perfectly through a handful of re-boots: http://boundarydevices.com/yocto-kernel-3-10-17-beta/ Let me know if you'd like me to upload a binary kernel package. Regards, Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-06 18:16 ` Eric Nelson @ 2014-05-07 8:02 ` Erik Botö 2014-05-07 13:32 ` Eric Nelson 0 siblings, 1 reply; 19+ messages in thread From: Erik Botö @ 2014-05-07 8:02 UTC (permalink / raw) To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org, Troy Kisky On Tue, May 6, 2014 at 8:16 PM, Eric Nelson <eric.nelson@boundarydevices.com> wrote: > Hi Erik, > <snip> > > I just tested against this image, revision fe41f1e of our kernel > and nitrogen6x_defconfig on a Nitrogen6x and things worked > perfectly through a handful of re-boots: > > http://boundarydevices.com/yocto-kernel-3-10-17-beta/ > > Let me know if you'd like me to upload a binary kernel package. Thanks for helping out! After testing this out and getting really confused about it still not working I started to look through the early boot output on the serial console looking for some board revision info. Then I noticed that it used the sabrelite version of the device tree file since board was unset in u-boot. By doing a "setenv board nitrogen6x" in u-boot before booting, which makes it use the correct dtb-file, sound works like a charm. So I guess it was a user error all along, although a not-so-obvious one :) After upgrading u-boot on the board from "U-Boot 2013.01-00058-g5957f6d" to "U-Boot 2014.04" the board variable is set by default and hence everything works out-of-the-box. Again, thanks for your patience! Cheers, Erik > > Regards, > > > Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-07 8:02 ` Erik Botö @ 2014-05-07 13:32 ` Eric Nelson 0 siblings, 0 replies; 19+ messages in thread From: Eric Nelson @ 2014-05-07 13:32 UTC (permalink / raw) To: Erik Botö; +Cc: meta-freescale@yoctoproject.org, Troy Kisky Hi Erik, On 05/07/2014 01:02 AM, Erik Botö wrote: > On Tue, May 6, 2014 at 8:16 PM, Eric Nelson > <eric.nelson@boundarydevices.com> wrote: >> Hi Erik, >> > > <snip> > >> >> I just tested against this image, revision fe41f1e of our kernel >> and nitrogen6x_defconfig on a Nitrogen6x and things worked >> perfectly through a handful of re-boots: >> >> http://boundarydevices.com/yocto-kernel-3-10-17-beta/ >> >> Let me know if you'd like me to upload a binary kernel package. > > Thanks for helping out! > No problem. That's what we're here for. > After testing this out and getting really confused about it still not > working I started to look through the early boot output on the serial > console looking for some board revision info. Then I noticed that it > used the sabrelite version of the device tree file since board was > unset in u-boot. By doing a "setenv board nitrogen6x" in u-boot before > booting, which makes it use the correct dtb-file, sound works like a > charm. So I guess it was a user error all along, although a > not-so-obvious one :) > > After upgrading u-boot on the board from "U-Boot > 2013.01-00058-g5957f6d" to "U-Boot 2014.04" the board variable is set > by default and hence everything works out-of-the-box. > Thanks for the note about this. Since upgrading U-Boot is a separate operation for our boards, we'll likely have others hit the same thing as they make the transition to DT. Regards, Eric ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 18:02 ` John Weber 2014-05-05 19:31 ` Eric Nelson @ 2014-05-28 17:26 ` Fabio Estevam 2014-05-28 19:12 ` John Weber 1 sibling, 1 reply; 19+ messages in thread From: Fabio Estevam @ 2014-05-28 17:26 UTC (permalink / raw) To: John Weber; +Cc: meta-freescale@yoctoproject.org John, On Mon, May 5, 2014 at 3:02 PM, John Weber <rjohnweber@gmail.com> wrote: > This could be related to the problems that I saw in Wandboard. The SGTL5000 > would not be properly initialize if I passed audio through it /and/ then > rebooted the board (any type of reboot). Fabio's patches worked to solve > the problem. It would be good to know if this fixes your problem. Maybe you want to backport this patch into your 3.10 branch as well. It fixes suspend/resume on sgtl5000: https://git.kernel.org/cgit/linux/kernel/git/broonie/sound.git/commit/?h=topic/sgtl5000&id=29aa37cddfb9b721013ff28608200d73a9426368 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-28 17:26 ` Fabio Estevam @ 2014-05-28 19:12 ` John Weber 0 siblings, 0 replies; 19+ messages in thread From: John Weber @ 2014-05-28 19:12 UTC (permalink / raw) To: Fabio Estevam; +Cc: meta-freescale@yoctoproject.org Thanks Fabio. Will do. On 5/28/14, 12:26 PM, Fabio Estevam wrote: > John, > > On Mon, May 5, 2014 at 3:02 PM, John Weber <rjohnweber@gmail.com> wrote: > >> This could be related to the problems that I saw in Wandboard. The SGTL5000 >> would not be properly initialize if I passed audio through it /and/ then >> rebooted the board (any type of reboot). Fabio's patches worked to solve >> the problem. It would be good to know if this fixes your problem. > Maybe you want to backport this patch into your 3.10 branch as well. > > It fixes suspend/resume on sgtl5000: > https://git.kernel.org/cgit/linux/kernel/git/broonie/sound.git/commit/?h=topic/sgtl5000&id=29aa37cddfb9b721013ff28608200d73a9426368 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: No sound on nitrogen6x + linux-boundary 3.10.17 2014-05-05 17:55 ` Fabio Estevam 2014-05-05 18:02 ` John Weber @ 2014-05-06 12:36 ` Erik Botö 1 sibling, 0 replies; 19+ messages in thread From: Erik Botö @ 2014-05-06 12:36 UTC (permalink / raw) To: Fabio Estevam; +Cc: meta-freescale@yoctoproject.org, troy.kisky On Mon, May 5, 2014 at 7:55 PM, Fabio Estevam <festevam@gmail.com> wrote: > On Mon, May 5, 2014 at 2:40 PM, Fabio Estevam <festevam@gmail.com> wrote: >> Erik, >> >> On Mon, May 5, 2014 at 3:51 AM, Erik Botö <erik.boto@pelagicore.com> wrote: >>> Hi, >>> >>> I'm having trouble playing audio on this board using the sgtl5000. Can >>> anyone verify that it works on their system? Also any ideas of what >>> might be wrong are highly appreciated :) >>> >>> Using aplay it get stuck here: >> >> I remember that I have helped John Weber recently to get audio working >> on 3.10.17 on wandboard. >> >> There were two patches that were needed: >> >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=9e13f345887c179068bbc1f7389b7177bf88f57e >> >> and this one as well: >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/sound/soc/codecs/sgtl5000.c?id=46a5905e1cd4a9d9d238ec7beece49ce49e2ad85 > > For a more complete reference, please apply all the ASoC patches from: > https://github.com/wandboard-org/linux/commits/wandboard_imx_3.10.17_1.0.0_ga > > and make sure the codec dts files also matches. So I tried to apply the following commits from the wandboard kernel git, they didn't apply cleanly but I think I was able to get their function in: ASoC-sgtl5000-Convert-to-use-regmap-directly ASoC-sgtl5000-Read-SGTL5000_CHIP_ID-in-i2c_probe ASoC-sgtl5000-Fix-driver-probe-after-reset ASoC-sgtl5000-Let-the-codec-acquire-its-clock ASoC-sgtl5000-defer-the-probe-if-clock-is-not-found But unfortunately I still have the same problem. I measured I2S_SCLK, I2S_LRCLK and SYS_MCLK on the sgtl5000 chip using both the 3.10.17 and 3.0.35 (alsa playback works on 3.0.35 but not 3.10.17): 3.10.17 3.0.35 I2S_SCLK ~1.4 Mhz ~1.4 Mhz I2S_LRCLK 44100 Hz 44100 Hz SYS_MCLK ~23 MHz ~16,5 MHz Looking at the datasheet [1] it looks like things are setup differently depending on if SYS_MCLK is > 17 MHz which is the case with 3.10.17. Currently I'm a bit confused about how this clock get set up. I'm a bit out of my regular comfort zone here so if you think I'm wasting my time looking at SYS_MCLK please tell me :) If anyone using sgtl5000 + 3.10.17 with alsa playback working has an oscilloscope nearby I'd would love to know how your clocks look. [1] - http://cache.freescale.com/files/analog/doc/data_sheet/SGTL5000.pdf Cheers, Erik ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2014-05-28 19:21 UTC | newest] Thread overview: 19+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-05 6:51 No sound on nitrogen6x + linux-boundary 3.10.17 Erik Botö 2014-05-05 13:24 ` Erik Botö 2014-05-05 14:31 ` Otavio Salvador 2014-05-05 14:32 ` Erik Botö 2014-05-05 17:40 ` Fabio Estevam 2014-05-05 17:55 ` Fabio Estevam 2014-05-05 18:02 ` John Weber 2014-05-05 19:31 ` Eric Nelson 2014-05-05 23:22 ` Troy Kisky 2014-05-05 23:27 ` Fabio Estevam 2014-05-05 23:59 ` Troy Kisky 2014-05-06 14:04 ` Eric Nelson 2014-05-06 14:39 ` Erik Botö 2014-05-06 18:16 ` Eric Nelson 2014-05-07 8:02 ` Erik Botö 2014-05-07 13:32 ` Eric Nelson 2014-05-28 17:26 ` Fabio Estevam 2014-05-28 19:12 ` John Weber 2014-05-06 12:36 ` Erik Botö
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.