Home | History | Annotate | Download | only in audio

Lines Matching refs:ext

48 	snd_ctl_ext_t ext;
73 static void bluetooth_close(snd_ctl_ext_t *ext)
75 struct bluetooth_data *data = ext->private_data;
77 DBG("ext %p", ext);
82 static int bluetooth_elem_count(snd_ctl_ext_t *ext)
84 DBG("ext %p", ext);
89 static int bluetooth_elem_list(snd_ctl_ext_t *ext,
92 DBG("ext %p offset %d id %p", ext, offset, id);
104 static snd_ctl_ext_key_t bluetooth_find_elem(snd_ctl_ext_t *ext,
110 DBG("ext %p id %p name '%s'", ext, id, name);
119 static int bluetooth_get_attribute(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key,
122 DBG("ext %p key %ld", ext, key);
131 static int bluetooth_get_integer_info(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key,
134 DBG("ext %p key %ld", ext, key);
202 static int bluetooth_read_integer(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key,
205 struct bluetooth_data *data = ext->private_data;
210 DBG("ext %p key %ld", ext, key);
224 static int bluetooth_write_integer(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key,
227 struct bluetooth_data *data = ext->private_data;
233 DBG("ext %p key %ld", ext, key);
235 ret = bluetooth_read_integer(ext, key, &current);
256 static int bluetooth_read_event(snd_ctl_ext_t *ext, snd_ctl_elem_id_t *id,
259 struct bluetooth_data *data = ext->private_data;
265 DBG("ext %p id %p", ext, id);
357 data->ext.version = SND_CTL_EXT_VERSION;
358 data->ext.card_idx = -1;
360 strncpy(data->ext.id, "bluetooth", sizeof(data->ext.id) - 1);
361 strncpy(data->ext.driver, "Bluetooth-Audio", sizeof(data->ext.driver) - 1);
362 strncpy(data->ext.name, "Bluetooth Audio", sizeof(data->ext.name) - 1);
363 strncpy(data->ext.longname, "Bluetooth Audio", sizeof(data->ext.longname) - 1);
364 strncpy(data->ext.mixername, "Bluetooth Audio", sizeof(data->ext.mixername) - 1);
366 data->ext.callback = &bluetooth_callback;
367 data->ext.poll_fd = data->sock;
368 data->ext.private_data = data;
370 err = snd_ctl_ext_create(&data->ext, name, mode);
374 *handlep = data->ext.handle;