Changeset 4bbfb93 in mainline
- Timestamp:
- 2012-07-05T21:06:26Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7364c6ee
- Parents:
- e941bf8
- Location:
- uspace/lib/drv/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_mixer.c
re941bf8 r4bbfb93 144 144 return ret; 145 145 } 146 /*----------------------------------------------------------------------------*/ 146 147 147 int audio_mixer_get_item_info(async_exch_t *exch, unsigned item, 148 148 const char ** name, unsigned *channels) … … 173 173 return ret; 174 174 } 175 /*----------------------------------------------------------------------------*/ 175 176 176 int audio_mixer_get_channel_info(async_exch_t *exch, unsigned item, 177 177 unsigned channel, const char **name, unsigned *volume_levels) … … 203 203 return ret; 204 204 } 205 /*----------------------------------------------------------------------------*/ 205 206 206 int audio_mixer_channel_mute_set(async_exch_t *exch, unsigned item, 207 207 unsigned channel, bool mute_status) … … 212 212 IPC_M_AUDIO_MIXER_CHANNEL_MUTE_SET, item, channel, mute_status); 213 213 } 214 /*----------------------------------------------------------------------------*/ 214 215 215 int audio_mixer_channel_mute_get(async_exch_t *exch, unsigned item, 216 216 unsigned channel, bool *mute_status) … … 225 225 return ret; 226 226 } 227 /*----------------------------------------------------------------------------*/ 227 228 228 int audio_mixer_channel_volume_set(async_exch_t *exch, unsigned item, 229 229 unsigned channel, unsigned volume) … … 234 234 IPC_M_AUDIO_MIXER_CHANNEL_VOLUME_SET, item, channel, volume); 235 235 } 236 /*----------------------------------------------------------------------------*/ 236 237 237 int audio_mixer_channel_volume_get(async_exch_t *exch, unsigned item, 238 238 unsigned channel, unsigned *volume_current, unsigned *volume_max) … … 279 279 .methods = remote_audio_mixer_iface_ops 280 280 }; 281 /*----------------------------------------------------------------------------*/ 281 282 282 void remote_audio_mixer_get_info( 283 283 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 309 309 } 310 310 } 311 /*----------------------------------------------------------------------------*/ 311 312 312 void remote_audio_mixer_get_item_info( 313 313 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 341 341 } 342 342 } 343 /*----------------------------------------------------------------------------*/ 343 344 344 void remote_audio_mixer_get_channel_info( 345 345 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 375 375 } 376 376 } 377 /*----------------------------------------------------------------------------*/ 377 378 378 void remote_audio_mixer_channel_mute_set( 379 379 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 391 391 async_answer_0(callid, ret); 392 392 } 393 /*----------------------------------------------------------------------------*/ 393 394 394 void remote_audio_mixer_channel_mute_get( 395 395 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 408 408 async_answer_1(callid, ret, mute); 409 409 } 410 /*----------------------------------------------------------------------------*/ 410 411 411 void remote_audio_mixer_channel_volume_set( 412 412 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 425 425 async_answer_0(callid, ret); 426 426 } 427 /*----------------------------------------------------------------------------*/ 427 428 428 void remote_audio_mixer_channel_volume_get( 429 429 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) -
uspace/lib/drv/generic/remote_audio_pcm_buffer.c
re941bf8 r4bbfb93 81 81 return ret; 82 82 } 83 /*----------------------------------------------------------------------------*/ 83 84 84 int audio_pcm_buffer_get_buffer(async_exch_t *exch, void **buffer, size_t *size, 85 85 unsigned *id, async_client_conn_t event_rec, void* arg) … … 110 110 return ret; 111 111 } 112 /*----------------------------------------------------------------------------*/ 112 113 113 int audio_pcm_buffer_release_buffer(async_exch_t *exch, unsigned id) 114 114 { … … 118 118 IPC_M_AUDIO_PCM_RELEASE_BUFFER, id); 119 119 } 120 /*----------------------------------------------------------------------------*/ 120 121 121 int audio_pcm_buffer_start_playback(async_exch_t *exch, unsigned id, 122 122 unsigned parts, unsigned sample_rate, uint16_t sample_size, … … 131 131 IPC_M_AUDIO_PCM_START_PLAYBACK, id, sample_rate, packed); 132 132 } 133 /*----------------------------------------------------------------------------*/ 133 134 134 int audio_pcm_buffer_stop_playback(async_exch_t *exch, unsigned id) 135 135 { … … 139 139 IPC_M_AUDIO_PCM_STOP_PLAYBACK, id); 140 140 } 141 /*----------------------------------------------------------------------------*/ 141 142 142 int audio_pcm_buffer_start_record(async_exch_t *exch, unsigned id, 143 143 unsigned sample_rate, unsigned sample_size, unsigned channels, bool sign) … … 149 149 IPC_M_AUDIO_PCM_START_RECORD, id, sample_rate, packed); 150 150 } 151 /*----------------------------------------------------------------------------*/ 151 152 152 int audio_pcm_buffer_stop_record(async_exch_t *exch, unsigned id) 153 153 { … … 186 186 .methods = remote_audio_pcm_iface_ops 187 187 }; 188 /*----------------------------------------------------------------------------*/ 188 189 189 void remote_audio_pcm_get_info_str(ddf_fun_t *fun, void *iface, 190 190 ipc_callid_t callid, ipc_call_t *call) … … 215 215 } 216 216 } 217 /*----------------------------------------------------------------------------*/ 217 218 218 void remote_audio_pcm_get_buffer(ddf_fun_t *fun, void *iface, 219 219 ipc_callid_t callid, ipc_call_t *call) … … 284 284 } 285 285 } 286 /*----------------------------------------------------------------------------*/ 286 287 287 void remote_audio_pcm_release_buffer(ddf_fun_t *fun, void *iface, 288 288 ipc_callid_t callid, ipc_call_t *call) … … 295 295 async_answer_0(callid, ret); 296 296 } 297 /*----------------------------------------------------------------------------*/ 297 298 298 void remote_audio_pcm_start_playback(ddf_fun_t *fun, void *iface, 299 299 ipc_callid_t callid, ipc_call_t *call) … … 313 313 async_answer_0(callid, ret); 314 314 } 315 /*----------------------------------------------------------------------------*/ 315 316 316 void remote_audio_pcm_stop_playback(ddf_fun_t *fun, void *iface, 317 317 ipc_callid_t callid, ipc_call_t *call) … … 324 324 async_answer_0(callid, ret); 325 325 } 326 /*----------------------------------------------------------------------------*/ 326 327 327 void remote_audio_pcm_start_record(ddf_fun_t *fun, void *iface, 328 328 ipc_callid_t callid, ipc_call_t *call) … … 341 341 async_answer_0(callid, ret); 342 342 } 343 /*----------------------------------------------------------------------------*/ 343 344 344 void remote_audio_pcm_stop_record(ddf_fun_t *fun, void *iface, 345 345 ipc_callid_t callid, ipc_call_t *call) … … 354 354 355 355 #if 0 356 /*----------------------------------------------------------------------------*/ 356 357 357 void remote_audio_mixer_get_info( 358 358 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 384 384 } 385 385 } 386 /*----------------------------------------------------------------------------*/ 386 387 387 void remote_audio_mixer_get_item_info( 388 388 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 416 416 } 417 417 } 418 /*----------------------------------------------------------------------------*/ 418 419 419 void remote_audio_mixer_get_channel_info( 420 420 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 450 450 } 451 451 } 452 /*----------------------------------------------------------------------------*/ 452 453 453 void remote_audio_mixer_channel_mute_set( 454 454 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 466 466 async_answer_0(callid, ret); 467 467 } 468 /*----------------------------------------------------------------------------*/ 468 469 469 void remote_audio_mixer_channel_mute_get( 470 470 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 483 483 async_answer_1(callid, ret, mute); 484 484 } 485 /*----------------------------------------------------------------------------*/ 485 486 486 void remote_audio_mixer_channel_volume_set( 487 487 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 500 500 async_answer_0(callid, ret); 501 501 } 502 /*----------------------------------------------------------------------------*/ 502 503 503 void remote_audio_mixer_channel_volume_get( 504 504 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
Note:
See TracChangeset
for help on using the changeset viewer.