mixer.c (489c22ebb854d89934fe808f5d85f5dc4de85db5) mixer.c (64d85ef7506737f55bec0ba2dc06ed9b8772b8c4)
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
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

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

329
330 m->hwvol_mixer = SOUND_MIXER_VOLUME;
331 m->hwvol_step = 5;
332#ifdef SND_DYNSYSCTL
333 SYSCTL_ADD_INT(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)),
334 OID_AUTO, "hwvol_step", CTLFLAG_RW, &m->hwvol_step, 0, "");
335 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)),
336 OID_AUTO, "hwvol_mixer", CTLTYPE_STRING | CTLFLAG_RW, m, 0,
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
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

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

329
330 m->hwvol_mixer = SOUND_MIXER_VOLUME;
331 m->hwvol_step = 5;
332#ifdef SND_DYNSYSCTL
333 SYSCTL_ADD_INT(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)),
334 OID_AUTO, "hwvol_step", CTLFLAG_RW, &m->hwvol_step, 0, "");
335 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)),
336 OID_AUTO, "hwvol_mixer", CTLTYPE_STRING | CTLFLAG_RW, m, 0,
337 sysctl_hw_snd_hwvol_mixer, "A", "")
337 sysctl_hw_snd_hwvol_mixer, "A", "");
338#endif
339 snd_mtxunlock(m->lock);
340 return 0;
341}
342
343void
344mixer_hwvol_mute(device_t dev)
345{

--- 172 unchanged lines hidden ---
338#endif
339 snd_mtxunlock(m->lock);
340 return 0;
341}
342
343void
344mixer_hwvol_mute(device_t dev)
345{

--- 172 unchanged lines hidden ---