buffer.c (87506547d26822d493cabc17ad11af379120a897) buffer.c (d55d96f61724d948b8232f933e0a93c5ba8aec6b)
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

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

394sndbuf_getxrun(struct snd_dbuf *b)
395{
396 SNDBUF_LOCKASSERT(b);
397
398 return b->xrun;
399}
400
401void
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

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

394sndbuf_getxrun(struct snd_dbuf *b)
395{
396 SNDBUF_LOCKASSERT(b);
397
398 return b->xrun;
399}
400
401void
402sndbuf_setxrun(struct snd_dbuf *b, unsigned int cnt)
402sndbuf_setxrun(struct snd_dbuf *b, unsigned int xrun)
403{
404 SNDBUF_LOCKASSERT(b);
405
403{
404 SNDBUF_LOCKASSERT(b);
405
406 b->xrun = cnt;
406 b->xrun = xrun;
407}
408
409unsigned int
410sndbuf_gethwptr(struct snd_dbuf *b)
411{
412 SNDBUF_LOCKASSERT(b);
413
414 return b->hp;

--- 180 unchanged lines hidden ---
407}
408
409unsigned int
410sndbuf_gethwptr(struct snd_dbuf *b)
411{
412 SNDBUF_LOCKASSERT(b);
413
414 return b->hp;

--- 180 unchanged lines hidden ---