~sergiusens/libhybris/autotests

« back to all changes in this revision

Viewing changes to hybris/include/android/hardware/audio_policy.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-06-24 23:03:45 UTC
  • Revision ID: package-import@ubuntu.com-20130624230345-6878jmp7is1uywe0
Tags: 0.1.0+git20130606+c5d897a-0ubuntu5
* 0010-hardware-include-adding-audio-hal-related-headers-fr.patch:
  - Updating based on the version set upstream
* Adding 0011-hooks.c-no-need-to-map-strcasestr.patch:
  - Remove hook for strcasesrt, glibc verision behaves differently

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2011 The Android Open Source Project
3
 
 * Copyright (c) 2012, Code Aurora Forum. All rights reserved.
4
3
 *
5
4
 * Licensed under the Apache License, Version 2.0 (the "License");
6
5
 * you may not use this file except in compliance with the License.
127
126
     * Audio routing query functions
128
127
     */
129
128
 
130
 
#ifdef QCOM_ICS_LPA_COMPAT
131
 
    /* request an session appropriate for playback of the supplied stream type and
132
 
     * parameters */
133
 
    audio_io_handle_t (*get_session)(struct audio_policy *pol,
134
 
                                    audio_stream_type_t stream,
135
 
                                    uint32_t format,
136
 
                                    audio_output_flags_t flags,
137
 
                                    int sessionId);
138
 
 
139
 
    /* pause session created for LPA Playback */
140
 
    void (*pause_session)(struct audio_policy *pol,
141
 
                          audio_io_handle_t output,
142
 
                          audio_stream_type_t stream);
143
 
 
144
 
    /* resume session created for LPA Playback */
145
 
    void (*resume_session)(struct audio_policy *pol,
146
 
                          audio_io_handle_t output,
147
 
                          audio_stream_type_t stream);
148
 
 
149
 
    /* release session created for LPA Playback */
150
 
    void (*release_session)(struct audio_policy *pol,
151
 
                          audio_io_handle_t output);
152
 
#endif
153
 
 
154
129
    /* request an output appropriate for playback of the supplied stream type and
155
130
     * parameters */
156
131
    audio_io_handle_t (*get_output)(struct audio_policy *pol,
216
191
                                   audio_stream_type_t stream,
217
192
                                   int *index);
218
193
 
219
 
#ifndef ICS_AUDIO_BLOB
220
194
    /* sets the new stream volume at a level corresponding to the supplied
221
195
     * index for the specified device.
222
196
     * The index is within the range specified by init_stream_volume() */
230
204
                                   audio_stream_type_t stream,
231
205
                                   int *index,
232
206
                                   audio_devices_t device);
233
 
#endif
234
207
 
235
208
    /* return the strategy corresponding to a given stream type */
236
209
    uint32_t (*get_strategy_for_stream)(const struct audio_policy *pol,
295
268
                                     uint32_t *pLatencyMs,
296
269
                                     audio_output_flags_t flags);
297
270
 
298
 
#ifdef QCOM_ICS_LPA_COMPAT
299
 
    audio_io_handle_t (*open_session)(void *service,
300
 
                                     uint32_t *pDevices,
301
 
                                     uint32_t *pFormat,
302
 
                                     audio_output_flags_t flags,
303
 
                                     int32_t stream,
304
 
                                     int32_t sessionId);
305
 
 
306
 
    audio_io_handle_t (*close_session)(void *service,
307
 
                                      audio_io_handle_t output);
308
 
#endif
309
 
 
310
271
    /* creates a special output that is duplicated to the two outputs passed as
311
272
     * arguments. The duplication is performed by
312
273
     * a special mixer thread in the AudioFlinger.
405
366
                        audio_io_handle_t src_output,
406
367
                        audio_io_handle_t dst_output);
407
368
 
408
 
#ifdef QCOM_FM_ENABLED
409
 
    /* set fm audio volume. */
410
 
    int (*set_fm_volume)(void *service,
411
 
                         float volume,
412
 
                         int delay_ms);
413
 
#endif
414
 
 
415
369
    /* loads an audio hw module.
416
370
     *
417
371
     * The module name passed is the base name of the HW module library, e.g "primary" or "a2dp".