Home Page > IRC Logs > zipit > Jan 11, 2015
irc.freenode.net #zipit for Jan 11, 2015
Jan 10 2015 « bottom » Jan 12 2015
pick another date | search
|I didn't try 3.18 yet on z2
anarsoul|2: still can't boot from mmc. I get this error while booting, perhaps it's related: pxa2xx-mci pxa2xx-mci.0: unable to request rx dma channel
maybe I'm missing something in config?
|you disabled mmp-dma driver
|in kernel config
|wait a min, I'll give you mine
I'm using an old config
|diff it with old one to find out what's missing
|you need CONFIG_MMP_PDMA
|CONFIG_SND_DMAENGINE_PCM to get sound working
|and CONFIG_SPI_PXA2XX_DMA for SPI
|btw, I also suggest to try SLOB allocator on z2
|it should give some extra memory
|(several hundreds of kilobytes)
|(if audio input is working I've another idea for z2 usage :))
|with iwmmxt it should be powerful enough to become a simple guitar effect processor
|I've participated in gnuitar development back in 2006, and I know its code enough to make ncurses interface
so we can play guitar with a zipit?
like electric guitar?
so you can plug the guitar into the zipit and make cool sounds :)
it boots finally.. now to test mic
|arecord | aplay should produce something if everything's ok with controls in alsamixer
so I need to an electric guitar too?
bah.. still nothing
|you don't have one yet?
no, but I have a reason to get one now :)
I have been working on my singing skills for years
but electric guitar in the shower would be a bad plan
so I will have to stick to the air guitar
|nah, not as interesting
been sifting through the logs and gpsfan originally got mic input working. looks like all you need is a condenser mic and the rest of the circuit is built into the zipit
|could be true for side connector (one near to headphones input)
the micbias circuit provides power to the mic but, the micbias adc has to be turned on. i'm not sure if our driver is doing this (or which alsa mixer option)
both mic inputs have a micbias circuit: https://mozzwald.com/public/images/zipit/z2_mic_traces.jpg
|mozzwald: it's not my driver, Marex is the author
actually it's gpsfans driver and marex modified/clened it up I think. I'm just trying to figure out how to get it working. maybe I should start with the internal port, then worry about the external
found the missing bit. had to add this to line 723 in sound/soc/codecs/wm8750.c: snd_soc_update_bits(codec, WM8750_ADCTL3, 0x0180, 0x0180);
still need to tweak the audio input though
sound input is delayed about 1 second
|should be controlled with "Route" control
found the fix from gpsfan's original driver that was stashed in the yahoo groups. https://mozzwald.com/zipit/Z2-rec_gpsfan_audio_fixes.tar.bz2
|Out 3 Mux
|let me check it with qemu...
|mozzwald: there's "Out 3 Mux" control in alsamixer, please check if without your change you can get sound from mic by changing this control
anarsoul|2: I will try again without my change, but I did fiddle it. it only gives me options for vref, rout1+vol, monoout, and rout1
|yep, and what option do you need?
|where I can get wm8750 datasheet?
[15:14] <mozzwald> http://www.wolfsonmicro.com/media/76434/WM8750BL.pdf
|well, for out3 all possible combinations are implemented
I get nothing without the change
|ADCTL3, and I'm looking for ADCTL2 in the code...
|yep, those bits aren't implemented
here's gpsfan talking about it: https://mozzwald.com/irclog/zipit/2009/01/23#12:36
..if that's the same register
|so what's the function of this ADCLRM pin?
datasheet pg43 says it configures ADCLRC
|I guess it's ADC clock input, since codec is in slave mode...
can that be set from sound/soc/pxa/z2.c instead of the wm8750.c?
|no idea yet
|try to change .dai_fmt field in z2_dai in z2.c
|replace SND_SOC_DAIFMT_CBS_CFS with SND_SOC_DAIFMT_CBM_CFM
|may break sound at all...
yeah, no sound output
|so wm8750 is in mixed mode on z2
|look like they forgot to wire ADCLRC pin
|ok, so we need some workaround in wm8750.c
is the line I added enough?
|well, it is a workaround, but it's not acceptable in upstream. It should be configurable, so others platform aren't broken
|we could introduce platform data for wm8750 codec, but I'm not sure it'll be accepted either...
|I'll ask alsa devs tomorrow
note to self ask slug what when/if he recompiles the kernel to enable fuse suport so one can browse the zipit files over sshfs as a mount point on your pc. also you can mount you pc fs on the zipit! very handy
mozzwald, how to mount openwrt img from flashstock? mount dose not do the job
[21:59] <arossdotme> same commands as the overlayfs img?
[22:13] <slug_> openwrt image is a jffs2
[22:14] <slug_> as I recall you need to set a loopback device
[22:14] <slug_> then mount the loopback
[22:16] <slug_> so I guess that is the same as the overlay, just that is a jffs instead of ext2
pick another date | search
Jan 10 2015 « top » Jan 12 2015