Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4bbfb93 in mainline


Ignore:
Timestamp:
2012-07-05T21:06:26Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
7364c6e
Parents:
e941bf8
Message:

libdrv/audio: Remove optical separators.

Location:
uspace/lib/drv/generic
Files:
2 edited

Legend:

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

    re941bf8 r4bbfb93  
    144144        return ret;
    145145}
    146 /*----------------------------------------------------------------------------*/
     146
    147147int audio_mixer_get_item_info(async_exch_t *exch, unsigned item,
    148148    const char ** name, unsigned *channels)
     
    173173        return ret;
    174174}
    175 /*----------------------------------------------------------------------------*/
     175
    176176int audio_mixer_get_channel_info(async_exch_t *exch, unsigned item,
    177177    unsigned channel, const char **name, unsigned *volume_levels)
     
    203203        return ret;
    204204}
    205 /*----------------------------------------------------------------------------*/
     205
    206206int audio_mixer_channel_mute_set(async_exch_t *exch, unsigned item,
    207207    unsigned channel, bool mute_status)
     
    212212            IPC_M_AUDIO_MIXER_CHANNEL_MUTE_SET, item, channel, mute_status);
    213213}
    214 /*----------------------------------------------------------------------------*/
     214
    215215int audio_mixer_channel_mute_get(async_exch_t *exch, unsigned item,
    216216    unsigned channel, bool *mute_status)
     
    225225        return ret;
    226226}
    227 /*----------------------------------------------------------------------------*/
     227
    228228int audio_mixer_channel_volume_set(async_exch_t *exch, unsigned item,
    229229    unsigned channel, unsigned volume)
     
    234234            IPC_M_AUDIO_MIXER_CHANNEL_VOLUME_SET, item, channel, volume);
    235235}
    236 /*----------------------------------------------------------------------------*/
     236
    237237int audio_mixer_channel_volume_get(async_exch_t *exch, unsigned item,
    238238    unsigned channel, unsigned *volume_current, unsigned *volume_max)
     
    279279        .methods = remote_audio_mixer_iface_ops
    280280};
    281 /*----------------------------------------------------------------------------*/
     281
    282282void remote_audio_mixer_get_info(
    283283    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    309309        }
    310310}
    311 /*----------------------------------------------------------------------------*/
     311
    312312void remote_audio_mixer_get_item_info(
    313313    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    341341        }
    342342}
    343 /*----------------------------------------------------------------------------*/
     343
    344344void remote_audio_mixer_get_channel_info(
    345345    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    375375        }
    376376}
    377 /*----------------------------------------------------------------------------*/
     377
    378378void remote_audio_mixer_channel_mute_set(
    379379    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    391391        async_answer_0(callid, ret);
    392392}
    393 /*----------------------------------------------------------------------------*/
     393
    394394void remote_audio_mixer_channel_mute_get(
    395395    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    408408        async_answer_1(callid, ret, mute);
    409409}
    410 /*----------------------------------------------------------------------------*/
     410
    411411void remote_audio_mixer_channel_volume_set(
    412412    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    425425        async_answer_0(callid, ret);
    426426}
    427 /*----------------------------------------------------------------------------*/
     427
    428428void remote_audio_mixer_channel_volume_get(
    429429    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  
    8181        return ret;
    8282}
    83 /*----------------------------------------------------------------------------*/
     83
    8484int audio_pcm_buffer_get_buffer(async_exch_t *exch, void **buffer, size_t *size,
    8585    unsigned *id, async_client_conn_t event_rec, void* arg)
     
    110110        return ret;
    111111}
    112 /*----------------------------------------------------------------------------*/
     112
    113113int audio_pcm_buffer_release_buffer(async_exch_t *exch, unsigned id)
    114114{
     
    118118            IPC_M_AUDIO_PCM_RELEASE_BUFFER, id);
    119119}
    120 /*----------------------------------------------------------------------------*/
     120
    121121int audio_pcm_buffer_start_playback(async_exch_t *exch, unsigned id,
    122122    unsigned parts, unsigned sample_rate, uint16_t sample_size,
     
    131131            IPC_M_AUDIO_PCM_START_PLAYBACK, id, sample_rate, packed);
    132132}
    133 /*----------------------------------------------------------------------------*/
     133
    134134int audio_pcm_buffer_stop_playback(async_exch_t *exch, unsigned id)
    135135{
     
    139139            IPC_M_AUDIO_PCM_STOP_PLAYBACK, id);
    140140}
    141 /*----------------------------------------------------------------------------*/
     141
    142142int audio_pcm_buffer_start_record(async_exch_t *exch, unsigned id,
    143143    unsigned sample_rate, unsigned sample_size, unsigned channels, bool sign)
     
    149149            IPC_M_AUDIO_PCM_START_RECORD, id, sample_rate, packed);
    150150}
    151 /*----------------------------------------------------------------------------*/
     151
    152152int audio_pcm_buffer_stop_record(async_exch_t *exch, unsigned id)
    153153{
     
    186186        .methods = remote_audio_pcm_iface_ops
    187187};
    188 /*----------------------------------------------------------------------------*/
     188
    189189void remote_audio_pcm_get_info_str(ddf_fun_t *fun, void *iface,
    190190    ipc_callid_t callid, ipc_call_t *call)
     
    215215        }
    216216}
    217 /*----------------------------------------------------------------------------*/
     217
    218218void remote_audio_pcm_get_buffer(ddf_fun_t *fun, void *iface,
    219219    ipc_callid_t callid, ipc_call_t *call)
     
    284284        }
    285285}
    286 /*----------------------------------------------------------------------------*/
     286
    287287void remote_audio_pcm_release_buffer(ddf_fun_t *fun, void *iface,
    288288    ipc_callid_t callid, ipc_call_t *call)
     
    295295        async_answer_0(callid, ret);
    296296}
    297 /*----------------------------------------------------------------------------*/
     297
    298298void remote_audio_pcm_start_playback(ddf_fun_t *fun, void *iface,
    299299    ipc_callid_t callid, ipc_call_t *call)
     
    313313        async_answer_0(callid, ret);
    314314}
    315 /*----------------------------------------------------------------------------*/
     315
    316316void remote_audio_pcm_stop_playback(ddf_fun_t *fun, void *iface,
    317317    ipc_callid_t callid, ipc_call_t *call)
     
    324324        async_answer_0(callid, ret);
    325325}
    326 /*----------------------------------------------------------------------------*/
     326
    327327void remote_audio_pcm_start_record(ddf_fun_t *fun, void *iface,
    328328    ipc_callid_t callid, ipc_call_t *call)
     
    341341        async_answer_0(callid, ret);
    342342}
    343 /*----------------------------------------------------------------------------*/
     343
    344344void remote_audio_pcm_stop_record(ddf_fun_t *fun, void *iface,
    345345    ipc_callid_t callid, ipc_call_t *call)
     
    354354
    355355#if 0
    356 /*----------------------------------------------------------------------------*/
     356
    357357void remote_audio_mixer_get_info(
    358358    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    384384        }
    385385}
    386 /*----------------------------------------------------------------------------*/
     386
    387387void remote_audio_mixer_get_item_info(
    388388    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    416416        }
    417417}
    418 /*----------------------------------------------------------------------------*/
     418
    419419void remote_audio_mixer_get_channel_info(
    420420    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    450450        }
    451451}
    452 /*----------------------------------------------------------------------------*/
     452
    453453void remote_audio_mixer_channel_mute_set(
    454454    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    466466        async_answer_0(callid, ret);
    467467}
    468 /*----------------------------------------------------------------------------*/
     468
    469469void remote_audio_mixer_channel_mute_get(
    470470    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    483483        async_answer_1(callid, ret, mute);
    484484}
    485 /*----------------------------------------------------------------------------*/
     485
    486486void remote_audio_mixer_channel_volume_set(
    487487    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     
    500500        async_answer_0(callid, ret);
    501501}
    502 /*----------------------------------------------------------------------------*/
     502
    503503void remote_audio_mixer_channel_volume_get(
    504504    ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
Note: See TracChangeset for help on using the changeset viewer.