[02:17] <twb> Are beagles armv7?
[02:18] <twb> (f17 arm was released recently and I was idly wondering what their minimum hw target was.)
[02:23] <infinity> twb: Beagles are v7.
[02:23] <infinity> twb: Their armhf port is v7-vfp-d16, same as ours.
[02:23] <infinity> twb: However, theirs is binary incompatible, because they didn't sort out the cross-distro liker mess in time. :/
[02:24] <twb> Hehe
[02:24] <twb> Fortunately I can be idly curious because I don't have to babysit FC boxes anymore :-)
[09:43] <ronoc> ogra_, ping
[10:02] <ronoc> ogra_, pinga ring
[11:18] <ogra_> ronoc, yo, sorry, had an early lunch
[11:18] <ronoc> no worries
[11:19] <ronoc> ogra_, timR is out now
[11:19] <ronoc> ogra_, later when he comes back I'll do some introductions if you don't mind
[11:19] <ogra_> fine, yeah
[11:19] <ronoc> ogra_, thanks
[11:53] <tim_> ogra_, ronoc, hi, just noticed this
[11:53] <ronoc> hey tim_
[11:54] <tim_> hey
[11:54] <ronoc> ogra_, this is my mate tim_ i was speaking to you about
[11:54] <ronoc> gumstix audio issues
[11:54] <tim_> Hello ogra_!
[11:56] <ronoc> tim_, do you have your notifications turned on
[11:56] <tim_> not sure, don't ususally use IRC
[11:59] <ronoc> tim_, when I write tim_ the icon on your panel should go blue or something
[11:59] <ronoc> what client are you using
[12:11] <ogra_> tim_, hey
[12:12] <tim_> ogra_ hi!
[12:12] <ogra_> so you got sound issues i heard
[12:13] <tim_> yep should we switch to direct message?
[12:13] <ogra_> nah, just keep it here
[12:13] <tim_> ok
[12:13] <tim_> I'm just about to run out I'm afraid
[12:13] <tim_> I'll explain quickly
[12:14] <tim_> I'm using 12.04 on gumstix boards
[12:14] <ogra_> yep. connor said so
[12:14] <ogra_> -n :)
[12:14] <tim_> there is a driver called snd-soc-overo for the built in audio
[12:14] <tim_> It works in openembedded I beleive
[12:14] <tim_> I'm modprobling it and it is loading
[12:14] <ogra_> right, do you see anything with "dmesg|tail" if you load it ?
[12:15] <tim_> but no usable devices
[12:15] <tim_> no I don't think so, I'll check that
[12:15] <ogra_> and is there anything in /proc /asound ?
[12:15] <tim_> Is it ok if I check that and get back to you in about 2 hours? just have to do something 1st
[12:16] <ogra_> sadly we dont have amny gumstix users so we dont really get much feedback for that SoC
[12:16] <tim_> you are in charge of soc audio?
[12:16] <ogra_> i have meetings the whole afternoon so i wont be available much
[12:16] <cvanvliet> tim, are you using armhf or armel?
[12:16] <tim_> anytime in the next few days would be great
[12:16] <tim_> armhf
[12:16] <ogra_> no, i only care for images usually and for the arm port in general
[12:16] <ogra_> but that often enough includes userspace audio fixes
[12:17] <tim_> OK.. will report back in a bit, and thanks
[12:17] <ogra_> cool, good luck :)
[14:36] <tim_> ogra_, dmesg just says -  [  392.393524] overo SoC init
[14:37] <tim_> ogra_, cat /proc/asound/cards says  --- no soundcards ---
[14:38] <ogra_> hmm, then your driver probably either needs additional modules loaded ... or whats more likely (and happens often on arm) is that the driver only works properly if compiled in
[14:39] <tim_> there are already a bunch of modules loaded
[14:39] <tim_> snd_soc_core          111406  2 snd_soc_overo,snd_soc_twl4030
[14:40] <tim_> is snd_soc_twl4030 supposed to load I wonder
[14:40] <tim_> twl4030 is the chip that's being used
[14:40] <tim_> and once I have loaded this once, it autoloads on reboot
[14:41] <tim_> btw uname -a : Linux overo 3.2.0-23-omap #36-Ubuntu Tue Apr 10 20:24:21 UTC 2012 armv7l armv7l armv7l GNU/Linux
[15:03] <GrueMaster> tim_: In my experience with the beagleXM and beagleboard (essentially the same SOC), the audio only worked when the drivers were built into the kernel.  You should try rebuilding the kernel with the twl4030 & overo drivers compiled in.
[15:04] <GrueMaster> (I "used" to work on the audio stuff for these boards)
[15:09] <tim_> Thanks!
[15:11] <tim_> I believe these may actually be built into the kernel already? There don't seem to be any .ko files for them..
[15:23] <GrueMaster> Hmmm.
[15:24] <GrueMaster> Try "fgrep TWL4030 /boot/config-*"
[15:24] <GrueMaster> See if they are.
[15:49] <tim_> GrueMaster ok - this checks the kernel build flags? -  CONFIG_SND_SOC_TWL4030=m
[15:50] <tim_> and CONFIG_SND_OMAP_SOC_OVERO=m
[15:50] <GrueMaster> Yes.  And according to that, the driver is built as a module.
[15:50] <tim_> I guess this means they aren't
[15:50] <GrueMaster> Need to rebuild with those set to Y.
[15:51] <tim_> Great! ok, this is going to take a bit of research..
[15:51] <tim_> do you know if it needs both of them?
[15:52] <cvanvliet> tim_, which gumstix have you got? (I have an IronStorm)
[15:52] <GrueMaster> I think if you set one in the kernel config menu, it will flag the other, but I am not sure.  I would just enable both.
[15:52] <tim_> I have airstorm and tide
[15:52] <tim_> I believe they are all compatible with the same kernels?
[15:52] <cvanvliet> I am a noob ;)
[15:53] <GrueMaster> See http://bugs.launchpad.net/ubuntu/+source/linux/+bug/925094
[15:53] <ubot2> Ubuntu bug 925094 in linux "No audio on omap (beagleXM) system" [Medium,Confirmed]
[15:53] <GrueMaster> (I knew I had filed one - with the fix).
[15:54] <tim_> OK this seems to be a similar issue alright
[15:55] <tim_> At the end there is a post that says its a dependency issue?
[15:57] <GrueMaster> Yea, I just saw that.  Can't test it though (not at home, and beaglexm is packed away since I have moved on).
[15:58] <cvanvliet> tim, did you use a preinstalled ubuntu image, I think I tried it earlier and just sat there
[15:58] <cvanvliet> Uncompressing Linux... done, booting the kernel
[15:59] <tim_> I  used a preinstalled image yes
[15:59] <cvanvliet> hmm, ok
[15:59] <GrueMaster> cvanvliet: That sounds like a desktop image.  It requires video & keyboard.  You won't see much else on the serial port.
[15:59] <tim_> I think the current one does that for me also
[16:00] <ogra_> cvanvliet,  you want a server image for serial output
[16:00] <cvanvliet> GrueMaster, it is set up with DVI, keyboard etc
[16:00] <tim_> aha, I just tried loading snd-soc-omap and snd-soc-omap-mcbsp and the device has appeared!
[16:01] <tim_> without rebuilding the kernel ;-)
[16:01] <ogra_> congrats !
[16:01] <tim_> now to check if there is sound
[16:01] <GrueMaster> cool.  You can add the dependency to /etc/modprobe configs.
[16:04] <cvanvliet> ogra, I actually want a desktop, but I can try the server image later
[16:04] <cvanvliet> I actually want 12.04 armel, tbh
[16:04] <ogra_> you cant install the desktop image if your screen doesnt work
[16:04] <ogra_> and there are no armel images for 12.04
[16:05] <cvanvliet> I know, I have been trying to make one
[16:06] <cvanvliet> ogra, I am confused, there is a screen attached
[16:06] <ogra_> right, but the dirver your kernel ships was only tested on beagleXM
[16:07] <cvanvliet> ok
[16:07] <ogra_> its a matter of luck if it works on different omap boards
[16:07] <cvanvliet> thought that may be a the case
[16:07] <cvanvliet> nice to have it confirmed
[16:07] <cvanvliet> and when it worked for tim, I had hope
[16:08] <ogra_> desktop images run the installer on the display ... so without working kernel driver you wont be able to install them
[16:08] <cvanvliet> mine is a newer model, so every reason it may not work
[16:08] <ogra_> thats why i said use the server image ... it is a minimal ubuntu install that runs completely on serial and also offers to install the desktop at the end if you want to
[16:08] <cvanvliet> ahh ok,
[16:08] <cvanvliet> ahh thanks
[16:09] <cvanvliet> I can try that
[16:09] <cvanvliet> although I need armel, having an armhf may help me figure out the armel
[16:09] <ogra_> why do you want armel ?
[16:10] <ogra_> it will be lots slower
[16:10] <ogra_> (beyond the fact that nobody actually cares if it even works)
[16:10] <cvanvliet> I need the SGX drivers
[16:11] <ogra_> ah
[16:11] <cvanvliet> this is for a business of mine
[16:11] <cvanvliet> and we will use opengl for the graphics
[16:11] <ogra_> you could ask over in #beagle if there are any people capable of re-rolling the binary driver at TI
[16:12] <ogra_> thats essentially what was done for the omap4 hf driver
[16:12] <cvanvliet> one of the guys asked someone here the other day,
[16:12] <cvanvliet> and the answer was dunno :(
[16:13] <ogra_> lovely
[16:13] <cvanvliet> ndec, I think it was
[16:13] <ogra_> yeah, he isnt working in the omap3 area i think
[16:13] <tim_> I just tried to test the audio.. no audio
[16:13] <ndec> hmm?
[16:13] <cvanvliet> yeah it is quite hard, I feel like i will be using a below par system
[16:13] <ogra_> ndec, omap3 SGX armhf
[16:13] <tim_> I am aware that the mixer sometimes is preconfigured for no output
[16:13] <cvanvliet> if I don't use armhf
[16:14] <ndec> i don't do that ...
[16:14] <ndec> i don't do OMAP3 SGX, neither armel, nor armhf
[16:14]  * ogra_ thought so :)
[16:14] <tim_> its a very complex mixer
[16:14] <ogra_> tim_, yeah, thats the problem with bug 925094
[16:14] <cvanvliet> ndec, sorry if I got that wrong, I thought it was you who responded
[16:14] <ubot2> Launchpad bug 925094 in linux "No audio on omap (beagleXM) system" [Medium,Confirmed] https://launchpad.net/bugs/925094
[16:15] <ogra_> if it was easy we would just have a UCM config already :)
[16:16] <cvanvliet> so, accordingly with what tim_  is seeing, i will have audio issues as well , (i need to record sound)
[16:16] <ogra_> likely, though for him the driver already works ... should just be a mixer issue now
[16:17] <ogra_> if alsamixer actually shows the device and its rulers you are about 90% done
[16:17] <cvanvliet> ogra , ok
[16:28] <tim_> hmm, I have turned up every single bar in the mixer
[16:29] <tim_> alsaplayer thinks its playing a wav
[16:29] <tim_> but.. no audio
[17:17] <ogra_> tim_, did you also unmute everything ?
[17:18] <GrueMaster> iirc, the only way I got audio working on the beagle was to rebuild the kernel AND tweak the volume settings.  Hopefully you will get it working without rebuilding, but...
[17:21] <tim_> I think I unmuted everything- if OO means on and MM means mute
[17:21] <tim_> Gruemaster, did you also see a device but it didnt work until you rebuilt the kernel?
[17:22] <GrueMaster> Yes.
[17:23] <tim_> OK thats seems pretty clearcut..
[17:25] <GrueMaster> It seems like the device doesn't power properly unless the driver initiallizes it during kernel init.  I don't know enough about the inner workings of the SOC code, but I would guess that the kernel initalization routine powers on devices that need it during boot, but not after.
[17:26] <GrueMaster> On a PC, that's ok as there isn't as much device level power management, but on an SOC that is designed for low power cunsumption....
[17:27] <GrueMaster> It's like the SOC needs hot plug support for on-die devices.
[17:28] <GrueMaster> Of course, my assumptions could be wrong (it has happened before, once or twice).
[17:29] <bradfa> GrueMaster, could the "disabling unused clocks" play into that at all? maybe the SoC is disabling the sound device clocks if it's not configured in kernel init
[17:37] <GrueMaster> That might do it.  I'm not a hw designer though.  Maybe prpplague would know?
[17:37] <prpplague> who summons the plague?
[17:38] <GrueMaster> prpplague: question on the beagleboard/XM/overo Audio.  See scrollback.
[17:39] <prpplague> yea it is possible that a clock is disabled
[17:39] <prpplague> that is something that would take some debugging
[17:40] <GrueMaster> Is there a way to enable it from user land?
[17:40] <prpplague> one of the common issues the clock is disabled by mistake when another device enables their clocks
[17:40] <prpplague> yea you can use devmem2 to enable most clocks, but without knowing what is enable/disabled, you'd be throwing darts in the dark
[17:41]  * GrueMaster has done that with...interesting results.
[17:41] <prpplague> GrueMaster: i'd bring this to the attention of mdp or tartarus over on #beagle, they'd be able to get to the bottom of it fairly quickly
[17:41] <GrueMaster> Using real darts, of course.
[17:42] <GrueMaster> tim_, bradfa, cvanvliet, there you go.  I have done what I can to help from here.
[17:43]  * cvanvliet passes GrueMaster a beer
[17:43] <tim_> haha thanks a million..
[19:01] <janimo> lilstevie, no news on the tf101g front?