Lines Matching refs:mixer
31 struct mixer *gMixer0 = nullptr;
49 struct mixer *mixerGetOrOpenImpl(const unsigned card, in mixerGetOrOpenImpl()
50 struct mixer *&gMixer, in mixerGetOrOpenImpl()
53 struct mixer *mixer = ::mixer_open(card); in mixerGetOrOpenImpl() local
54 if (!mixer) { in mixerGetOrOpenImpl()
58 mixerSetPercentAll(::mixer_get_ctl_by_name(mixer, "Master Playback Volume"), 100); in mixerGetOrOpenImpl()
59 mixerSetPercentAll(::mixer_get_ctl_by_name(mixer, "Capture Volume"), 100); in mixerGetOrOpenImpl()
61 mixerSetValueAll(::mixer_get_ctl_by_name(mixer, "Master Playback Switch"), 1); in mixerGetOrOpenImpl()
62 mixerSetValueAll(::mixer_get_ctl_by_name(mixer, "Capture Switch"), 1); in mixerGetOrOpenImpl()
64 gMixer = mixer; in mixerGetOrOpenImpl()
71 struct mixer *mixerGetOrOpen(const unsigned card) { in mixerGetOrOpen()
80 bool mixerUnrefImpl(struct mixer *mixer, struct mixer *&gMixer, int &refcounter) { in mixerUnrefImpl() argument
81 if (mixer == gMixer) { in mixerUnrefImpl()
83 ::mixer_close(mixer); in mixerUnrefImpl()
92 bool mixerUnref(struct mixer *mixer) { in mixerUnref() argument
95 return mixerUnrefImpl(mixer, gMixer0, gMixerRefcounter0); in mixerUnref()