From: Szymon Janc <szymon.janc@tieto.com>
To: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] android/client: Add a2dp audio config callback
Date: Thu, 27 Nov 2014 18:16:51 +0100 [thread overview]
Message-ID: <2687365.OAm2ReHCmt@uw000953> (raw)
In-Reply-To: <1416818807-24433-1-git-send-email-jakub.tyszkowski@tieto.com>
Hi Jakub,
On Monday 24 of November 2014 09:46:46 Jakub Tyszkowski wrote:
> This is Android 5 API callback.
> ---
> android/client/if-av.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/android/client/if-av.c b/android/client/if-av.c
> index 8d1f69b..85c641b 100644
> --- a/android/client/if-av.c
> +++ b/android/client/if-av.c
> @@ -50,10 +50,22 @@ static void audio_state(btav_audio_state_t state, bt_bdaddr_t *bd_addr)
> bt_bdaddr_t2str(bd_addr, last_addr));
> }
>
> +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
> +static void audio_config(bt_bdaddr_t *bd_addr, uint32_t sample_rate,
> + uint8_t channel_count) {
> + haltest_info("%s: remote_addr=%s\n sample_rate=%d\n channel_count=%d\n",
> + __func__, bt_bdaddr_t2str(bd_addr, last_addr),
> + sample_rate, channel_count);
> +}
> +#endif
> +
> static btav_callbacks_t av_cbacks = {
> .size = sizeof(av_cbacks),
> .connection_state_cb = connection_state,
> - .audio_state_cb = audio_state
> + .audio_state_cb = audio_state,
> +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
> + .audio_config_cb = audio_config,
> +#endif
> };
>
> /* init */
Both patches applied, thanks.
--
Best regards,
Szymon Janc
prev parent reply other threads:[~2014-11-27 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 8:46 [PATCH 1/2] android/client: Add a2dp audio config callback Jakub Tyszkowski
2014-11-24 8:46 ` [PATCH 2/2] android/client: Add a2dp sink support Jakub Tyszkowski
2014-11-27 17:16 ` Szymon Janc [this message]
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=2687365.OAm2ReHCmt@uw000953 \
--to=szymon.janc@tieto.com \
--cc=jakub.tyszkowski@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
/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