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

Changeset 21374e03 in mainline


Ignore:
Timestamp:
2018-12-17T21:47:08Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
c65590a
Parents:
375bcff
Message:

audio_pcm_open() should accept service name

It incorrectly expects a devman device name, contrary to documentation
and to user expectation.

File:
1 edited

Legend:

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

    r375bcff r21374e03  
    142142audio_pcm_sess_t *audio_pcm_open(const char *name)
    143143{
    144         devman_handle_t device_handle = 0;
    145         const errno_t ret = devman_fun_get_handle(name, &device_handle, 0);
     144        service_id_t sid;
     145        const errno_t ret = loc_service_get_id(name, &sid, 0);
    146146        if (ret != EOK)
    147147                return NULL;
    148         return devman_device_connect(device_handle, IPC_FLAG_BLOCKING);
     148        return loc_service_connect(sid, INTERFACE_DDF, 0);
    149149}
    150150
Note: See TracChangeset for help on using the changeset viewer.