Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

From: Tony Lindgren
Date: Thu Mar 29 2018 - 12:06:30 EST


* Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxxxx> [180329 15:47]:
> Hi,
>
> On Thu, Mar 29, 2018 at 06:59:04AM -0700, Tony Lindgren wrote:
> > > I think cpcap is always the clock and frame master, but I think
> > > mdm6600 is the remote side and OMAP is not involved at all.
> >
> > OK. So could it be just an alsamixer on/off toggle then for
> > "Modem" or something similar?
>
> I think so. We might want to have an "Mode" enum instead, though.
> That can be extended, once we unlock the other modes (bluetooth,
> bluetooth call).

OK. Seems in addition to the "Mode" enum, we also need
some other switch for modem on and off toggle?

I guess most people want to save the preferred "Mode" enum,
then for the duration of the call enable the selected mode.

And I guess the mute is already there for the mic with 'm'
in alsamixer for conf calls :)

> > > > Then using the n_gsm ts 27.010 uart mux, I dial:
> > > >
> > > > ./ngsm-rw 1 "AT+CFUN=1" # connect to network
> > > > U0001+CFUN:OK
> > > > ./ngsm-rw 2 "AT+CMUT=0" # unmute speaker over ch2, do this over qmi?
> > > > U0001+CMUT:OK
> > > > ./ngsm-rw 1 "ATD#123" # dial number
> > > > U0001D:OK
> >
> > There's a typo above, it should be just ATD123 where 123 is the
> > number.
> >
> > I was just doing few test calls to robots. Payback time for all
> > the robocalls, you know! :)
> >
> > > > And I do hear a voice talking over the speakerphone :) Sorry have not tested the
> > > > mic yet..
> >
> > And calling a person I can hear the other end but the mic is
> > not working. So maybe I need to tweak the alsamixer settings
> > too for mic?
>
> Your override kills most settings from alsamixer. You can try to
> just override CPCAP_REG_VAUDIOC, CPCAP_REG_CC and CPCAP_REG_CDI
> and setup everything else with alsamixer.

OK I'll try to narrow it down and play with the mic settings
tonight or over the weekend.

Regards,

Tony