Changeset 8a7d78cc in mainline


Ignore:
Timestamp:
2013-04-10T19:25:16Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1912b45
Parents:
b1dfe13
Message:

libdrv, audio_mixer: comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_audio_mixer.c

    rb1dfe13 r8a7d78cc  
    117117 * CLIENT SIDE
    118118 */
     119
     120/**
     121 * Query audio mixer for basic info (name and items count).
     122 * @param[in] exch IPC exchange connected to the device
     123 * @param[out] name Audio mixer string identifier
     124 * @param[out] items Number of items controlled by the mixer.
     125 * @return Error code.
     126 */
    119127int audio_mixer_get_info(async_exch_t *exch, const char **name, unsigned *items)
    120128{
     
    145153}
    146154
     155/**
     156 * Query audio mixer for item specific info (name and channels count).
     157 * @param[in] exch IPC exchange connected to the device
     158 * @param[in] item The control item
     159 * @param[out] name Control item string identifier.
     160 * @param[out] channles Number of channels associated with this control item.
     161 * @return Error code.
     162 */
    147163int audio_mixer_get_item_info(async_exch_t *exch, unsigned item,
    148     const char ** name, unsigned *channels)
     164    const char **name, unsigned *channels)
    149165{
    150166        if (!exch)
     
    174190}
    175191
     192/**
     193 * Query audio mixer for channel specific info (name and volume levels).
     194 * @param[in] exch IPC exchange connected to the device.
     195 * @param[in] item TH control item controlling the channel.
     196 * @param[in] channel The channel.
     197 * @param[out] name Audio channel string identifier.
     198 * @param[out] volume_levels Number of volume levels.
     199 * @return Error code.
     200 */
    176201int audio_mixer_get_channel_info(async_exch_t *exch, unsigned item,
    177202    unsigned channel, const char **name, unsigned *volume_levels)
     
    204229}
    205230
     231/**
     232 * Set MUTE status on an audio channel.
     233 * @param[in] exch IPC exchange connected to the device.
     234 * @param[in] item The control item controlling the channel.
     235 * @param[in] channel The channel index.
     236 * @param[in] mute_status A new MUTE status.
     237 * @return Error code.
     238 */
    206239int audio_mixer_channel_mute_set(async_exch_t *exch, unsigned item,
    207240    unsigned channel, bool mute_status)
     
    213246}
    214247
     248/**
     249 * Get MUTE status on an audio channel.
     250 * @param[in] exch IPC exchange connected to the device.
     251 * @param[in] item The control item controlling the channel.
     252 * @param[in] channel The channel index.
     253 * @param[out] mute_status Currently set MUTE status.
     254 * @return Error code.
     255 */
    215256int audio_mixer_channel_mute_get(async_exch_t *exch, unsigned item,
    216257    unsigned channel, bool *mute_status)
     
    226267}
    227268
     269/**
     270 * Set VOLUME LEVEL on an audio channel.
     271 * @param[in] exch IPC exchange connected to the device.
     272 * @param[in] item The control item controlling the channel.
     273 * @param[in] channel The channel index.
     274 * @param[in] volume A new VOLUME LEVEL.
     275 * @return Error code.
     276 */
    228277int audio_mixer_channel_volume_set(async_exch_t *exch, unsigned item,
    229278    unsigned channel, unsigned volume)
     
    235284}
    236285
     286/**
     287 * Get VOLUME LEVEL on an audio channel.
     288 * @param[in] exch IPC exchange connected to the device.
     289 * @param[in] item The control item controlling the channel.
     290 * @param[in] channel The channel index.
     291 * @param[out] volume_current Currently set VOLUME LEVEL.
     292 * @param[out] volume_max Maximum VOLUME LEVEL.
     293 * @return Error code.
     294 */
    237295int audio_mixer_channel_volume_get(async_exch_t *exch, unsigned item,
    238296    unsigned channel, unsigned *volume_current, unsigned *volume_max)
Note: See TracChangeset for help on using the changeset viewer.