Lines Matching refs:melem
363 static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) { in report_jack_state() argument
364 struct userdata *u = snd_mixer_elem_get_callback_private(melem); in report_jack_state()
365 snd_hctl_elem_t *elem = snd_mixer_elem_get_private(melem); in report_jack_state()
407 if (jack->melem == melem) { in report_jack_state()
537 static int hdmi_eld_changed(snd_mixer_elem_t *melem, unsigned int mask) { in hdmi_eld_changed() argument
538 struct userdata *u = snd_mixer_elem_get_callback_private(melem); in hdmi_eld_changed()
539 snd_hctl_elem_t *elem = snd_mixer_elem_get_private(melem); in hdmi_eld_changed()
582 snd_mixer_elem_t* melem; in init_eld_ctls() local
607 melem = pa_alsa_mixer_find_pcm(mixer_handle, "ELD", device); in init_eld_ctls()
608 if (melem) { in init_eld_ctls()
610 snd_mixer_elem_set_callback(melem, hdmi_eld_changed); in init_eld_ctls()
611 snd_mixer_elem_set_callback_private(melem, u); in init_eld_ctls()
612 hdmi_eld_changed(melem, 0); in init_eld_ctls()
667 jack->melem = pa_alsa_mixer_find_card(jack->mixer_handle, &jack->alsa_id, 0); in init_jacks()
668 if (!jack->melem) { in init_jacks()
674 snd_mixer_elem_set_callback(jack->melem, report_jack_state); in init_jacks()
675 snd_mixer_elem_set_callback_private(jack->melem, u); in init_jacks()
676 report_jack_state(jack->melem, 0); in init_jacks()
749 if (jack->melem) in card_suspend_changed()
750 report_jack_state(jack->melem, 0); in card_suspend_changed()