libera/#maemo-leste/ Friday, 2024-07-05

freemangordondsc_: do you plan to make a new conversations release? is there a stopper or you just lack time?07:27
freemangordonWizzup: the guaranteed way to break audio in mafw is to start call from the dialer and to hangup before other party has answered07:42
freemangordonright after restart it works ok07:42
freemangordonso it is not some config that's broken07:42
freemangordonbut, it is PA that fails07:43
freemangordonrestarting PA makes mafw work again07:52
dsc_freemangordon: do you mean a stable release?07:57
dsc_or just a release in general07:57
freemangordonjust a release07:57
dsc_ah07:57
dsc_i didnt make a release because the menu doesnt give control back to the user07:57
dsc_the context menu for a message07:58
dsc_need to fix it07:58
dsc_right now working on adblock in jib07:58
freemangordonah, right07:58
freemangordonok07:58
freemangordonWizzup: https://pastebin.com/F8UJYcci08:03
freemangordonthis is a trace of the issue08:03
freemangordonseems sphone(?) leaves wrong UCM profile on hangup08:04
freemangordonhmm, no, HiFi profile is selected08:10
freemangordonbut, "Selected mapping 'Headset Microphone + Internal Microphone' (HiFi: hw:Audio,1: source)."08:10
freemangordonoh, that's source08:11
freemangordonswitching profiles from PA volume control makes it work again08:13
Wizzup07:43 < freemangordon> but, it is PA that fails09:36
WizzupI'm pretty sure it's a kernel problem still09:36
Wizzupand switching the ucm solves it09:36
freemangordonmhm10:17
freemangordonmaybe I shall try to fix that10:17
freemangordonmaybe you can help by giving me hints which registers to check and how10:17
WizzupI think it would make more sense to start from my email regarding 6.610:19
Wizzupsince it's all the same problem more or less10:19
freemangordonyes, but it would be easier for me to use 6.1 for debugging10:20
Wizzupok10:20
freemangordonbecause we have something working ther10:20
Wizzuptrue...10:20
freemangordonwhile in 6.6 I have no base to compare with (working vs non)10:20
freemangordonok, I'll ping you later on (after working hours)10:21
Wizzupeven on 6.1 I think you should probably try to dump the registers before the call and after the call10:28
Wizzupprobably with hifi playing (or both with it not playing)10:28
Wizzuphttps://github.com/MerlijnWajer/droid4-cpcap-audio-reg-tool10:28
freemangordonuvos: we discuss if it makes sense to have cpu call recording always active during call, in order to create alsa control that enables call DAPM (or whatever needs to be active)13:30
freemangordonWizzup: ^^^ basically that's it, right?13:30
Wizzupwe would still need userspace to actually record to activate the path, but yes13:30
Wizzupand I linked uvos' call recording txt https://uvos.xyz/maserati/stockinfo/call/13:30
freemangordonno, we can just turn the swicth on in UCM, no?13:30
Wizzupno, there must be an active path in alsa for dapm to do anything13:31
freemangordonah13:31
freemangordonhmm13:31
Wizzupit makes sense but at the same time it's annoying13:31
freemangordonwhat was the otehr option?13:31
Wizzupwe could make a switch in alsa that force triggers dapm13:31
Wizzuphave to go, back later13:31
freemangordonlater13:32
Wizzupthere would be a clear impact on battery of course if we record all the time to keep it active, but:13:53
Wizzup1. we'll have call recording which is nice13:53
Wizzup2. it'll work without dapm hacks13:53
freemangordonwe can disregard the data13:53
Wizzupyes sur13:53
Wizzupthe alternative, a switch that forces dapm for call on, is possible too13:53
Wizzupbut it would still be somewhat race sensitive if something else messes with alsa too13:53
freemangordonwe can use such switch in UCM, no?13:54
freemangordonalso, do we have some d4 audio diagram?13:54
Wizzupyes but it if is a force dapm it can be overriden by say hifi also being enabled13:54
freemangordonis there any issue of hifi and voice being active simultaneously?13:55
freemangordonthey use different codecs, tdm slots, etc13:55
freemangordon(maybe)13:55
freemangordontmlind: ^^^ please, help :)13:55
freemangordonWizzup: hmm, wait, wait13:56
freemangordoncan't we create a DAI for voice, but produce only zeroes unless monitoring is enabled?13:56
freemangordonmaybe I am talking nonsense, I admit ALSA is not a thing I know much about13:58
freemangordonso, we may have 3 UCM profiles:13:59
freemangordonhifi, voice, voice+recording14:00
Wizzupyes we would need another profile for recording14:00
WizzupI don't know about DAI for voice14:00
freemangordonhmm, we already have DAI14:01
freemangordonsee  cpcap_set_sysclk()14:01
Wizzupthere are two codecs, snd cpcap and motmdm irc14:02
Wizzupiirc14:02
Wizzupsee my dynamic debug statemtents14:02
Wizzupbbiab again sry14:02
freemangordonWizzup: another idea: can we treat call state as a jack?14:21
freemangordonalso, see https://kernel.org/doc/html/latest/sound/soc/codec-to-codec.html14:41
freemangordonI thinkt this is what we need, no?14:42
freemangordon*think14:42
freemangordonheh, we don;t have c2c_params in 6.1 :)14:56
freemangordonWizzup: see https://elixir.bootlin.com/linux/v6.6.37/source/sound/soc/samsung/aries_wm8994.c#L48315:01
Wizzupfreemangordon: do you mean ignore suspend, or?15:35
Wizzupdo we not have c2c already?15:36
freemangordonwe don't15:43
freemangordonit is not supported in 6.115:43
Wizzupoh...15:43
Wizzupok, that looks like a great thing to try then15:43
freemangordonmhm15:44
freemangordonbut, I still lack the audio diagram :)15:44
Wizzupmight also be worth mentioning on the mail thread we have with Tony15:44
Wizzuphe might be able to help15:44
freemangordonright15:44
freemangordonI'll reply15:45
freemangordonWizzup: do we have 6.6?15:46
freemangordonwell, *where* do we have 6.6?15:46
Wizzupyes and yes15:47
Wizzupfreemangordon: maemo-6.6.y15:47
freemangordonok, lemme try to build it15:47
Wizzupit's in -experimental15:48
freemangordonok15:48
freemangordonso, no sound at all or only calls don;t work?15:48
Wizzuponly calls15:48
freemangordonwith 6.6 that is15:48
freemangordonok15:48
freemangordonboth sides?15:48
Wizzupneither sides :)15:49
freemangordonok15:49
freemangordonok, building 6.615:54
freemangordonLinux devuan-droid4 6.6.36 #2 SMP PREEMPT Fri Jul  5 18:00:45 EEST 2024 armv7l GNU/Linux17:10
freemangordonok, lets see17:10
freemangordonWizzup: it seems we will have to switch to audio-graph-card2, see https://elixir.bootlin.com/linux/v6.6.37/source/sound/soc/generic/audio-graph-card2-custom-sample.dtsi17:40
freemangordonnot that I understand what is explained there :)17:41
inkyWizzup, thank you! are you sure you have added comics_daily in phoenix for the user norayr?19:56
Wizzupnot yet @ jenkins19:57
inkyyes, whenever convenient, just reminding. i guess i am ready for it.19:59
WizzupI will do it today (moving, emptying my entire apartment)20:00

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!