06:40
funderscore is now known as f_
07:16
ungeskriptet_ has joined #msm8937-mainline
07:22
ungeskriptet has quit [Ping timeout: 480 seconds]
07:25
ungeskriptet_ is now known as ungeskriptet
12:13
<
barni2000[m] >
i don't understand when some simple stuff should be changed why people stop sending their patches
12:14
<
barni2000[m] >
this is the upstreaming process send+review+change+send+review...applied
12:16
<
NekoCWD[m] >
There are new qcom spmi flash driver, but it controlls only new 3/4 chan flash. Maybe we need to merge drivers somehow
12:17
<
barni2000[m] >
it is for newer pmic-s
12:19
<
NekoCWD[m] >
Yes, but the behavior seems quite similar
12:22
<
M0xCAFEBABE[m] >
<barni2000[m]> "i don't understand when some..." <- perhaps... some submitters just aren't able to handle their requests
12:34
<
NekoCWD[m] >
YEY! It works
12:36
<
NekoCWD[m] >
barni2000How can i name driver? `leds-qcom-flash-old`? `leds-qcom-flash-v1`? Or something
12:37
<
barni2000[m] >
maybe v1 idk
12:38
<
barni2000[m] >
but ig now you should check for common parts
13:20
<
NekoCWD[m] >
Lol, I've copy-pasted markw's sensors and it works
13:24
<
NekoCWD[m] >
Sensors via bitbanged i2c4 :D
13:25
<
barni2000[m] >
bitbanging is working yes but it would be better finalize the smgr driver what toonis have written
13:25
<
NekoCWD[m] >
what is smgr?
13:58
<
barni2000[m] >
sensor manager mainline implemenation of SCC
13:58
<
barni2000[m] >
s/SCC/SSC/
15:36
<
barni2000[m] >
now you need ucm config
15:37
<
barni2000[m] >
downstream mixer_path.xml is good for reference but earpiece and jack should be easy
15:38
<
barni2000[m] >
for speaker you will need amp driver mostly
15:38
<
NekoCWD[m] >
barni2000[m]: Yea, i'm working on it
15:38
<
NekoCWD[m] >
barni2000[m]: I can't find it in downstream dt
15:38
<
barni2000[m] >
xiaomi-vince config should work
15:38
<
NekoCWD[m] >
Oh, will try
15:38
<
barni2000[m] >
set the sound card model
15:39
<
NekoCWD[m] >
i've setted as xiaomi-prada
15:40
<
barni2000[m] >
you will need just include the hifi conf like this
15:43
<
barni2000[m] >
maybr you will need simple-amplifier
15:47
<
M0xCAFEBABE[m] >
btw, for reference the correct mixer_paths used in stock rom is mixer_paths_mtp.xml
16:45
<
barni2000[m] >
motos cannot be used with generic package, wifi will not work
16:46
<
barni2000[m] >
nv bin should be packaged
16:47
<
barni2000[m] >
idk if i can set firmware-path property for nv bin
17:13
<
NekoCWD[m] >
Ahah, it works :D
17:14
<
NekoCWD[m] >
But speaker works in headphones mode and headphones doesn't work
17:35
<
NekoCWD[m] >
barni2000how to control simple-audio-amplifier? I see no cset for it in amixer
18:39
<
barni2000[m] >
simple-audio-amplifier like a fixed regulator it is pulling the gpio pin thats all
18:39
<
NekoCWD[m] >
pin-switches + widget + aux-devs in soundcard node
18:47
<
barni2000[m] >
<NekoCWD[m]> "But speaker works in headphones..." <- it use pm8937 codec then for speakers
18:47
<
barni2000[m] >
you should check motos config
18:47
<
barni2000[m] >
motto-potter is same architecture
18:48
<
NekoCWD[m] >
Which repo contain dt for motto-potter?
18:48
<
barni2000[m] >
i mean the ucm config
18:49
<
barni2000[m] >
msm8953
18:51
<
barni2000[m] >
i said it wrong
18:52
<
barni2000[m] >
moto potter is uses earpiece and speaker with 1 speaker
18:55
<
barni2000[m] >
somewhere i have found some description about the used architectures
18:56
<
barni2000[m] >
there is a case when it is using 1 channel from headphone out
18:56
<
barni2000[m] >
* headphone out for speakers
18:57
<
NekoCWD[m] >
What to do if the sound in the headphones is heavily distorted?
18:57
<
barni2000[m] >
check the initial volume values
18:57
<
NekoCWD[m] >
They are ok
18:58
<
barni2000[m] >
do you have the mixer_path?
19:00
<
barni2000[m] >
i think it has different controls a bit
19:01
<
barni2000[m] >
<ctl name="RX HPH Mode" value="HD2"/>
19:02
<
NekoCWD[m] >
barni2000
19:04
<
barni2000[m] >
i guess it will be controlled by simple amps
19:05
<
barni2000[m] >
there were two gpios for headphone
19:05
<
barni2000[m] >
s/headphone/headphones/
19:05
<
NekoCWD[m] >
qcom,msm-switch-headphone-en = <&tlmm 94 0>;
19:05
<
NekoCWD[m] >
qcom,msm-switch-headphone-in = <&tlmm 95 0>;
19:05
<
barni2000[m] >
barni2000[m]: this is an resolved form of mixer path
19:06
<
barni2000[m] >
NekoCWD[m]: yes this is important
19:07
<
barni2000[m] >
i think you could find some similar devices between msm8916
19:08
<
barni2000[m] >
* between msm8916 dts
19:08
<
barni2000[m] >
NekoCWD[m]: same occured on msm8953
19:09
<
barni2000[m] >
other thing if there is no active pcm it will make some constant noise
19:09
<
NekoCWD[m] >
barni2000[m]: Gpios enabled, but nothing changed
19:10
<
barni2000[m] >
it can be caused by mclk or pinctrls
19:10
<
barni2000[m] >
NekoCWD[m]: try to disable them
19:11
<
barni2000[m] >
they should disable headphone
19:13
<
NekoCWD[m] >
yea, i cloned this repo and working on top of it
19:14
<
barni2000[m] >
most of the msm8953 devices was easy to enable but they are using simple architecture
19:14
<
NekoCWD[m] >
AAAAAAA tlmm with higer bias fixed this
19:14
<
barni2000[m] >
so pinctrl
19:15
<
barni2000[m] >
i should check it on ms8953 latter there were some reported issues
19:16
<
barni2000[m] >
pinctrls are important but i am barely understand them :|
19:24
<
NekoCWD[m] >
Yey! All works fine! Even headset mic detection <3
19:38
<
M0xCAFEBABE[m] >
nais :3
19:43
<
NekoCWD[m] >
barni2000 Why there are no dais in soundcard node? Will we it define in every dt?
19:44
<
barni2000[m] >
idk i was not define them
19:44
<
barni2000[m] >
but there are some there iirc
19:44
<
NekoCWD[m] >
Ok, i will add missing
19:45
<
barni2000[m] >
1st sound commits should be fixed ig
19:45
<
barni2000[m] >
there were some review at the mail list
19:47
<
NekoCWD[m] >
barni2000[m]: What commits?
19:48
<
barni2000[m] >
a moment
19:51
<
barni2000[m] >
this patch series should be fixed because of msm8909, msm8917, msm8937, msm8940 and msm8953
19:51
<
barni2000[m] >
and msm8956
19:52
<
barni2000[m] >
couple of stuff are trivial to fix
19:55
<
barni2000[m] >
btw at upstream they don't really like device specific stuff in soc dts so maybe dais should go into the devices dt
20:02
<
NekoCWD[m] >
It works somehow. Without pinctrl there are no sound
20:02
<
barni2000[m] >
show your pinctrl
20:04
<
barni2000[m] >
maybe gpio68 is not under cdc_pdm0
20:06
<
barni2000[m] >
16 static const char * const cdc_pdm0_groups[] = {
20:06
<
barni2000[m] >
17 | "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74",
20:06
<
barni2000[m] >
18 };
20:06
<
NekoCWD[m] >
Yea, there are gpio 69-74. Than what i need to write here?
20:07
<
barni2000[m] >
gpio68 is in audio_reset and gpio group
20:07
<
NekoCWD[m] >
barni2000[m]: `function="audio_reset"` ?
20:07
<
barni2000[m] >
how downstream look like
20:08
<
NekoCWD[m] >
No pinctrl dor 68
20:10
<
NekoCWD[m] >
Ah, i've copied that from 8953
20:10
<
barni2000[m] >
these are in the msm8937.dtsi 1 moment
20:12
<
barni2000[m] >
8953 have more gpio pins
20:13
<
NekoCWD[m] >
Thanks. I'm too silly with pinctrls
20:14
<
barni2000[m] >
btw i am not sure every pins are needed
20:14
<
barni2000[m] >
downstream sometimes keep useless pinctrls
20:17
<
M0xCAFEBABE[m] >
saw a mismatching indent in hf-in {} node btw)
20:18
<
NekoCWD[m] >
M0xCAFEBABE[m]: ?
20:19
<
NekoCWD[m] >
What's wrong?
20:19
<
barni2000[m] >
did you copied wcd form msm8953?
20:20
<
NekoCWD[m] >
It works btw
20:20
<
barni2000[m] >
tresholds should be different
20:20
<
barni2000[m] >
s/tresholds/thresholds/
20:20
<
barni2000[m] >
almost every device has custom values
20:20
<
NekoCWD[m] >
In prada dt?
20:20
<
barni2000[m] >
generally msm8952.c contain the values
20:21
<
NekoCWD[m] >
barni2000thresholds in prada dt?
20:21
<
barni2000[m] >
it is not defined in dt
20:22
<
NekoCWD[m] >
I mean where it is defined in mainline? I've copied from markw dt. It's pretty similar devices
20:24
<
barni2000[m] >
we don't have the original sources
20:25
<
NekoCWD[m] >
What the MBHC does?
20:26
<
barni2000[m] >
headset buttons
20:27
<
barni2000[m] >
jack detection etc
20:28
<
NekoCWD[m] >
Hmm, ok, than i just hint my values as untested. Jack detection and jack mic detection works fine for me
21:47
<
barni2000[m] >
i have added rolex and montana
21:49
<
barni2000[m] >
maybe i should do a rebase to latest stable to squash the fixups or i can do that later with 6.13 rebase
21:50
<
barni2000[m] >
btw afaik prada uses ov5675 so camera can be enabled
21:51
<
barni2000[m] >
but maybe msm8937 have different camera clocks from 8917 idk
21:51
<
NekoCWD[m] >
barni2000[m]: camss will work?
21:51
<
barni2000[m] >
msm8917 camss is there
21:51
<
barni2000[m] >
i should check the values for msm8937
21:52
<
barni2000[m] >
but now i will rest
21:52
<
NekoCWD[m] >
Me to. It's near to 1 AM for me
21:54
<
barni2000[m] >
i have pushed also fixes for ugg/ugglite sdcard, and riva backlight
21:57
<
barni2000[m] >
ov5670
21:57
<
NekoCWD[m] >
ov5670/ov13853
21:58
<
barni2000[m] >
ov5670 has driver
22:02
<
barni2000[m] >
markw also have ov5670 and it is working on pmos
22:02
<
NekoCWD[m] >
Seems to be sam as markw
22:03
<
barni2000[m] >
maybe markw branch contains original sources of prada
22:03
<
M0xCAFEBABE[m] >
barni2000[m]: they're even different ODM...
22:04
<
M0xCAFEBABE[m] >
it's just they have some common hardware components
22:04
<
M0xCAFEBABE[m] >
don't be misleaded by the defconfigs, it's meme
22:04
<
barni2000[m] >
and both called redmi 4
22:04
<
M0xCAFEBABE[m] >
* don't be misleaded by the defconfigs, these are meme
22:05
<
barni2000[m] >
markw have prime as a postfix
22:05
<
barni2000[m] >
somewhere santoni also redmi 4 :D
22:05
<
barni2000[m] >
<insert a clown here>
22:05
<
M0xCAFEBABE[m] >
barni2000[m]: only in india afaik
22:06
<
barni2000[m] >
codenames are better then devices real name
22:08
<
M0xCAFEBABE[m] >
M0xCAFEBABE[m]: prada's ODM is FIH
22:08
<
M0xCAFEBABE[m] >
markw's is Wingtech
22:08
<
M0xCAFEBABE[m] >
land&santoni are Wingtech too
22:09
<
M0xCAFEBABE[m] >
just for completeness, ugg/ugglite are longcheer
22:09
<
barni2000[m] >
riva/rolex?
22:09
<
M0xCAFEBABE[m] >
wingtech too
22:10
<
barni2000[m] >
btw there are 2 variants of riva my 1st one has 2 sim tray
22:10
<
M0xCAFEBABE[m] >
pretty sure that santoni&rolex&riva are in the same branch
22:10
<
barni2000[m] >
M0xCAFEBABE[m]: yes with rosy
22:11
<
barni2000[m] >
Redmi 4A, Redmi 5, Redmi 5A
22:11
<
barni2000[m] >
santoni on different branch but riva also ther just they don't write to the README
22:11
<
barni2000[m] >
* santoni on different branch but riva also there just they don't write it to the README
22:11
<
M0xCAFEBABE[m] >
M0xCAFEBABE[m]: cuz same camera blobs in android supports all these 3 devices
22:12
<
NekoCWD[m] >
how to test cameras?
22:12
<
M0xCAFEBABE[m] >
* cuz same camera blobs in android supports all these 3 devices, kernel stuff are similar too
22:14
<
barni2000[m] >
NekoCWD[m]: `media-ctl -p` first, after libcamera apps or megapixels
22:14
<
M0xCAFEBABE[m] >
barni2000[m]: iirc there's so many santoni stuff in riva branch, or in reverse, or both
22:14
<
M0xCAFEBABE[m] >
barni2000[m]: well yeah
22:17
<
barni2000[m] >
motorola branches almost contains their every devices
22:18
<
NekoCWD[m] >
well, camss starts fine
22:53
<
NekoCWD[m] >
Hmm, camera seems to probe fine (no errors and module shows in lsmod), i can see it on i2c bus, but there are no /dev/media0 or /dev/video0. What's wrong?
22:55
<
barni2000[m] >
then it is not probing fine or camss not probing fine
22:58
<
barni2000[m] >
there is no qcom,msm8937-camss :D
22:58
<
barni2000[m] >
only 8917
22:58
<
NekoCWD[m] >
can i just change 8937->8917 in dtsi?
23:00
<
barni2000[m] >
ig they are same
23:01
<
NekoCWD[m] >
csid versions
23:02
<
barni2000[m] >
i don't think it is matter too much
23:03
<
barni2000[m] >
clocks are same
23:03
<
NekoCWD[m] >
Hmm. Phone now starting too long
23:05
<
NekoCWD[m] >
barni2000 /dev/video0-5 appears
23:06
<
NekoCWD[m] >
media0 doesn't appears
23:06
<
barni2000[m] >
media-ctl -p ?
23:07
<
barni2000[m] >
ig sensor was not probed succesfully
23:07
<
barni2000[m] >
check dmesg for ov5670
23:07
<
barni2000[m] >
did you add the sensor to your kernel config?
23:08
<
NekoCWD[m] >
Yes, there are ov5670 module
23:10
<
barni2000[m] >
it caused by camss :D
23:10
<
barni2000[m] >
it wiil block graceful power off your devices
23:10
<
barni2000[m] >
s/devices/device/
23:17
<
barni2000[m] >
do you got some vfe backtrace?
23:18
<
NekoCWD[m] >
<barni2000[m]> "it wiil block graceful power off..." <- For now i got a lot of `detected fb_set_par error, error code: -16`. I've patched kernel to not show this messages, and now waiting for boot
23:20
<
barni2000[m] >
i have a hack for vfe
23:21
<
NekoCWD[m] >
Share please
23:22
<
NekoCWD[m] >
Null deref :D
23:24
<
barni2000[m] >
it seems different issue but apply my hack first
23:25
<
NekoCWD[m] >
barni2000[m]: applied
23:28
<
NekoCWD[m] >
seems like camss break everyting, lol. TS doesn't work, wifi/bt also doesn't :D
23:30
<
barni2000[m] >
btw it seems csid0 is switched with csid1 and csiphy0 with csiphy1 so that is the difference between 8917 and 8937
23:31
<
NekoCWD[m] >
need i switch reg_names?
23:31
<
barni2000[m] >
no only phys are switched
23:31
<
barni2000[m] >
switch the regs in phys
23:32
<
barni2000[m] >
but maybe it should be switched in camss.c also
23:32
<
NekoCWD[m] >
also in interrupts?
23:33
<
barni2000[m] >
wait
23:37
<
NekoCWD[m] >
seems to be error in link_entities
23:38
<
NekoCWD[m] >
lol, there are no link_entities in msm8917_resources
23:38
<
barni2000[m] >
check bindings in 8917.dtsi
23:38
<
barni2000[m] >
i think i have updated there
23:46
<
NekoCWD[m] >
[ 17.828220] ov5670 4-0036: Unsupported clock frequency 0
23:46
<
barni2000[m] >
8937 have different clocks i have checked the gcc
23:47
<
barni2000[m] >
NekoCWD[m]: how your bindings look like
23:49
<
barni2000[m] >
mclk2?
23:50
<
barni2000[m] >
was it copied from 8953?
23:50
<
NekoCWD[m] >
barni2000[m]: From downstream
23:50
<
NekoCWD[m] >
It uses mclk2 for front camera
23:51
<
barni2000[m] >
8937 uses s3 for supply?
23:51
<
NekoCWD[m] >
barni2000[m]: Yea
23:51
<
barni2000[m] >
try assigned-clock-rates also
23:53
<
NekoCWD[m] >
oh, i accidently deleted xo_board. Now there are other error
23:58
<
NekoCWD[m] >
csid is null somehoe
23:58
<
NekoCWD[m] >
s/somehoe/somehow/
23:59
<
barni2000[m] >
they are not matching