Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/gadget/g_audio.c
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | struct g_audio_softc { | ||||
int16_t sc_data_buf[2][G_AUDIO_BUFSIZE / 2]; | int16_t sc_data_buf[2][G_AUDIO_BUFSIZE / 2]; | ||||
uint8_t sc_volume_setting[32]; | uint8_t sc_volume_setting[32]; | ||||
uint8_t sc_volume_limit[32]; | uint8_t sc_volume_limit[32]; | ||||
uint8_t sc_sample_rate[32]; | uint8_t sc_sample_rate[32]; | ||||
}; | }; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, g_audio, CTLFLAG_RW, 0, "USB audio gadget"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, g_audio, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB audio gadget"); | |||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int g_audio_debug = 0; | static int g_audio_debug = 0; | ||||
SYSCTL_INT(_hw_usb_g_audio, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_g_audio, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&g_audio_debug, 0, "Debug level"); | &g_audio_debug, 0, "Debug level"); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines |