<mripard>
and you have the same thing for the mux the line below
<mripard>
that might explain ;)
<wens>
yeah, i think i was half way through adding controls, then got interrupted
Mr__Anderson has joined #linux-sunxi
Mr__Anderson has quit [Quit: Leaving.]
hansg has joined #linux-sunxi
hansg has quit [Client Quit]
IgorPec has quit [Ping timeout: 272 seconds]
dearfibonacci_ has joined #linux-sunxi
dearfibonacci has quit [Ping timeout: 258 seconds]
dearfibonacci_ has quit [Quit: Leaving]
dearfibonacci has joined #linux-sunxi
camh has quit [Ping timeout: 264 seconds]
camh has joined #linux-sunxi
leio has quit [Quit: No Ping reply in 180 seconds.]
leio has joined #linux-sunxi
<wens>
only issue left is that the "source switch" controls don't flip for both channels at the same time
<wens>
that and the board has left/right wired in reverse :(
matthias_bgg has joined #linux-sunxi
paulk-nyan-big has joined #linux-sunxi
apritzel has joined #linux-sunxi
<wens>
damn, found a bug in dapm :(
apritzel has quit [Ping timeout: 244 seconds]
boob-wrt has joined #linux-sunxi
yann|work has quit [Ping timeout: 264 seconds]
ricardocrudo has joined #linux-sunxi
<boob-wrt>
wens or mripard : do you know if there is an other way that dapm to configure alsa control? Because in header i don't find a way to execute a user function to get or set value in small memory (8bit x 25)
<boob-wrt>
wens : i pick up your pll2 clk on my H3, better than my hacked pll2 but always issue in dma desc. I hope it's related to miss configure analog part. i have i/o error when i "alsactl init 0" and no mixer available
<boob-wrt>
it seem this function "SOC_SINGLE_BOOL_EXT("Audio lineout", 0, codec_get_lineout, codec_set_lineout)," is available in mainline kernel and in some codec driver...it's can run external function but how configure widgets and routes? :)
<wens>
the header is the wrong place to look
<wens>
look at how other drivers are written
<wens>
unfortunately there is no real documentation for ASoC
<boob-wrt>
i just look in soc-dapm.h to see if other way exist
<boob-wrt>
yes anyway thanks for sharing your progress it help a lot
<wens>
the _E variants are what seem to allow you to specify an event handler
<wens>
not sure how it works the other way around, if you want something like jack detection
<wens>
mripard: codekipper: my branch is updated to the first proper working version
<boob-wrt>
yes i see something to enable HP to activate gpio
<boob-wrt>
i will try to progress with this handler event, it 's look like a good idea
<boob-wrt>
if there is an easy way to pass data (vol, gain) in handler
vagrantc has joined #linux-sunxi
<wens>
boob-wrt: why would you pass (vol, gain)?
<wens>
you sound like you are hacking the analog bits in with one event handler
OverCR has joined #linux-sunxi
<boob-wrt>
because it's in little memory and it 's not directly a register available from regmap
<wens>
you can write a custom regmap for it
<wens>
then assign the regmap to the codec
<wens>
it is much cleaner this way
<boob-wrt>
:) out of my knowlege!
<wens>
learn :)
<boob-wrt>
i discover regmap 2 day ago :)
<wens>
for a basic regmap you only need to define read/write functions, and some other configs, like the register range
<wens>
see the regmap setup bits in drivers/bus/sunxi-rsb.c
<MoeIcenowy>
mripard: so now should we introduce new clock drivers for old SoCs with clock-ng?
<mripard>
and will be part of 4.8
<mripard>
MoeIcenowy: only lists the new clocks you want in the soc file
<mripard>
call of_iomap instead of of_io_request_and map
<mripard>
and that's it
<luoyi>
mripard: and does the i2s parent clock patch has been merged in 4.7 ?
<wens>
mripard: or we could change the old clk driver to use of_iomap (in places where we had of_io_request_and_map)
<mripard>
wens: yeah, I don't know, that would probably impact all SoCs
<mripard>
and I don't really want that
<MoeIcenowy>
mripard: is r16 just a rebrand of a33?
<mripard>
yes
OverCR1 has quit [Ping timeout: 244 seconds]
OverCR has joined #linux-sunxi
IgorPec has joined #linux-sunxi
<tuxillo>
hi
vagrantc has quit [Quit: leaving]
<wens>
codekipper: you are using lineout?
paulk-nyan-big has quit [Read error: Connection reset by peer]
cptG has joined #linux-sunxi
<codekipper>
wens: I believe so....justed changed the routing in your code to add it
cptG_ has quit [Ping timeout: 260 seconds]
<wens>
according to the reference design, lineout would have an external speaker amp, and 2 gpios to control it (one is shutdown , the other is mute)
<codekipper>
ok...let me look at the i7 fex.
<wens>
though it seems to work if you just leave it floating
diego_r has quit [Ping timeout: 244 seconds]
diego_r has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
<boob-wrt>
wens : can you confirm that your regmap tip is something like : make a bus with write/read and create an "scodec->regmap_analog_bus = regmap_init(&pdev->dev, bus, &pdev->dev, &sun8i_codec_regmap_analog_config)" or something in this direction?
DullTube has joined #linux-sunxi
<wens>
yeah
<wens>
but you would probably do that in the prcm driver, then export it as a syscon
<boob-wrt>
good point to know :)
vagrantc has joined #linux-sunxi
boob-wrt has quit [Quit: Page closed]
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]