sound.c (833f7023485f5869598f9e6e3635e859ca63bd6d) sound.c (bf8ca271a362ff85cfb50f0a682df6cfe0077429)
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
3 * (C) 1997 Luigi Rizzo (luigi@iet.unipi.it)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 422 unchanged lines hidden (view full) ---

431
432 snprintf(buf, size, "FreeBSD Audio Driver (newpcm) %s %s\n"
433 "Installed devices:\n", __DATE__, __TIME__);
434
435 for (i = 0; i <= devclass_get_maxunit(pcm_devclass); i++) {
436 d = gsd(i);
437 if (!d) continue;
438 dev = devclass_get_device(pcm_devclass, i);
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
3 * (C) 1997 Luigi Rizzo (luigi@iet.unipi.it)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 422 unchanged lines hidden (view full) ---

431
432 snprintf(buf, size, "FreeBSD Audio Driver (newpcm) %s %s\n"
433 "Installed devices:\n", __DATE__, __TIME__);
434
435 for (i = 0; i <= devclass_get_maxunit(pcm_devclass); i++) {
436 d = gsd(i);
437 if (!d) continue;
438 dev = devclass_get_device(pcm_devclass, i);
439 if (1) snprintf(buf + strlen(buf), size - strlen(buf),
440 "pcm%d: <%s> %s (%d/%d channels%s)\n",
441 i, device_get_desc(dev), d->status,
442 d->playcount, d->reccount,
439 if (1) {
440 snprintf(buf + strlen(buf), size - strlen(buf),
441 "pcm%d: <%s> %s",
442 i, device_get_desc(dev), d->status);
443 if (d->chancount > 0)
444 snprintf(buf + strlen(buf), size - strlen(buf),
445 " (%dp/%dr channels%s)\n",
446 d->playcount, d->reccount,
443 (!(d->flags & SD_F_SIMPLEX))? " duplex" : "");
447 (!(d->flags & SD_F_SIMPLEX))? " duplex" : "");
448 else
449 snprintf(buf + strlen(buf), size - strlen(buf),
450 " (mixer only)");
451 }
444 }
445 return strlen(buf);
446}
447
448static int
449status_read(struct uio *buf)
450{
451 static char status_buf[4096];

--- 13 unchanged lines hidden ---
452 }
453 return strlen(buf);
454}
455
456static int
457status_read(struct uio *buf)
458{
459 static char status_buf[4096];

--- 13 unchanged lines hidden ---