Changeset 8a7d78cc in mainline for uspace/lib/drv/generic/remote_audio_mixer.c
- Timestamp:
- 2013-04-10T19:25:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1912b45
- Parents:
- b1dfe13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_mixer.c
rb1dfe13 r8a7d78cc 117 117 * CLIENT SIDE 118 118 */ 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 */ 119 127 int audio_mixer_get_info(async_exch_t *exch, const char **name, unsigned *items) 120 128 { … … 145 153 } 146 154 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 */ 147 163 int audio_mixer_get_item_info(async_exch_t *exch, unsigned item, 148 const char ** 164 const char **name, unsigned *channels) 149 165 { 150 166 if (!exch) … … 174 190 } 175 191 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 */ 176 201 int audio_mixer_get_channel_info(async_exch_t *exch, unsigned item, 177 202 unsigned channel, const char **name, unsigned *volume_levels) … … 204 229 } 205 230 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 */ 206 239 int audio_mixer_channel_mute_set(async_exch_t *exch, unsigned item, 207 240 unsigned channel, bool mute_status) … … 213 246 } 214 247 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 */ 215 256 int audio_mixer_channel_mute_get(async_exch_t *exch, unsigned item, 216 257 unsigned channel, bool *mute_status) … … 226 267 } 227 268 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 */ 228 277 int audio_mixer_channel_volume_set(async_exch_t *exch, unsigned item, 229 278 unsigned channel, unsigned volume) … … 235 284 } 236 285 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 */ 237 295 int audio_mixer_channel_volume_get(async_exch_t *exch, unsigned item, 238 296 unsigned channel, unsigned *volume_current, unsigned *volume_max)
Note:
See TracChangeset
for help on using the changeset viewer.