Re: [PATCH 1/6] android/client: Support new API for Audio HAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrei,

On Wednesday 05 of November 2014 14:41:48 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> 
> Add support for new parameter in open_output_stream().
> ---
>  android/client/if-audio.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/android/client/if-audio.c b/android/client/if-audio.c
> index f3f87fb..65e2f2f 100644
> --- a/android/client/if-audio.c
> +++ b/android/client/if-audio.c
> @@ -60,7 +60,14 @@ SINTMAP(audio_channel_mask_t, -1,
> "(AUDIO_CHANNEL_INVALID)") DELEMENT(AUDIO_CHANNEL_OUT_MONO),
>  	DELEMENT(AUDIO_CHANNEL_OUT_STEREO),
>  	DELEMENT(AUDIO_CHANNEL_OUT_QUAD),
> +#if ANDROID_VERSION < PLATFORM_VER(5, 0, 0)
>  	DELEMENT(AUDIO_CHANNEL_OUT_SURROUND),
> +#else
> +	DELEMENT(AUDIO_CHANNEL_OUT_QUAD_BACK),
> +	DELEMENT(AUDIO_CHANNEL_OUT_QUAD_SIDE),
> +	DELEMENT(AUDIO_CHANNEL_OUT_5POINT1_BACK),
> +	DELEMENT(AUDIO_CHANNEL_OUT_5POINT1_SIDE),
> +#endif
>  	DELEMENT(AUDIO_CHANNEL_OUT_5POINT1),
>  	DELEMENT(AUDIO_CHANNEL_OUT_7POINT1),
>  	DELEMENT(AUDIO_CHANNEL_OUT_ALL),
> @@ -305,12 +312,21 @@ static void open_output_stream_p(int argc, const char
> **argv) }
>  	pthread_mutex_unlock(&state_mutex);
> 
> +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
> +	err = if_audio->open_output_stream(if_audio,
> +						0,
> +						AUDIO_DEVICE_OUT_ALL_A2DP,
> +						AUDIO_OUTPUT_FLAG_NONE,
> +						NULL,
> +						&stream_out, NULL);
> +#else
>  	err = if_audio->open_output_stream(if_audio,
>  						0,
>  						AUDIO_DEVICE_OUT_ALL_A2DP,
>  						AUDIO_OUTPUT_FLAG_NONE,
>  						NULL,
>  						&stream_out);
> +#endif
>  	if (err < 0) {
>  		haltest_error("open output stream returned %d\n", err);
>  		return;

All patches in this set are now applied, thanks.

-- 
BR
Szymon Janc
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux