Page 2 of 4

Re: Linux Kernels with GMA500 Support

Posted: Tue Sep 17, 2013 7:54 pm
by pete
Guess here I am a bit late to the "party".

That said I am getting non jittery 1080 streaming running at Gb speeds but XBMC is still using the legacy EMGD driver.

Most of my IP HD CCTV cams are doing 720 and stream great with the Joggler / Openpeak emgd drivers.

The above mention will I see better with the GMA500 support?

A side note experiment was putting in a Broadcom Crystal HD mini pci card in the Joggler III (aka Openframe 2.0) build using the 2Gb partition for XBMC streams "perfect" live broadcast 1080 HD and recorded media from the MthTV box and NAS boxes. The Joggler III includes a battery to keep time.....

Thom (tschak) is also looking at this (thinking yes?)

and I invite him to participate in this specific thread.

Please let me know when and how I can partipate in testing as I have an Ubuntu build running right now on a 16Gb boot SSD and its working well and is pretty fast.

Re: Linux Kernels with GMA500 Support

Posted: Wed Sep 18, 2013 2:52 pm
by roobarb!
pete wrote:The above mention will I see better with the GMA500 support?
'Fraid not. None of the kernel drivers for GMA500 include hardware acceleration. If you need hardware video decoding, the EMGD drivers from Intel are the best that are available.

Re: Linux Kernels with GMA500 Support

Posted: Wed Sep 18, 2013 4:27 pm
by pete
Thank-you roobarb!

Yup; I did have decent live 1080 streaming; then goofing around installed asterisk on the Joggler II and 1080 live streaming got a bit slower or jittery.

I am thinking that might dinged utilization some.

That said going light with some lightPBX thing on some little box ....

Re: Linux Kernels with GMA500 Support

Posted: Thu Oct 10, 2013 11:50 am
by roobarb!
BuZz wrote:
pkirchhofer wrote:Hi there,

I also encountered this error. The kernel audio interface did change somewhat. To fix this I bisected the kernel source and came up with a working patch:
I was looking through your patches for 3.10 and saw https://github.com/pkirchhofer/android- ... 1a67a87ec9

Apart from that small change to switch the pin, does the sound work perfectly ? I had started porting the older audio patches over to kernel 3.11 alsa, not working yet, but the previous joggler alsa patches modify a bunch of codec parameters and has different pin ids/configs from other models. Wish I understood the hardware and hda codecs better !
I've been using these patches for 3.10.15 just now... unfortunately, that pin change alone doesn't sort out the switching from internal speakers to headphones. The sound works perfectly (no crackling, weird noises, etc) but when headphones are plugged in, it just continues to play out of the internal speakers. No audio on the cans at all.

I'll have to take another look and follow your lead in porting the audio patches. Everything else is up and running - GMA500 kernel drivers are working.

Re: Linux Kernel Talk

Posted: Fri Oct 11, 2013 12:50 am
by chris
When will alpha testing of 3.10 begin? :D

Re: Linux Kernel Talk

Posted: Fri Oct 11, 2013 9:23 am
by roobarb!
chris wrote:When will alpha testing of 3.10 begin? :D
You can have a couple of .dpkgs now if you don't mind the audio being bust! ;)

Re: Linux Kernels with GMA500 Support

Posted: Fri Oct 11, 2013 11:55 am
by roobarb!
Hmm. Still no luck with the audio, so I'm building a version with just the I2C and backlight patches, just to see where we're up to with things. Updated the patches to play nice with 3.10 too:

http://birdslikewires.co.uk/download/jo ... rnel/3.10/

Let's see what happens. :)

Re: Linux Kernel Talk

Posted: Fri Oct 11, 2013 4:24 pm
by BuZz
I had thought I had missed something, as it didn't switch for me with that small hack either. I have ported across / rewritten the old audio patch to the new alsa, using the new structures etc. headphone switching not sorted yet - but I will revisit it again (I lack the low level understanding of the hda codec etc). As soon as I have something that works a little better ill post my patches. What we really need is to get a joggler over to an Alsa developer who has the time to look at it and implement properly

Re: Linux Kernel Talk

Posted: Fri Oct 11, 2013 4:48 pm
by roobarb!
BuZz wrote:What we really need is to get a joggler over to an Alsa developer who has the time to look at it and implement properly
Anyone know any tame Alsa developers? :)

Re: Linux Kernels with GMA500 Support

Posted: Tue Oct 15, 2013 3:52 pm
by roobarb!
Well, still had no luck with the audio. It plays fine from the internal speakers, but still nothing from the headphone socket.

I'm now knocking together a kernel that's made straight from pkirchhofer's github to see if it works from there and discover if I'm doing anything ridiculous.

Re: Linux Kernel Talk

Posted: Wed Oct 16, 2013 2:50 am
by chris
roobarb! wrote:
chris wrote:When will alpha testing of 3.10 begin? :D
You can have a couple of .dpkgs now if you don't mind the audio being bust! ;)
Sure. Is the issue headphone switching? I'm just trying to see if 3.10 works with my DAC.

Re: Linux Kernel Talk

