Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-04-03 Thread Pavel Machek
Hi! > > I think I should have the required options enabled... > > > > CONFIG_SND_OMAP_SOC=y > > CONFIG_SND_OMAP_SOC_DMIC=y > > CONFIG_SND_OMAP_SOC_MCBSP=y > > CONFIG_SND_OMAP_SOC_MCPDM=y > > CONFIG_SND_OMAP_SOC_HDMI_AUDIO=y > > That's the SoC (OMAP) side. > > > # CONFIG_SND_OMAP_SOC_RX51 is

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-04-03 Thread Pavel Machek
Hi! > > I think I should have the required options enabled... > > > > CONFIG_SND_OMAP_SOC=y > > CONFIG_SND_OMAP_SOC_DMIC=y > > CONFIG_SND_OMAP_SOC_MCBSP=y > > CONFIG_SND_OMAP_SOC_MCPDM=y > > CONFIG_SND_OMAP_SOC_HDMI_AUDIO=y > > That's the SoC (OMAP) side. > > > # CONFIG_SND_OMAP_SOC_RX51 is

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

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

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

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

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! > > 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
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

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:

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

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

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

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

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,

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%.

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

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

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 > >

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

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

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 >

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

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 :)

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

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

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

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

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

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

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

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 > >

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

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 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

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

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?

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?

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.

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 :-).

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 :-).

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

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,

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

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

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: > > > > > >

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

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

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

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

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

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

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 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 > >

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 > >

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 =

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 =

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

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

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

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

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 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

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

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. >

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. >

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

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

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > Any more ideas? :-) > > Make sure, that the device was not proped properly (cat > /proc/asound/cards) and post the real error? :) Oh and, audio now works for me, so Tested-by: Pavel Machek for the series. Thanks,

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > Any more ideas? :-) > > Make sure, that the device was not proped properly (cat > /proc/asound/cards) and post the real error? :) Oh and, audio now works for me, so Tested-by: Pavel Machek for the series. Thanks,

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > That's not an error, but just some debug messages. Consider > disabling CONFIG_DEBUG_GPIO to get rid of them. > > > Indeed the dts does not seem to contain any gpios > > It's optional and does not exist on Droid 4. > > > soundcard { ... > > }; > > > > Any more ideas? :-) >

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > That's not an error, but just some debug messages. Consider > disabling CONFIG_DEBUG_GPIO to get rid of them. > > > Indeed the dts does not seem to contain any gpios > > It's optional and does not exist on Droid 4. > > > soundcard { ... > > }; > > > > Any more ideas? :-) >

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > # CONFIG_SND_OMAP_SOC_RX51 is not set > > # CONFIG_SND_OMAP_SOC_N9 is not set > > CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y > > CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040=y > > That's not needed (but does not hurt). The Droid 4 > has no TWL companion chip and uses CPCAP instead. Aha, thanks. I was

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > # CONFIG_SND_OMAP_SOC_RX51 is not set > > # CONFIG_SND_OMAP_SOC_N9 is not set > > CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y > > CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040=y > > That's not needed (but does not hurt). The Droid 4 > has no TWL companion chip and uses CPCAP instead. Aha, thanks. I was

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > Make sure, that the device was not proped properly (cat > /proc/asound/cards) and post the real error? :) Standby... looks like I cleaned up too much of "unused" config. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > Make sure, that the device was not proped properly (cat > /proc/asound/cards) and post the real error? :) Standby... looks like I cleaned up too much of "unused" config. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > > > Any ideas? > > > > > > You probably did not enable the soundcard driver, that binds against > > > "audio-graph-card" compatible and connects the codec driver with the > > > SoC driver: CONFIG_SND_AUDIO_GRAPH_CARD > > > > Ok, that certainly changed things; I am now getting this: > >

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Pavel Machek
Hi! > > > > Any ideas? > > > > > > You probably did not enable the soundcard driver, that binds against > > > "audio-graph-card" compatible and connects the codec driver with the > > > SoC driver: CONFIG_SND_AUDIO_GRAPH_CARD > > > > Ok, that certainly changed things; I am now getting this: > >

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Sebastian Reichel
Hi, On Fri, Mar 23, 2018 at 11:09:30AM +0100, Pavel Machek wrote: > Hi! > > > > # CONFIG_SND_OMAP_SOC_RX51 is not set > > > # CONFIG_SND_OMAP_SOC_N9 is not set > > > CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y > > > CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040=y > > > > That's not needed (but does not hurt).

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-23 Thread Sebastian Reichel
Hi, On Fri, Mar 23, 2018 at 11:09:30AM +0100, Pavel Machek wrote: > Hi! > > > > # CONFIG_SND_OMAP_SOC_RX51 is not set > > > # CONFIG_SND_OMAP_SOC_N9 is not set > > > CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y > > > CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040=y > > > > That's not needed (but does not hurt).

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-22 Thread Sebastian Reichel
Hi Pavel, On Thu, Mar 22, 2018 at 09:48:05PM +0100, Pavel Machek wrote: > Hi! > > > Add sound support to Motorola Droid 4 using simple-soundcard > > and CPCAP's audio codec. This does not yet correctly represent > > the whole audio routing, since McBSP3 is also connected to > > Bluetooth and

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-22 Thread Sebastian Reichel
Hi Pavel, On Thu, Mar 22, 2018 at 09:48:05PM +0100, Pavel Machek wrote: > Hi! > > > Add sound support to Motorola Droid 4 using simple-soundcard > > and CPCAP's audio codec. This does not yet correctly represent > > the whole audio routing, since McBSP3 is also connected to > > Bluetooth and

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-22 Thread Pavel Machek
Hi! > Add sound support to Motorola Droid 4 using simple-soundcard > and CPCAP's audio codec. This does not yet correctly represent > the whole audio routing, since McBSP3 is also connected to > Bluetooth and MDM6600 modem (and probably also 4G modem). > These extra DAI links are not yet

Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-22 Thread Pavel Machek
Hi! > Add sound support to Motorola Droid 4 using simple-soundcard > and CPCAP's audio codec. This does not yet correctly represent > the whole audio routing, since McBSP3 is also connected to > Bluetooth and MDM6600 modem (and probably also 4G modem). > These extra DAI links are not yet