From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCHv4 04/12] android/handsfree: Add SCO Audio IPC
Date: Fri, 9 May 2014 11:07:05 +0300 [thread overview]
Message-ID: <20140509080703.GC23010@aemeltch-MOBL1> (raw)
In-Reply-To: <1493986.xzIdKIrlLQ@uw000953>
Hi Szymon,
On Fri, May 09, 2014 at 10:02:11AM +0200, Szymon Janc wrote:
> Hi,
>
> On Friday 09 of May 2014 10:37:27 Andrei Emeltchenko wrote:
> > Hi Luiz,
> >
> > On Thu, May 08, 2014 at 04:22:35PM +0300, Luiz Augusto von Dentz wrote:
> > > > static bool connect_sco(void)
> > > > @@ -904,7 +930,7 @@ static bool connect_sco(void)
> > > > device.negotiated_codec != CODEC_ID_CVSD)
> > > > voice_settings = BT_VOICE_TRANSPARENT;
> > > > else
> > > > - voice_settings = BT_VOICE_CVSD_16BIT;
> > > > + voice_settings = 0;
> > >
> > > What is the reason for changing this value to 0?
> >
> > Otherwise we always call setsockopt which fails in old kernels.
> >
> > in sco_set():
> > if (!voice)
> > return TRUE;
> >
> > bt_voice.setting = voice;
> > if (setsockopt(sock, SOL_BLUETOOTH, BT_VOICE, &bt_voice,
> > sizeof(bt_voice)) < 0) {
> > ERROR_FAILED(err, "setsockopt(BT_VOICE)", errno);
> > return FALSE;
> > }
>
> Mgmt 1.3 is already required by Android bluetoothd (kernel 3.9+) and most
> likely this dependency will be bumped to 1.4 or 1.5. So I wouldn't worry much
> about older kernels.
The reason I add this patch was not because I specially like old kernels
but because this is real use case. What is the default kernel for Android
4.4?
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2014-05-09 8:07 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 12:25 [PATCHv4 01/12] android/hal-sco: Add audio HAL for SCO handling Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 02/12] android/hal-audio-hsp: Add open_output_stream() Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 03/12] android/audio: Add Audio SCO message API Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 04/12] android/handsfree: Add SCO Audio IPC Andrei Emeltchenko
2014-05-08 13:22 ` Luiz Augusto von Dentz
2014-05-09 7:32 ` Andrei Emeltchenko
2014-05-09 7:37 ` Andrei Emeltchenko
2014-05-09 8:02 ` Szymon Janc
2014-05-09 8:06 ` Luiz Augusto von Dentz
2014-05-09 8:07 ` Andrei Emeltchenko [this message]
2014-05-09 8:11 ` Luiz Augusto von Dentz
2014-05-09 8:13 ` Szymon Janc
2014-05-08 12:25 ` [PATCHv4 05/12] android/hal-sco: Implement Audio IPC on Audio HAL Andrei Emeltchenko
2014-05-08 13:24 ` Luiz Augusto von Dentz
2014-05-08 12:25 ` [PATCHv4 06/12] android/ipc: Use error printing error messages Andrei Emeltchenko
2014-05-08 13:27 ` Luiz Augusto von Dentz
2014-05-08 12:25 ` [PATCHv4 07/12] android/haltest: Add testinng for audio SCO HAL Andrei Emeltchenko
2014-05-08 13:31 ` Luiz Augusto von Dentz
2014-05-08 12:25 ` [PATCHv4 08/12] android/audio: Add resampler support Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 09/12] audio/haltest: Make audio_stream static Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 10/12] android/audio: Add downmix support to audio SCO HAL Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 11/12] android/audio: Use resampler interface to resample SCO Andrei Emeltchenko
2014-05-08 12:25 ` [PATCHv4 12/12] android/audio: Add write to SCO Andrei Emeltchenko
2014-05-08 13:51 ` Luiz Augusto von Dentz
2014-05-09 8:14 ` Andrei Emeltchenko
2014-05-09 8:16 ` Luiz Augusto von Dentz
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=20140509080703.GC23010@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=szymon.janc@tieto.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox