Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pcm/sound.h
Show First 20 Lines • Show All 405 Lines • ▼ Show 20 Lines | struct snddev_info { | ||||
struct sysctl_ctx_list play_sysctl_ctx, rec_sysctl_ctx; | struct sysctl_ctx_list play_sysctl_ctx, rec_sysctl_ctx; | ||||
struct sysctl_oid *play_sysctl_tree, *rec_sysctl_tree; | struct sysctl_oid *play_sysctl_tree, *rec_sysctl_tree; | ||||
struct cv cv; | struct cv cv; | ||||
}; | }; | ||||
void sound_oss_sysinfo(oss_sysinfo *); | void sound_oss_sysinfo(oss_sysinfo *); | ||||
int sound_oss_card_info(oss_card_info *); | int sound_oss_card_info(oss_card_info *); | ||||
#define PCM_STATUS_NONE 0x00 | |||||
hselasky: Change PCM_MODE_NONE into PCM_MODE_MIXER | |||||
#define PCM_STATUS_PLAY 0x01 | |||||
#define PCM_STATUS_REC 0x02 | |||||
#define PCM_LOCKOWNED(d) mtx_owned((d)->lock) | #define PCM_LOCKOWNED(d) mtx_owned((d)->lock) | ||||
#define PCM_LOCK(d) mtx_lock((d)->lock) | #define PCM_LOCK(d) mtx_lock((d)->lock) | ||||
#define PCM_UNLOCK(d) mtx_unlock((d)->lock) | #define PCM_UNLOCK(d) mtx_unlock((d)->lock) | ||||
#define PCM_TRYLOCK(d) mtx_trylock((d)->lock) | #define PCM_TRYLOCK(d) mtx_trylock((d)->lock) | ||||
#define PCM_LOCKASSERT(d) mtx_assert((d)->lock, MA_OWNED) | #define PCM_LOCKASSERT(d) mtx_assert((d)->lock, MA_OWNED) | ||||
#define PCM_UNLOCKASSERT(d) mtx_assert((d)->lock, MA_NOTOWNED) | #define PCM_UNLOCKASSERT(d) mtx_assert((d)->lock, MA_NOTOWNED) | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |
Change PCM_MODE_NONE into PCM_MODE_MIXER