Module Name: src Committed By: snj Date: Sat Sep 23 17:13:10 UTC 2017
Modified Files: src/sys/dev [netbsd-8]: audio.c audiovar.h Log Message: Pull up following revision(s) (requested by isaki in ticket #278): sys/dev/audiovar.h: revision 1.61-1.62 sys/dev/audiovar.h: revision 1.63 via patch sys/dev/audio.c: revision 1.381, 1.390, 1.391, 1.393 sys/dev/audio.c: revision 1.394 via patch Use do .. while (0) for macros. -- Introduce audio_destroy_pfilters()/audio_destroy_rfilters() and use it. -- Remove dead codes. chan will never be NULL in SIMPLEQ_FOREACH. -- Move defines to the appropriate place. -- Remove mixer chan from sc_audiochan. Now sc_audiochan contains opened audio chan (and first special element) only. First I splitted sc_audiochan into sc_audiochan which has audio chan (and first special element) and sc_mixerchan which has mixer chan only. However nobody else refers this sc_mixerchan except additions to list and deletions from list. So mixer chan's list is not necessary. -- Split the first special element from sc_audiochan list. - This makes sc_audiochan a list of only open audio chan. - "SIMPLEQ_FIRST(&sc->sc_audiochan)->vc" is now "sc->hwvc". No functional changes (except one debug message). To generate a diff of this commit: cvs rdiff -u -r1.357.2.7 -r1.357.2.8 src/sys/dev/audio.c cvs rdiff -u -r1.55.2.2 -r1.55.2.3 src/sys/dev/audiovar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.