Lines Matching defs:device
42 int pa_oss_open(const char *device, int *mode, int* pcaps) {
48 pa_assert(device);
56 if ((fd = pa_open_cloexec(device, O_RDWR|O_NDELAY, 0)) >= 0) {
67 pa_log_warn("'%s' doesn't support full duplex", device);
72 if ((fd = pa_open_cloexec(device, (*mode = O_WRONLY)|O_NDELAY, 0)) < 0) {
73 if ((fd = pa_open_cloexec(device, (*mode = O_RDONLY)|O_NDELAY, 0)) < 0) {
74 pa_log("open('%s'): %s", device, pa_cstrerror(errno));
79 if ((fd = pa_open_cloexec(device, *mode|O_NDELAY, 0)) < 0) {
80 pa_log("open('%s'): %s", device, pa_cstrerror(errno));
208 pa_log_warn("device doesn't support sample format %s, changed to %s.",
220 pa_log_warn("device doesn't support %i channels, using %i channels.", ss->channels, channels);
232 pa_log_warn("device doesn't support %i Hz, changed to %i Hz.", ss->rate, speed);
349 pa_log_warn("failed to open OSS sndstat device: %s", pa_cstrerror(errno));
356 unsigned device;
371 if (sscanf(line, "%u: ", &device) != 1 && sscanf(line, "pcm%u: ", &device) != 1)
374 if (device == n) {
386 pa_snprintf(name, l, "%u - %s", device, k);
405 int pa_oss_open_mixer_for_device(const char *device) {
410 if ((n = get_device_number(device)) == -2)
422 pa_log_warn("Failed to open mixer '%s': %s", device, pa_cstrerror(errno));