After many cul-de-sac due to my lack of brain power, I think I might got an hint on the issue. I might be completely wrong so please just tell me what you think.
When you do a call with BT the kmseg is like
So es325 is routing to route 4, which is
per
I beleive this is wrong, as instead it should be something like route 21
In fact the ES325 chip is not properly loaded to start with.
So the question is: shall we use ES325 or not ? (I think we should)
If the answer is positive, it would worth a try to load it properly.
What do you think?
Searching through that file, I found that when the es325 is first defined, it is being automatically defined as Narrow Band. This normally isn't too bad, but later on in the file there are if/then statements to do particular things when we are on either narrow or wide band.
Code:
#define ES325_INTERNAL_ROUTE_MAX 26
static long es325_internal_route_num;
static int es325_network_type = NARROW_BAND;
I'm thinking about taking off that auto definition of "NARROW_BAND" and seeing if the rest of the code can do it's proper switching to narrow or wide band based on your network type:
Such as:
Code:
if (network != NARROW_BAND)
es325_network_type = WIDE_BAND;
else
es325_network_type = NARROW_BAND;
if(FW_not_ready || es325_priv.wakeup_cnt == 0) {
pr_info("%s: es325 not ready, return\n", __func__);
return 0;
This doesn't make sense to me to include code like this if "network type" is automatically defined as narrow band from the getgo.
edit:
Looked at haggertk git, his galaxy s5 with working bluetooth has :
Code:
#define ES325_INTERNAL_ROUTE_MAX 26
static long es325_internal_route_num;
static int es325_network_type = NARROW_BAND;
So it doesn't look like removing the auto definition of "narrowband" will fix our bluetooth calling. I will continue comparing this file to ours and see if there are any differences.
Going to go ahead and let my build complete and flash it anyway, just in case, but not so hopeful that it will fix our bluetooth now that I see that haggertk has bluetooth calling working with this narrowband being defined by default.