1/* 2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/pcm/sound.h> 28 29#include "mixer_if.h" 30 |
31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/mixer.c 130640 2004-06-17 17:16:53Z phk $"); |
32 33MALLOC_DEFINE(M_MIXER, "mixer", "mixer"); 34 35#define MIXER_NAMELEN 16 36struct snd_mixer { 37 KOBJ_FIELDS; 38 const char *type; 39 void *devinfo; --- 438 unchanged lines hidden (view full) --- 478} 479 480#ifdef USING_DEVFS 481static void 482mixer_clone(void *arg, char *name, int namelen, struct cdev **dev) 483{ 484 struct snddev_info *sd; 485 |
486 if (*dev != NULL) |
487 return; 488 if (strcmp(name, "mixer") == 0) { 489 sd = devclass_get_softc(pcm_devclass, snd_unit); 490 if (sd != NULL) 491 *dev = sd->mixer_dev; 492 } 493} 494 --- 18 unchanged lines hidden --- |