From: Pavel Machek <pavel@ucw.cz>
To: Sebastian Reichel <sre@kernel.org>
Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>,
Pali Roh?r <pali.rohar@gmail.com>,
kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org,
aaro.koskinen@iki.fi, freemangordon@abv.bg,
Sakari Ailus <sakari.ailus@iki.fi>
Subject: voice calls on N900 working (off-line) was Re: N900 modem support in 3.18-rc1
Date: Thu, 20 Nov 2014 11:13:21 +0100 [thread overview]
Message-ID: <20141120101320.GA6356@amd> (raw)
In-Reply-To: <20141114215749.GA19023@earth.universe>
Hi!
> > REed pulseaudio modules that use cmtspeech will be ready sooner than later
> > (I believe in 2-3 monts from now), see on gitorious how fast we progressed
> > with -record and -music modules. Sure, -voice module is way more
> > complicated, but lots of it is already opensourced, we just need to figure
> > out a couple of DSP algorithms(drc, agc, aec, etc) related to call quality.
> > But I don't think the driver should wait for those modules to be REed, they
> > can be used as is even now, in their closed form for testing.
>
> https://gitorious.org/pulseaudio-modules-nemo/jusas-tanuk2-mer-packaging/source/6ed34611b49c99b007f614d9dff4d58369876345:
> https://github.com/nemomobile/pulseaudio-module-cmtspeech-n9xx/commits/master
>
> It seems there is already cmtspeech code for pulseaudio?
Yes, and it works; but see below.
> > Unfortunately all my spare time is dedicated to that PA stuff, so
> > I simply can't cleanup cmtspeech driver and send a patch for
> > upstreaming. (Pavel, what about you?)
>
> If somebody gets audio working with your driver and documents the
> steps needed in userland I will take care of upstreaming the driver.
I got it to work.
Ok, so realtime audio does not work due to some pulseaudio problems,
but I was able to record a (silent) call and then replay it with
pacat --rate 4000 ../../../pulseaudio2.raw
on my PC. I have yet to do some testing on the microphone side.
I'm using Debian 7 as a a base, and I suggest nfsroot.
It seems that libcmtspeechdata + pulseaudio-module-cmtspeech-n9xx is
enough to get calls to work. Now. I could not get configure on these
packages to work, so I hard-coded build scripts (mkit). You'll need to
symlink resulting .so to pulseaudio directory (see
/my/pulseaudio-module-cmtspeech-n9xx/src/cmtspeech/mkit). I leave binaries in,
since this is non-trivial to compile. Some memory allocation stuff was
missing. I faked it; it seems it is not needed in the first call.
untar in the root directory of n900. Reset n900, no need to log in
into console, connect using ssh -X root@n900.
Then go to /my/tui/ofone. Run "./run" -- that should start
pulseaudio. Run "./ofone", hit "lowlevel: online", hit "contacts",
enter phone number you want to call, hit the number, it should start
dialing.
Wait a while, hit "lowlevel: hangup".
Now you should have:
/my/pulseaudio2.raw
you can play with pacat above, and /my/pulseaudio.log.*, which
contains stuff that needs to be fixed.
I've put the archive at
http://atrey.karlin.mff.cuni.cz/~pavel/outgoing/n900-my.tgz
Have fun!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: voice calls on N900 working (off-line) was Re: N900 modem support in 3.18-rc1
Date: Thu, 20 Nov 2014 11:13:21 +0100 [thread overview]
Message-ID: <20141120101320.GA6356@amd> (raw)
In-Reply-To: <20141114215749.GA19023@earth.universe>
Hi!
> > REed pulseaudio modules that use cmtspeech will be ready sooner than later
> > (I believe in 2-3 monts from now), see on gitorious how fast we progressed
> > with -record and -music modules. Sure, -voice module is way more
> > complicated, but lots of it is already opensourced, we just need to figure
> > out a couple of DSP algorithms(drc, agc, aec, etc) related to call quality.
> > But I don't think the driver should wait for those modules to be REed, they
> > can be used as is even now, in their closed form for testing.
>
> https://gitorious.org/pulseaudio-modules-nemo/jusas-tanuk2-mer-packaging/source/6ed34611b49c99b007f614d9dff4d58369876345:
> https://github.com/nemomobile/pulseaudio-module-cmtspeech-n9xx/commits/master
>
> It seems there is already cmtspeech code for pulseaudio?
Yes, and it works; but see below.
> > Unfortunately all my spare time is dedicated to that PA stuff, so
> > I simply can't cleanup cmtspeech driver and send a patch for
> > upstreaming. (Pavel, what about you?)
>
> If somebody gets audio working with your driver and documents the
> steps needed in userland I will take care of upstreaming the driver.
I got it to work.
Ok, so realtime audio does not work due to some pulseaudio problems,
but I was able to record a (silent) call and then replay it with
pacat --rate 4000 ../../../pulseaudio2.raw
on my PC. I have yet to do some testing on the microphone side.
I'm using Debian 7 as a a base, and I suggest nfsroot.
It seems that libcmtspeechdata + pulseaudio-module-cmtspeech-n9xx is
enough to get calls to work. Now. I could not get configure on these
packages to work, so I hard-coded build scripts (mkit). You'll need to
symlink resulting .so to pulseaudio directory (see
/my/pulseaudio-module-cmtspeech-n9xx/src/cmtspeech/mkit). I leave binaries in,
since this is non-trivial to compile. Some memory allocation stuff was
missing. I faked it; it seems it is not needed in the first call.
untar in the root directory of n900. Reset n900, no need to log in
into console, connect using ssh -X root at n900.
Then go to /my/tui/ofone. Run "./run" -- that should start
pulseaudio. Run "./ofone", hit "lowlevel: online", hit "contacts",
enter phone number you want to call, hit the number, it should start
dialing.
Wait a while, hit "lowlevel: hangup".
Now you should have:
/my/pulseaudio2.raw
you can play with pacat above, and /my/pulseaudio.log.*, which
contains stuff that needs to be fixed.
I've put the archive at
http://atrey.karlin.mff.cuni.cz/~pavel/outgoing/n900-my.tgz
Have fun!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2014-11-20 10:13 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 20:51 N900 modem support in 3.18-rc1 Pavel Machek
2014-11-04 20:51 ` Pavel Machek
2014-11-05 1:11 ` Sebastian Reichel
2014-11-05 1:11 ` Sebastian Reichel
2014-11-05 20:31 ` Pavel Machek
2014-11-05 20:31 ` Pavel Machek
2014-11-05 20:37 ` Pali Rohár
2014-11-05 20:37 ` Pali Rohár
2014-11-05 20:39 ` Pavel Machek
2014-11-05 20:39 ` Pavel Machek
2014-11-05 21:06 ` Pali Rohár
2014-11-05 21:06 ` Pali Rohár
2014-11-05 21:06 ` Pali Rohár
2014-11-05 22:03 ` Pavel Machek
2014-11-05 22:03 ` Pavel Machek
2014-11-05 23:45 ` Sebastian Reichel
2014-11-05 23:45 ` Sebastian Reichel
2014-11-06 12:47 ` Pavel Machek
2014-11-06 12:47 ` Pavel Machek
2014-11-06 18:03 ` Sebastian Reichel
2014-11-06 18:03 ` Sebastian Reichel
2014-11-06 22:50 ` Pavel Machek
2014-11-06 22:50 ` Pavel Machek
2014-11-06 23:01 ` Pali Rohár
2014-11-06 23:01 ` Pali Rohár
2014-11-07 7:04 ` Ivaylo Dimitrov
2014-11-07 7:04 ` Ivaylo Dimitrov
2014-11-13 16:24 ` Pavel Machek
2014-11-13 16:24 ` Pavel Machek
2014-11-14 7:04 ` Ivaylo Dimitrov
2014-11-14 7:04 ` Ivaylo Dimitrov
2014-11-14 17:20 ` Sebastian Reichel
2014-11-14 17:20 ` Sebastian Reichel
2014-11-14 17:34 ` Pali Rohár
2014-11-14 17:34 ` Pali Rohár
2014-11-14 22:05 ` Sebastian Reichel
2014-11-14 22:05 ` Sebastian Reichel
2014-11-14 19:54 ` Ivaylo Dimitrov
2014-11-14 19:54 ` Ivaylo Dimitrov
2014-11-14 21:14 ` Pavel Machek
2014-11-14 21:14 ` Pavel Machek
2014-11-14 21:57 ` Sebastian Reichel
2014-11-14 21:57 ` Sebastian Reichel
2014-11-20 10:13 ` Pavel Machek [this message]
2014-11-20 10:13 ` voice calls on N900 working (off-line) was " Pavel Machek
2014-11-20 10:17 ` Pavel Machek
2014-11-20 10:17 ` Pavel Machek
2014-11-25 23:21 ` GPRS data on N900 working " Pavel Machek
2014-11-25 23:21 ` Pavel Machek
2015-02-11 18:32 ` Voice calls working on N900 (*) (was Re: N900 modem support in 3.18-rc1) Pavel Machek
2015-02-11 18:32 ` Pavel Machek
2015-02-11 20:56 ` Pavel Machek
2015-02-11 20:56 ` Pavel Machek
2014-11-13 16:21 ` N900 modem support in 3.18-rc1 Pavel Machek
2014-11-13 16:21 ` Pavel Machek
2014-11-13 17:45 ` Tony Lindgren
2014-11-13 17:45 ` Tony Lindgren
2014-11-13 18:18 ` Aaro Koskinen
2014-11-13 18:18 ` Aaro Koskinen
2014-11-16 10:12 ` Pavel Machek
2014-11-16 10:12 ` Pavel Machek
2014-11-16 12:29 ` Robert Jarzmik
2014-11-16 12:29 ` Robert Jarzmik
2014-11-18 7:42 ` Pavel Machek
2014-11-18 7:42 ` Pavel Machek
2014-11-19 19:01 ` Robert Jarzmik
2014-11-19 19:01 ` Robert Jarzmik
2014-11-14 7:37 ` Pavel Machek
2014-11-14 7:37 ` Pavel Machek
2014-11-14 16:53 ` Sebastian Reichel
2014-11-14 16:53 ` Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141120101320.GA6356@amd \
--to=pavel@ucw.cz \
--cc=aaro.koskinen@iki.fi \
--cc=freemangordon@abv.bg \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=sakari.ailus@iki.fi \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.