Umeaboy | Hi! | 00:32 |
---|---|---|
Umeaboy | Why doesn't the HADK mention anything about building for aarch64 based devices? The mer chroot tarball should be different then. | 00:32 |
MeowDude | There is a 2.1.4.13 build for maguro???? I replied to the dev on xda but *QUE?* The only reason I don't grab a Galaxy nexus is because A: battery and B: Sailfish OS support is garbage | 03:06 |
*** Nokius_ is now known as Nokius | 05:24 | |
*** mog- is now known as mog | 10:01 | |
steeeeve | hey, how to implement audio routing from http://events17.linuxfoundation.org/sites/events/files/slides/elc_telephony_piirainen_0.pdf . It has a function that sets a parameter to route. How do i implement it for my device? Do i have to add a config with my parameter or what? | 10:35 |
r0kk3rz | steeeeve: it would be better to look at the current droid module code | 10:40 |
r0kk3rz | rather than some ancient slides | 10:40 |
r0kk3rz | what parameter are you trying to set? and on what? | 10:42 |
steeeeve | realcall=true | 10:43 |
steeeeve | https://github.com/DeadSquirrel01/android_device_samsung_a5-common/blob/cm-14.1/ril/SamsungA5RIL.java . in ril class it's ez, in pulseaudio i dont know how to set it | 10:44 |
r0kk3rz | at a guess you'd want to do a 'droid.parameter.realcall=true' in xpolicy.conf somewhere | 10:51 |
r0kk3rz | https://github.com/mer-hybris/pulseaudio-modules-droid/blob/master/src/droid/droid-sink.c#L111 | 10:51 |
r0kk3rz | https://github.com/mer-hybris/pulseaudio-modules-droid/blob/master/src/droid/droid-sink.c#L818 | 10:53 |
r0kk3rz | jusa probably knows how to feed that part | 10:53 |
steeeeve | oh yes | 10:56 |
steeeeve | maybe | 10:56 |
jusa | r0kk3rz: steeeeve: I'll check that out a bit later | 10:58 |
steeeeve | sure | 11:00 |
steeeeve | im at school, i have to go now :D | 11:00 |
r0kk3rz | thanks jusa | 11:00 |
steeeeve | (thanks) | 11:00 |
r0kk3rz | ah i see it needs to be toggled when theres an actual call | 11:07 |
r0kk3rz | https://github.com/DeadSquirrel01/android_device_samsung_a5-common/blob/cm-14.1/ril/SamsungA5RIL.java#L170-L196 | 11:08 |
*** lynxis_ is now known as lynxis | 11:27 | |
steeeve | r0kk3rz: yes, it's toggled | 12:09 |
jusa | steeeve: this probably needs some changes to implementation, but as of now you can test with following: | 12:23 |
jusa | (moment :)) | 12:25 |
steeeve | *suspance* | 12:25 |
jusa | make a call, then | 12:27 |
jusa | pacmd update-sink-proplist sink.primary droid.parameter.realcall=on | 12:27 |
jusa | pactl set-sink-port sink.primary output-parking | 12:28 |
jusa | pactl set-sink-port sink.primary output-earpiece | 12:28 |
steeeve | Do i have to change output-parking and output-earpiece with mines? | 12:28 |
jusa | output-parking should stay that, but output-earpiece can be output-speaker or whatever | 12:29 |
steeeve | The one in mixer_paths right? | 12:29 |
jusa | and if once doesn't cut it, repeate output-parking & output-foo , as the java code for some reason calls the routing twice | 12:29 |
steeeve | Hm, let's try! | 12:30 |
jusa | output-parking is there just because of how pulseaudio works, pulseaudio port change to already active port is no-op, so the parking port is there just to avoid changing upstream pulseaudio code | 12:30 |
steeeve | Yaya | 12:31 |
jusa | you can see the pulseaudio port names with pactl list sinks | 12:33 |
steeeve | ok, got it | 12:34 |
steeeve | jusa: i dont get audio on calls | 12:36 |
steeeve | i tried running the 3 commands 2 times | 12:36 |
jusa | ok.. you already have audioflingerglue running ? | 12:36 |
steeeve | command plz? | 12:37 |
steeeve | ps -aux|grep audio shows nothing about that | 12:37 |
r0kk3rz[m] | look for miniaf | 12:39 |
steeeve | then yes, it's running:miniafservice | 12:39 |
r0kk3rz[m] | And its something you need to build yourself, details are in the hadk | 12:40 |
steeeve | i built them | 12:40 |
steeeve | it must be running | 12:40 |
jusa | steeeve: could you take logcat output of making a call and calling those command line calls | 12:42 |
steeeve | sure | 12:42 |
jusa | steeeve: also output of pactl list | 12:42 |
steeeve | https://paste.pound-python.org/show/brnIKre8WWzCBz38qfDF/ | 12:44 |
steeeve | btw i have an amplifier (tfa9895), too | 12:44 |
jusa | hm it actually might be that the realcall needs to be set to the hw module instead of output stream.. you are using some cm as base right? could you find the audio adaptation repo | 12:47 |
steeeve | im using stock hal | 12:47 |
steeeve | because of amplifier | 12:48 |
steeeve | the ril class is what i need to make audio on calls working | 12:48 |
jusa | please elaborate, what amplifier, how is it connected etc? :) | 12:50 |
steeeve | tfa9895, which is connected inside the device | 12:50 |
steeeve | thats all i know | 12:50 |
ghosalmartin | it seems my kernel is just all bad :P | 12:51 |
steeeve | and there's a lib called tfa9895.so which has some stuff needed by HAL | 12:51 |
jusa | hrm.. doesn't tell much.. but we could try calling hw module set_parameters first, a moment, I'll provide a patch | 12:54 |
steeeve | Woho :P | 12:56 |
jusa | steeeve: https://paste.pound-python.org/show/GGqs2ce5J4nRzVDrjQyc/ | 12:57 |
jusa | apply that, and after installed repeat the sequence I mentioned above | 12:58 |
jusa | argh, sorry, | 12:58 |
steeeve | Ok, let's see | 12:58 |
jusa | it's a bit wrong, moment.. | 12:58 |
jusa | steeeve: this one: https://paste.pound-python.org/show/4JLqVsMtJR54gg8TbQQh/ | 12:59 |
steeeve | (By the way that parameter is isnide audio hal (cbecked with strings), so, that might be the solution) | 12:59 |
steeeve | Kk | 13:00 |
jusa | also experiment with output-speaker & output-earpiece when switching back and forth, I have no idea if that has any signifigance but it just might | 13:01 |
steeeve | Ok | 13:04 |
steeeve | Im compiling | 13:05 |
ghosalmartin | if a kernel panics so fast that ramoops arent even there is there a few obvious things to check? | 13:19 |
steeeve | jusa: working woowowowow | 13:20 |
jusa | steeeve: cool :) | 13:20 |
steeeve | ghosalmarting: ramoops gets all panic | 13:20 |
jusa | is the realcall something that is needed always, or for some specific use case? | 13:20 |
steeeve | no, only during calls | 13:20 |
jusa | yep, but for calls always with this specific samsung device ? | 13:21 |
jusa | or just specific calls? | 13:21 |
jusa | if it is always it's a bit simpler to implement | 13:21 |
steeeve | all calls | 13:21 |
jusa | ok | 13:21 |
jusa | I'll figure out some way to enable that from configuration and I'll let you know when a PR is ready (might take a couple of days) | 13:22 |
steeeve | yeah, ping me, as long as irccloud works i should be online :D | 13:23 |
steeeve | and thanks :) | 13:23 |
ghosalmartin | steeeve, doesnt seem to :( | 13:24 |
steeeve | Yay, but i have 1 week free :P | 13:27 |
r0kk3rz | woo it works :) | 14:15 |
r0kk3rz | steeeve: do you know if other phones do things like this? | 14:16 |
steeeve | r0kk3rz: all samsung msm8916 devices that use stock audio hal | 14:26 |
r0kk3rz | yeah right | 14:27 |
ghosalmartin | hmm maybe a rebase vs the latest upstream helped my issue, now I can atleast build a image that crashes due to sailfishos changes :P | 16:05 |
ghosalmartin | not sure what broke it though it was broken when the commit here https://github.com/ghosalmartin/android_kernel_xiaomi_msm8998/commits/hybris-15.1 was 7th of may | 16:05 |
mal | ghosalmartin: you used my latest code in github, I rebased those last week | 16:12 |
mal | ? | 16:12 |
ghosalmartin | mal: nah not yet, still tryna get resemblance of a booting kernel | 16:13 |
ghosalmartin | so far the minute I apply any of hybris-boots configs it just ends in a boot loops with no logs | 16:14 |
r0kk3rz | ghosalmartin: which are you enabling? | 16:17 |
ghosalmartin | r0kk3rz, these https://github.com/ghosalmartin/android_kernel_xiaomi_msm8998/commit/cfd5414921370723c9f4d8dff42dc7dcd6333cb4 | 16:17 |
ghosalmartin | oh and disabling CONFIG_DUMMY | 16:17 |
ghosalmartin | am about to either prove or disprove that statement with this latest build | 16:18 |
ghosalmartin | if this build works then its something in those configs thats causing the problem / a dirty build issue | 16:18 |
r0kk3rz | yeah thats a lot of trial and error | 16:19 |
r0kk3rz | and even if you found the breaking flag, it wouldnt tell you why | 16:19 |
ghosalmartin | for now it would be better than nothing :P | 16:20 |
r0kk3rz | aye | 16:20 |
ghosalmartin | plus it wasnt all a wasted effort, I managed to learn some things | 16:20 |
r0kk3rz | i wonder if unwinding the changes since 14.1 would be a better idea | 16:21 |
ghosalmartin | yep tis defo the hybris changes am making | 16:21 |
ghosalmartin | and now I have decent ramoops from hybris-boot | 16:23 |
ghosalmartin | take it this is at a script init[1]: unhandled level 2 translation fault (11) at 0x000002e0, esr 0x92000046 | 16:24 |
ghosalmartin | at the init-script | 16:24 |
ghosalmartin | r0kk3rz, does the init script panic if configs aren't fulfilled? | 16:25 |
r0kk3rz | not sure | 16:26 |
r0kk3rz | got the logs? | 16:26 |
ghosalmartin | yeah | 16:27 |
ghosalmartin | actually lemme check | 16:27 |
ghosalmartin | https://pastebin.com/ZfwxtY1j | 16:29 |
ghosalmartin | well atleast its a positive breakthrough today :P | 16:29 |
r0kk3rz | enable proc fs | 16:33 |
r0kk3rz | and devtmpfs | 16:33 |
ghosalmartin | am about to | 16:33 |
ghosalmartin | i disabled CONFIG_DUMMY with no issues | 16:33 |
r0kk3rz | well mounting those things is the second thing it does | 16:34 |
r0kk3rz | so maybe its a bit unhappy without them | 16:34 |
ghosalmartin | r0kk3rz, will those memory addresses related to anything like a line number in the file? | 16:35 |
r0kk3rz | s/it/the init script | 16:35 |
r0kk3rz | nah i dont think so | 16:35 |
ghosalmartin | ah okays | 16:36 |
ghosalmartin | I know it does for kernel traces which is handy i guess | 16:36 |
r0kk3rz | ive not really looked into it tbh | 16:38 |
ghosalmartin | r0kk3rz, still no dice with those two, but the kernel isnt breaking like before so I guess Ill keep enabling flags. this could be an issue with busybox | 16:44 |
r0kk3rz[m] | Yeah tbh i think most of those listed are needed | 16:46 |
ghosalmartin | well took a while but it was CONFIG_VT that was breaking the device | 17:18 |
ghosalmartin | mal: how important is CONFIG_VT? | 17:19 |
mal | ghosalmartin: no idea | 17:21 |
ghosalmartin | according to docs you need a keyboard and display for it so not very important I bet :P | 17:22 |
ghosalmartin | You need at least one virtual terminal device in order to make use of your keyboard and monitor. Therefore, only people configuring an embedded system would want to say N here in order to save some memory; the only way to log into such a system is then via a serial or network connection. | 17:22 |
ghosalmartin | although network connection hmm missed that bit | 17:22 |
r0kk3rz[m] | Really? I wonder why... | 17:28 |
ghosalmartin | r0kk3rz[m], time to look through those 200ish commits and see if any changes have been made to vt.h | 17:28 |
r0kk3rz[m] | Indeed | 17:29 |
*** minimec_ is now known as minimec | 17:32 | |
steeeve | To make bluetooth working what i have to do except for adding mer-vheck-config configs? | 18:39 |
r0kk3rz | that depends greatly on what bt chip you have | 18:43 |
steeeve | Msm8916 | 18:44 |
r0kk3rz | thats not a bt chip | 18:45 |
steeeve | Rip | 18:45 |
r0kk3rz | steeeve: where are your repos? | 18:46 |
steeeve | Github.com/marco01 | 18:46 |
steeeve | Gitlab.com* | 18:46 |
steeeve | :P | 18:46 |
r0kk3rz | you didnt fork the device repos there? | 18:47 |
steeeve | I did | 18:48 |
steeeve | You mean android repos like kernel and device tree? | 18:48 |
steeeve | Or sailfish configs? | 18:48 |
r0kk3rz | android repos | 18:48 |
steeeve | Github.com/deadsquirrel01 | 18:49 |
steeeve | Too many accounts :P | 18:49 |
ghosalmartin | is it a ROME chipset? | 18:52 |
mal | steeeve: also in the future please use full urls, much easier to open the links :) | 18:52 |
r0kk3rz | i looks like it might be a ROME chip | 18:52 |
ghosalmartin | aww man :( i spent many a long night on ROME chipsets without much luck | 18:53 |
r0kk3rz | its hard to say, looks like it automagically configs it based upon the chipset... | 18:54 |
r0kk3rz | https://github.com/DeadSquirrel01/android_device_samsung_a5-common/blob/cm-14.1/rootdir/etc/init.qcom.bt.sh | 18:54 |
ghosalmartin | ahh bullhead never had that script, but the lovely chiron does | 18:55 |
ghosalmartin | so hopefully that'll be an easier time with its bluetooth | 18:56 |
mal | steeeve: run "getprop qcom.bluetooth.soc" on your device | 18:56 |
steeeve | smd :D | 18:57 |
steeeve | Like hcismd woh | 18:57 |
mal | steeeve: have you tried the usual bt script already? | 18:57 |
r0kk3rz | yeah the stuff in the faq should be all you need | 18:58 |
steeeve | This: https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/usr/bin/droid/droid-hcismd-up.sh ? | 18:58 |
mal | steeeve: this has the generic instructions https://wiki.merproject.org/wiki/Adaptations/faq-hadk#Bluetooth_for_Qualcomm_devices | 18:58 |
steeeve | Ah | 18:59 |
mal | steeeve: yes, that is the script, it also needs the service | 18:59 |
steeeve | Ok, i have to add it :/ | 18:59 |
mal | steeeve: try on device first, just copy the script and the service and add the symlink to start the service | 19:00 |
steeeve | Ah sure | 19:00 |
steeeve | And thanks for the info ^^ | 19:00 |
stephg | evening | 19:08 |
steeeve | And got the bluetooth wowow | 19:10 |
mal | steeeve: that's why you read the faq :) | 19:10 |
steeeve | I read it eh | 19:10 |
steeeve | I built hcismd stuff before with the backports ;) | 19:10 |
steeeve | I just needed the service | 19:11 |
mal | ok, but forgot the actual bluetooth fix | 19:11 |
steeeve | Just a lil service meh | 19:11 |
mal | yes, but a very important one | 19:11 |
steeeve | Small but big yeees | 19:12 |
mal | what issues do you still have with your device? | 19:12 |
steeeve | None when i'll get audio routing config | 19:13 |
steeeve | After that ican publish the zip D: | 19:13 |
mal | does you device have fm radio? | 19:14 |
steeeve | Ah yes | 19:14 |
steeeve | I havent tested it, yet | 19:14 |
mal | steeeve: does headphone connector work? | 19:16 |
steeeve | It needed some stuff like in audio calls, but at least it's in hardware/qcom/fmradio and no one cares of fm radio, so, if it doesnt work, yes, i can try to fix it but it has the lowest priority ever | 19:17 |
steeeve | Yes headphones work | 19:17 |
mal | steeeve: usually fm radio works if it uses that one qcom driver | 19:18 |
steeeve | But i will do a mass csd test soon, just to see general status | 19:18 |
steeeve | mal: it's something related to audio, but i can fix it myself i think | 19:19 |
mal | just try the normal middleware first, some devices need a bit patching of the iris fm radio driver | 19:19 |
r0kk3rz | fully working samsung port, thats rare | 19:26 |
steeeve | Yeah, just thanks to you all that helped me. Without you just few stuff was working :D | 19:32 |
steeeve | Now i will try to apply fm patch to see if fm audio works (fm itself works), but if it doesnt, amen | 19:34 |
Thaodan | Is there a way to strip out prebuild binaries from syncing when downloading the android sources? | 20:14 |
mal | Thaodan: which ones do you mean in this case? | 20:17 |
Thaodan | folders like prebuits which contains certain gb of software is not used | 20:21 |
Thaodan | something like this https://paste.kde.org/punmhjarf mal | 20:37 |
mal | some of those can be removed, just edit the manifest | 20:45 |
Mister_Magister | mal: how can i enable flash on video? | 21:01 |
mal | Mister_Magister: it should work, there should be an option for that in video recording mode | 21:03 |
Mister_Magister | there is no | 21:03 |
Mister_Magister | i think i need to add it to gst-droid conf | 21:03 |
Mister_Magister | or jolla-camera conf | 21:04 |
mal | jolla-camera-hw.txt, change the flashValues in primary camera video mode to flashValues=[2, 32] | 21:05 |
mal | it seems droid-camres doesn't add the flosh torch for video mode | 21:05 |
Mister_Magister | thats what i thought i just changed it to 1, 2, 4 like in camera, thanks | 21:05 |
Mister_Magister | mal: it doesnt add front flash too | 21:06 |
Mister_Magister | it only can into back flash on photo | 21:06 |
mal | it should be like I gave, not like front picture camera | 21:06 |
mal | *back | 21:06 |
Mister_Magister | mal: yeah i know thanks | 21:06 |
mal | I need to fix droid-camres | 21:07 |
Mister_Magister | totally :P | 21:07 |
Mister_Magister | dont forget front flash :P | 21:07 |
mal | ? | 21:08 |
Mister_Magister | droid-camres doesnt detect front flash too | 21:08 |
mal | do some devices have front flash also? | 21:08 |
mal | it doesn't detect flash values at all, those are hardcoded | 21:08 |
Mister_Magister | yeah moto x force that i have (i just told you it doesnt detect front flash 2 times above xD) | 21:08 |
Mister_Magister | mal: ahh k | 21:08 |
mal | Mister_Magister: I just thought you meant back, I never heard of device with front flash, not sure who needs such a thing | 21:09 |
Mister_Magister | mal: S E L F I E S | 21:10 |
Mister_Magister | mal: https://cdn.gsmarena.com/imgroot//reviews/16/motorola-moto-x-force/gal/-1024x768w1/gsmarena_003.jpg | 21:11 |
mal | well, I don't take selfies :) | 21:11 |
Mister_Magister | me too :D | 21:19 |
Mister_Magister | mal: just adding 1, 2, 4 to front camera flash fixed it so and thanks for video values | 21:20 |
mal | Mister_Magister: yes, thought that should fix it | 21:20 |
r0kk3rz | mal: these days the front camera is much more important than the back :P | 21:48 |
mal | r0kk3rz: for some people | 21:48 |
Mister_Magister | i dont use camera | 21:49 |
Mister_Magister | just like for showing something to people and i dont need good quality for that | 21:51 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!