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

2018-04-02 Thread Mark Brown
On Wed, Mar 28, 2018 at 04:02:19PM +0200, Sebastian Reichel wrote: > In case of the last two variants, the bus clock is provided by > CPCAP, so it needs to be enabled for any audio stream. I suppose > the codec <-> codec as part of TDM is out of scope for the graph > card and we need a Droid 4 spe

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

2018-04-01 Thread Tony Lindgren
* Tony Lindgren [180329 22:00]: > If it entered low-power mode, in theory we should see the state > change interrupt that's handled by phy-mapphone-mdm6600.c. > I never managed to do that so far so maybe you figured it out > with some command. And looks like the trigger to mdm6600 to enter low po

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

2018-03-30 Thread Pavel Machek
Hi! > > 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. No, just the

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

2018-03-30 Thread Pavel Machek
Hi! > > > Would you mind sharing those hacks - I would like to play around with > > > ofonod as well. Maybe I can help with a way forward. > > > > Okay. Here's less hacky version of the hack, but still using AT > > commands. You still need to set up udev, as described in the other > > mail. > >

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

2018-03-30 Thread Pavel Machek
On Fri 2018-03-30 19:50:50, Pavel Machek wrote: > On Fri 2018-03-30 15:07:24, Merlijn Wajer wrote: > > On 30/03/18 12:37, Pavel Machek wrote: > > > On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: > > >> * Pavel Machek [180329 18:41]: > > >>> Thanks. I got call working including outgoing audio: in

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

2018-03-30 Thread Pavel Machek
On Fri 2018-03-30 15:07:24, Merlijn Wajer wrote: > On 30/03/18 12:37, Pavel Machek wrote: > > On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: > >> * Pavel Machek [180329 18:41]: > >>> Thanks. I got call working including outgoing audio: in capture > >>> settings, right->mic 1, Mic1 + Mic2 in alsa

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

2018-03-30 Thread Pavel Machek
Hi! > > >> Great, good to hear that :) > > > > > > I also got ofonod to work, with rather crazy hacks. But I now have > > > incoming/outgoing calls with GUI :-). > > > > Would you mind sharing those hacks - I would like to play around with > > ofonod as well. Maybe I can help with a way forward.

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

2018-03-30 Thread Tony Lindgren
* Merlijn Wajer [180330 13:09]: > On 30/03/18 12:37, Pavel Machek wrote: > > On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: > >> * Pavel Machek [180329 18:41]: > >>> Thanks. I got call working including outgoing audio: in capture > >>> settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. B

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

2018-03-30 Thread Merlijn Wajer
On 30/03/18 12:37, Pavel Machek wrote: > On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: >> * Pavel Machek [180329 18:41]: >>> Thanks. I got call working including outgoing audio: in capture >>> settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had >>> the other phone muted, so I do

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

2018-03-30 Thread Sebastian Reichel
Hi, On Thu, Mar 29, 2018 at 09:06:11AM -0700, Tony Lindgren wrote: > * Sebastian Reichel [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 O

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

2018-03-30 Thread Pavel Machek
On Thu 2018-03-29 14:56:13, Tony Lindgren wrote: > * Pavel Machek [180329 18:41]: > > Thanks. I got call working including outgoing audio: in capture > > settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had > > the other phone muted, so I don't yet know if such call would be of > >

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

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 18:07]: > On Thu 2018-03-29 09:34:50, Tony Lindgren wrote: > > * Pavel Machek [180329 16:09]: > > > > 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"

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

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 18:41]: > Thanks. I got call working including outgoing audio: in capture > settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had > the other phone muted, so I don't yet know if such call would be of > usable quality. Great, good to hear that :) Tony > ---

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

2018-03-29 Thread Pavel Machek
On Thu 2018-03-29 09:41:13, Tony Lindgren wrote: > * Pavel Machek [180329 16:38]: > > Hi! > > > > > > > > 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

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

2018-03-29 Thread Pavel Machek
On Thu 2018-03-29 09:34:50, Tony Lindgren wrote: > * Pavel Machek [180329 16:09]: > > > 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 thi

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

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 16:38]: > Hi! > > > > > > 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 sett

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

2018-03-29 Thread Pavel Machek
Hi! > > > > 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 m

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

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 16:09]: > > 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#1

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

2018-03-29 Thread Pavel Machek
Hi! > @@ -510,17 +510,17 @@ > 07f4: > 07f8: > 07fc: > -0800: 0065 > -0804: > -0808: 0040 > +0800: 0025 # CPCAP_REG_VAUDIOC VAUDIO Control > +0804: 60cf # CPCAP_REG_CC Codec Control, moto cpcap.c:1337 sets > 0x0093? > +0808: ae0a # CPCAP_REG_CDI

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

2018-03-29 Thread Tony Lindgren
* Sebastian Reichel [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

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

2018-03-29 Thread Sebastian Reichel
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

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

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 14:11]: > Hi! > > > Meanwhile, I can try to make voice calls more reproducable with > > qmi or MM for example instead of just n_gsm.. And then I'll try > > to fix my n_gsm pile of hacks for posting.. > > If you get something to work, that will be great. Yeah I need to at

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

