Lines Matching defs:device
197 /* Set the hardware parameters of the given ALSA device. Returns the
539 /* First we try to find a device string with a superset of the
540 * requested channel map. We iterate through our device table from
542 * find a working device that way, we iterate backwards, and check
600 /* OK, we didn't find any good device, so let's try the raw hw: stuff */
676 const char *device,
693 pa_assert(device);
697 d = pa_xstrdup(device);
707 pa_log_info("Error opening PCM device %s: %s", d, pa_alsa_strerror(err));
751 pa_log("Device %s has %u channels, but PulseAudio supports only %u channels. Unable to use the device.",
1009 pa_proplist_setf(p, "alsa.device", "%u", snd_pcm_info_get_device(pcm_info));
1048 pa_log_warn("Error opening low-level control device '%s': %s", name, snd_strerror(err));
1053 pa_log_warn("Control device %s card info: %s", name, snd_strerror(err));
1123 pa_log_warn("Could not recover alsa device from SUSPENDED state, trying to restart PCM");
1359 t = pa_sprintf_malloc("/sys/class/sound/card%i/device/driver/module", card);
1388 char *pa_alsa_get_reserve_name(const char *device) {
1392 pa_assert(device);
1394 if ((t = strchr(device, ':')))
1395 device = t+1;
1397 if ((i = snd_card_get_index(device)) < 0) {
1400 if (pa_atoi(device, &k) < 0)
1617 unsigned int device) {
1631 if (snd_hctl_elem_get_device(helem) != device)
1638 snd_mixer_elem_t *pa_alsa_mixer_find_card(snd_mixer_t *mixer, struct pa_alsa_mixer_id *alsa_id, unsigned int device) {
1639 return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_CARD, alsa_id->name, alsa_id->index, device);
1642 snd_mixer_elem_t *pa_alsa_mixer_find_pcm(snd_mixer_t *mixer, const char *name, unsigned int device) {
1643 return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_PCM, name, 0, device);
1772 pa_log("Error opening hctl device: %s", pa_alsa_strerror(err));
1875 unsigned int device;
1889 device = snd_hctl_elem_get_device(elem);
1893 pa_log_debug("ELD info empty (for device=%d)", device);
1897 pa_log_debug("ELD info has wrong size (for device=%d)", device);
1904 pa_log_debug("No monitor name in ELD info (for device=%d)", device);
1910 pa_log_debug("Monitor name in ELD info is '%s' (for device=%d)", eld->monitor_name, device);