1957 path->gain_wid != 0) {
1958 audiohd_create_mono(statep, CTL_BEEP,
1959 AUDIO_CTRL_ID_BEEP, AUDIO_CTRL_FLAG_RW, 75,
1960 audiohd_set_beep);
1961 continue;
1962 }
1963 }
1964 }
1965
1966 if (statep->monitor_supported) {
1967 audiohd_create_stereo(statep, CTL_MONGAIN,
1968 AUDIO_CTRL_ID_MONGAIN, MONVOL, 0,
1969 audiohd_set_mongain);
1970 }
1971
1972 if (statep->loopback_supported) {
1973 audiohd_create_bool(statep, CTL_LOOP, AUDIO_CTRL_ID_LOOPBACK,
1974 0, audiohd_set_loopback);
1975 }
1976
1977 audiohd_create_recsrc(statep);
1978 audiohd_configure_output(statep);
1979 audiohd_configure_input(statep);
1980 }
1981
1982 /*
1983 * quiesce(9E) entry point.
1984 *
1985 * This function is called when the system is single-threaded at high
1986 * PIL with preemption disabled. Therefore, this function must not be
1987 * blocked.
1988 *
1989 * This function returns DDI_SUCCESS on success, or DDI_FAILURE on failure.
1990 * DDI_FAILURE indicates an error condition and should almost never happen.
1991 */
1992 static int
1993 audiohd_quiesce(dev_info_t *dip)
1994 {
1995 audiohd_state_t *statep;
1996
|
1957 path->gain_wid != 0) {
1958 audiohd_create_mono(statep, CTL_BEEP,
1959 AUDIO_CTRL_ID_BEEP, AUDIO_CTRL_FLAG_RW, 75,
1960 audiohd_set_beep);
1961 continue;
1962 }
1963 }
1964 }
1965
1966 if (statep->monitor_supported) {
1967 audiohd_create_stereo(statep, CTL_MONGAIN,
1968 AUDIO_CTRL_ID_MONGAIN, MONVOL, 0,
1969 audiohd_set_mongain);
1970 }
1971
1972 if (statep->loopback_supported) {
1973 audiohd_create_bool(statep, CTL_LOOP, AUDIO_CTRL_ID_LOOPBACK,
1974 0, audiohd_set_loopback);
1975 }
1976
1977 if (statep->inmask != 0)
1978 audiohd_create_recsrc(statep);
1979 audiohd_configure_output(statep);
1980 audiohd_configure_input(statep);
1981 }
1982
1983 /*
1984 * quiesce(9E) entry point.
1985 *
1986 * This function is called when the system is single-threaded at high
1987 * PIL with preemption disabled. Therefore, this function must not be
1988 * blocked.
1989 *
1990 * This function returns DDI_SUCCESS on success, or DDI_FAILURE on failure.
1991 * DDI_FAILURE indicates an error condition and should almost never happen.
1992 */
1993 static int
1994 audiohd_quiesce(dev_info_t *dip)
1995 {
1996 audiohd_state_t *statep;
1997
|