Lines Matching refs:mixer
32 struct mixer *gMixer0 = nullptr;
52 struct mixer *mixerGetOrOpenImpl(const unsigned card, in mixerGetOrOpenImpl()
53 struct mixer *&gMixer, in mixerGetOrOpenImpl()
56 struct mixer *mixer = ::mixer_open(card); in mixerGetOrOpenImpl() local
57 if (!mixer) { in mixerGetOrOpenImpl()
61 mixerSetPercentAll(::mixer_get_ctl_by_name(mixer, "Master Playback Volume"), 100); in mixerGetOrOpenImpl()
62 mixerSetPercentAll(::mixer_get_ctl_by_name(mixer, "Capture Volume"), 100); in mixerGetOrOpenImpl()
64 mixerSetValueAll(::mixer_get_ctl_by_name(mixer, "Master Playback Switch"), 1); in mixerGetOrOpenImpl()
65 mixerSetValueAll(::mixer_get_ctl_by_name(mixer, "Capture Switch"), 1); in mixerGetOrOpenImpl()
67 gMixer = mixer; in mixerGetOrOpenImpl()
74 struct mixer *mixerGetOrOpen(const unsigned card) { in mixerGetOrOpen()
83 bool mixerUnrefImpl(struct mixer *mixer, struct mixer *&gMixer, int &refcounter) { in mixerUnrefImpl() argument
84 if (mixer == gMixer) { in mixerUnrefImpl()
86 ::mixer_close(mixer); in mixerUnrefImpl()
95 bool mixerUnref(struct mixer *mixer) { in mixerUnref() argument
98 return mixerUnrefImpl(mixer, gMixer0, gMixerRefcounter0); in mixerUnref()