Posted: Wed Oct 16, 2013 11:33 am
by roobarb!
chris wrote:
roobarb! wrote:
chris wrote:When will alpha testing of 3.10 begin? :D
You can have a couple of .dpkgs now if you don't mind the audio being bust! ;)
Sure. Is the issue headphone switching? I'm just trying to see if 3.10 works with my DAC.
Yes, headphone switching is broken... in which case, seeing as you don't need it, here you go!

http://birdslikewires.co.uk/download/jo ... ncomplete/

I don't know the USB system in use on your device, so if you could find out and let me know, then if this kernel doesn't work I'll make sure to compile in the right drivers in the next one. You'll probably want to blacklist the gma500_gfx driver as well; it works, but if you're updating the kernel on a system with EMGD then there's no point in using the kernel driver.

I'll probably merge this thread with the other Linux kernel thread - I don't know why I created a second one. Silly me. MERGED!

Re: Linux Kernel Talk

Posted: Wed Oct 16, 2013 4:05 pm
by chris
I did not fix it :cry: . Installed the kernel and it rebooted fine. Selected external interface and relaunched SqpOS and it flashes back and forth between the squeezeplay and openpeak screens.

My DAC uses a cmedia cm6631 familly chips.

I have ArchLinux ARM running on a pogoplug. Initial install has the 3.1 kernel and I got nothing from the DAC but after updating to 3.10 it works fine.

Sorry, I wish I was more knowledgable to actually be able to properly troubleshoot this myself. :oops:

Re: Linux Kernel Talk

Posted: Thu Oct 17, 2013 11:15 am
by roobarb!
chris wrote:I did not fix it :cry: .
It's probably just that the new driver for your device isn't selected for compilation into the kernel - I'll do some research to see what's expected and run another one.

Re: Linux Kernel Talk

Posted: Mon Oct 21, 2013 11:17 am
by roobarb!
chris wrote:My DAC uses a cmedia cm6631 familly chips.
What was your DAC called again? I'm sure I saw it posted somewhere, but I can't find it now...

Re: Linux Kernels with GMA500 Support

Posted: Tue Oct 22, 2013 2:13 am
by chris
Schiit Modi.

I use a hifimediy with the joggler right now and the modi with my pogoplug, so this isn't of much importance. I'd just rather use the modi with the joggler and my "good" stereo.

Re: Linux Kernels with GMA500 Support

Posted: Tue Oct 22, 2013 2:38 pm
by asantaga
nice

Re: Linux Kernels with GMA500 Support

Posted: Wed Nov 06, 2013 5:17 pm
by roobarb!
No magic fix in 3.12, I'm afraid!

Re: Linux Kernels with GMA500 Support

Posted: Wed Dec 04, 2013 5:30 pm
by roobarb!
After a lot of messing around, I have found something vaguely useful which allows for audio output on either the internal speakers or the headphone jack output, without having to do any audio patching to the 3.12 kernel.

Currently, the 3.12 kernel will output on the internal speakers only and ignores anything happening on the headphone jack. Now, in /etc/modprobe.d/joggler.conf we already make some little tweaks to the ALSA configuration. The line in question is this:

Code: Select all

# Audio fixup
options snd-hda-intel position_fix=1 bdl_pos_adj=64
If we append to this 'model=ref' and reboot (or sudo alsa force-reload):

Code: Select all

# Audio fixup
options snd-hda-intel position_fix=1 bdl_pos_adj=64 model=ref
All of a sudden, we have audio from the headphone jack and not the internal speakers. Remove 'model=ref', sudo alsa force-reload - we're back to the internal speakers again.

There are a number of such settings available which alter the pin configuration on STAC9202 (and many other) devices, and they are all set in sound/pci/hda/patch_sigmatel.c of the kernel source. In theory, it might be possible to adjust these pin settings so that 0x07 is used for detecting the presence a headphone jack (which, I am led to believe, is the right pin for the Joggler but not for most other devices, which seem to use 0x0a - see here). However, that's not something I have time to fight with right now.

Also, we can peek at everything that the card is set to in /sys/class/sound/hwC0D0. Interestingly, in there are 'driver_pin_configs', 'init_pin_configs' and 'user_pin_configs'. Now if someone could tell me what all this means:

Code: Select all

# cat /sys/class/sound/hwC0D0/init_pin_configs 
0x07 0x01c5e150
0x08 0x01451130
0x0a 0x0221401f
0x0b 0x02a19020
0x0c 0x01813021
0x0d 0x01014010
0x10 0x500701f0
0x11 0x90330122
0x15 0x50a001f1
We might be on the road to somewhere...

Re: Linux Kernels with GMA500 Support

Posted: Thu Dec 05, 2013 2:07 pm
by pkirchhofer
Ah, well, the sound system is a tricky beast ...
It's been a while since I hacked in the linux kernel, mainly to get Android working on the Joggler (the results are btw. available here: Android 4.0 for the O2 Joggler).

If I remember correctly I did the following steps to get the internal speaker / headphones switching to work:
  • Apply HDA: Fix Joggler sound switching patch to a 3.10 kernel
  • Enable CONFIG_SND_HDA_PATCH_LOADER in kernel config
  • Copy the joggler-sound.patch file to /lib/firmware
  • Set the corresponding kernel parameter snd_hda_intel.patch=joggler-sound.patch (or add it to /etc/modprobe.d/joggler.conf)
I hope that works :P