Print this page
8368 remove warlock leftovers from usr/src/uts


 960         if ((((value) & 0xff00) >> 8) > 100 || \
 961             ((value) & 0xff) > 100) \
 962                 return (EINVAL); \
 963 }
 964 
 965 /*
 966  * check volume adjust value of mono channel control
 967  */
 968 #define AUDIOHD_CHECK_CHANNEL_VOLUME(value) \
 969 { \
 970         if ((value) & ~0xff) \
 971                 return (EINVAL); \
 972         if (((value) & 0xff) > 100) \
 973                 return (EINVAL); \
 974 }
 975 
 976 #ifdef __cplusplus
 977 }
 978 #endif
 979 
 980 /* Warlock annotation */
 981 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_ctrl::statep))
 982 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::inmask))
 983 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::adev))
 984 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::sample_bit_depth))
 985 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::sample_rate))
 986 _NOTE(READ_ONLY_DATA(audiohd_state::hda_reg_handle))
 987 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_widget::codec))
 988 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_widget::wid_wid))
 989 _NOTE(DATA_READABLE_WITHOUT_LOCK(hda_codec::index))
 990 _NOTE(DATA_READABLE_WITHOUT_LOCK(hda_codec::statep))
 991 _NOTE(DATA_READABLE_WITHOUT_LOCK(hda_codec::vid))
 992 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_port::nchan))
 993 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_port::statep))
 994 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_port::sync_dir))
 995 
 996 #endif  /* _SYS_AUDIOHD_IMPL_H_ */


 960         if ((((value) & 0xff00) >> 8) > 100 || \
 961             ((value) & 0xff) > 100) \
 962                 return (EINVAL); \
 963 }
 964 
 965 /*
 966  * check volume adjust value of mono channel control
 967  */
 968 #define AUDIOHD_CHECK_CHANNEL_VOLUME(value) \
 969 { \
 970         if ((value) & ~0xff) \
 971                 return (EINVAL); \
 972         if (((value) & 0xff) > 100) \
 973                 return (EINVAL); \
 974 }
 975 
 976 #ifdef __cplusplus
 977 }
 978 #endif
 979 
















 980 #endif  /* _SYS_AUDIOHD_IMPL_H_ */