Lines Matching refs:dev
53 acoustic_device_t *dev; in s_device_open() local
54 dev = (acoustic_device_t *) malloc(sizeof(*dev)); in s_device_open()
55 if (!dev) return -ENOMEM; in s_device_open()
57 memset(dev, 0, sizeof(*dev)); in s_device_open()
60 dev->common.tag = HARDWARE_DEVICE_TAG; in s_device_open()
61 dev->common.version = 0; in s_device_open()
62 dev->common.module = (hw_module_t *) module; in s_device_open()
63 dev->common.close = s_device_close; in s_device_open()
66 dev->use_handle = s_use_handle; in s_device_open()
67 dev->cleanup = s_cleanup; in s_device_open()
68 dev->set_params = s_set_params; in s_device_open()
72 *device = &dev->common; in s_device_open()
82 static status_t s_use_handle(acoustic_device_t *dev, alsa_handle_t *h) in s_use_handle() argument
87 static status_t s_cleanup(acoustic_device_t *dev) in s_cleanup() argument
93 static status_t s_set_params(acoustic_device_t *dev, in s_set_params() argument