2018-03-29 Thread Pavel Machek
Hi! > Meanwhile, I can try to make voice calls more reproducable with > qmi or MM for example instead of just n_gsm.. And then I'll try > to fix my n_gsm pile of hacks for posting.. If you get something to work, that will be great. If you get ofonod to work, that would be even better :-). [That'

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

2018-03-29 Thread Tony Lindgren
* Sebastian Reichel [180329 13:37]: > Hi, > > On Wed, Mar 28, 2018 at 06:45:07PM -0700, Tony Lindgren wrote: > > Hi, > > > > * Sebastian Reichel [180328 14:03]: > > > Hi, > > > > > > On Wed, Mar 28, 2018 at 10:29:10AM +0800, Mark Brown wrote: > > > > On Wed, Mar 28, 2018 at 12:22:37AM +0200, S

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

2018-03-29 Thread Sebastian Reichel
Hi, On Wed, Mar 28, 2018 at 06:45:07PM -0700, Tony Lindgren wrote: > Hi, > > * Sebastian Reichel [180328 14:03]: > > Hi, > > > > On Wed, Mar 28, 2018 at 10:29:10AM +0800, Mark Brown wrote: > > > On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > > > > On Tue, Mar 27, 2018 at 0

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

2018-03-28 Thread Tony Lindgren
Hi, * Sebastian Reichel [180328 14:03]: > Hi, > > On Wed, Mar 28, 2018 at 10:29:10AM +0800, Mark Brown wrote: > > On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > > > On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > > > > > > No, this is exactly the sort of use

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

2018-03-28 Thread Sebastian Reichel
Hi, On Wed, Mar 28, 2018 at 10:29:10AM +0800, Mark Brown wrote: > On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > > On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > > > > No, this is exactly the sort of use case with multiple DAIs that the > > > graph card is int

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

2018-03-28 Thread Pavel Machek
Hi! > > > I can talk to the modem and start a call. > > > > Doing an AT query is the easy part :) > > > > > Then something like this (untested!) is certainly needed. > > > Probably more... > > > > I intentionally left this part out. The CPCAP codec has two DAIs > > and not 3+. The code you just

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

2018-03-28 Thread Pavel Machek
Hi! > > I can talk to the modem and start a call. > > Doing an AT query is the easy part :) > > > Then something like this (untested!) is certainly needed. > > Probably more... > > I intentionally left this part out. The CPCAP codec has two DAIs > and not 3+. The code you just added is a hack f

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

2018-03-27 Thread Mark Brown
On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > > No, this is exactly the sort of use case with multiple DAIs that the > > graph card is intended to enable over the old simple-card. > +--+ +

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

2018-03-27 Thread Sebastian Reichel
Hi Mark, On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > On Mon, Mar 26, 2018 at 05:58:28PM +0200, Sebastian Reichel wrote: > > > My understanding is, that we only need to replace the audio-graph-card > > driver to something more complex. The VOICE DAI needs to be configured > > dif

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

2018-03-27 Thread Tony Lindgren
* Pavel Machek [180327 20:42]: > But Motorola code seems to do different magic according to modem type, > so things may not be as easy. > > if (pdata->voice_type == VOICE_TYPE_STE) { > /* STE_M570 */ > ret = cpcap_audio_reg_write(cod

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

2018-03-27 Thread Pavel Machek
Hi! > > > My understanding is, that we only need to replace the audio-graph-card > > > driver to something more complex. The VOICE DAI needs to be configured > > > differently based on the use case: > > > > > > call: > > > * mode=i2s > > > * freq=2600 > > > * samprate=16000 or samprate=

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

2018-03-27 Thread Mark Brown
On Mon, Mar 26, 2018 at 05:58:28PM +0200, Sebastian Reichel wrote: > My understanding is, that we only need to replace the audio-graph-card > driver to something more complex. The VOICE DAI needs to be configured > differently based on the use case: No, this is exactly the sort of use case with m

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

2018-03-26 Thread Sebastian Reichel
Hi, On Mon, Mar 26, 2018 at 10:31:54PM +0200, Pavel Machek wrote: > Hi! > > > On Mon, Mar 26, 2018 at 04:16:38PM +0200, Pavel Machek wrote: > > > Do you have any ideas what needs to be done for voice calls > > > support? > > > > Sure. > > :-). > > > > I can talk to the modem and start a call.

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

2018-03-26 Thread Pavel Machek
Hi! > On Mon, Mar 26, 2018 at 04:16:38PM +0200, Pavel Machek wrote: > > Do you have any ideas what needs to be done for voice calls > > support? > > Sure. :-). > > I can talk to the modem and start a call. > > Doing an AT query is the easy part :) Well, yes. Doing it right (ofono, etc) is not

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

2018-03-26 Thread Sebastian Reichel
Hi, On Mon, Mar 26, 2018 at 04:16:38PM +0200, Pavel Machek wrote: > Do you have any ideas what needs to be done for voice calls > support? Sure. > I can talk to the modem and start a call. Doing an AT query is the easy part :) > Then something like this (untested!) is certainly needed. > Proba

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

2018-03-26 Thread Pavel Machek
Hi! Do you have any ideas what needs to be done for voice calls support? I can talk to the modem and start a call. Then something like this (untested!) is certainly needed. Probably more... Thanks, Pavel diff --git a/sound/