<sunxi_fan>
here the "bitmask" 0x3 indeed show we are tweaking two (2) different a20 registers (they are the same in the A10 BTW):
<sunxi_fan>
#define SUNXI_DAC_ACTL_RDACRMIXS (14)
<sunxi_fan>
#define SUNXI_DAC_ACTL_LDACRMIXS (13)
<sunxi_fan>
..and the last one LDACRMIXS is putting the LEFT channel out of the right DAC (mixed together with the right one, i suppose.. if it's not disabled on the other control..)
iamfrankenstein1 has quit [Ping timeout: 264 seconds]
<sunxi_fan>
let me tell you that i printed the register with regmap_read() at each play_start() callback so to check the real value, and indeed it was something similar but i need to investigate more this issue (because my earphone show the mixing on the left earphone only, and here it seems like you eventually get L+R on the right codec only.. ) i don't know if in A10 cubie L & R are reversed.. i plan to test on another Olimex A20 board i hav
<sunxi_fan>
anyway i think a single call tweaking two registers deserves at least a remark in the source code..
iamfrankenstein has quit [Ping timeout: 240 seconds]
<sunxi_fan>
:-) the same goes for the Direct/Mixed path selection in:
<sunxi_fan>
where the code tweaks two registers in one shot..
<sunxi_fan>
#define SUNXI_DAC_ACTL_DACPAS (8)
<sunxi_fan>
#define SUNXI_DAC_ACTL_MIXPAS (7)
iamfrankenstein has joined #linux-sunxi
<mripard>
sunxi_fan: how is that wrong ?
domidumont has quit [Ping timeout: 246 seconds]
domidumont has joined #linux-sunxi
naobsd has quit [Quit: naobsd]
iamfrankenstein1 has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 252 seconds]
physis_ has quit [Ping timeout: 250 seconds]
physis has joined #linux-sunxi
<sunxi_fan>
sorry i'f i'm explaining badly. i'm not saying it's "wrong", just not very clear and IMHHHO this kind of access to two registers in a shot would deserves a remark in the code. just an opinion.
dev1990 has joined #linux-sunxi
physis has quit [Read error: Connection reset by peer]
physis has joined #linux-sunxi
Akagi201 has quit [Remote host closed the connection]
simosx has quit [Quit: Leaving]
<sunxi_fan>
i found the source of the single channel audio.. PEBKAC!! i didn't plug the earphone jack completely, so i was getting back on the earphone just one channel on the wrong ear.. on the Olimex A20 SOM EVB, the jack input was more smooth so i saw it was getting fully inside and working ok. my bad! :-)
lemonzest has joined #linux-sunxi
<mripard>
sunxi_fan: it's not two registers, it's two bits of a register
<mripard>
both controlling the input of the same ASoC widget
<mripard>
so no, it doesn't need anything
<mripard>
because it just makes sense
adj_ has quit [Quit: Leaving]
naobsd has joined #linux-sunxi
reinforce has joined #linux-sunxi
<Turl>
sunxi_fan: :)
Akagi201 has joined #linux-sunxi
naobsd has quit [Quit: naobsd]
<sunxi_fan>
mripard: if you are ok, i'm ok.
<sunxi_fan>
audio codec works good enough for my purpose and i think i've got at least the basics for turning to my i2s test.. thanx for all the help
f15h has joined #linux-sunxi
kaspter has joined #linux-sunxi
dantob has joined #linux-sunxi
premoboss has joined #linux-sunxi
f15h has quit [Remote host closed the connection]
flyhorse_SpPwy has joined #linux-sunxi
flyhorse has quit [Ping timeout: 265 seconds]
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #linux-sunxi
jemk has joined #linux-sunxi
Akagi201 has quit [Remote host closed the connection]