Lines Matching refs:ctl
1790 struct mixer_ctl *ctl; in adev_open() local
1795 ctl = mixer_get_ctl(adev->mixer, i); in adev_open()
1796 ALOGD("mixer %d name %s", i, mixer_ctl_get_name(ctl)); in adev_open()
1797 if (!strcmp(mixer_ctl_get_name(ctl), "Master Playback Volume") || in adev_open()
1798 !strcmp(mixer_ctl_get_name(ctl), "Capture Volume")) { in adev_open()
1799 for (int z = 0; z < (int)mixer_ctl_get_num_values(ctl); z++) { in adev_open()
1801 mixer_ctl_set_percent(ctl, z, 100); in adev_open()
1805 if (!strcmp(mixer_ctl_get_name(ctl), "Master Playback Switch") || in adev_open()
1806 !strcmp(mixer_ctl_get_name(ctl), "Capture Switch")) { in adev_open()
1807 for (int z = 0; z < (int)mixer_ctl_get_num_values(ctl); z++) { in adev_open()
1809 mixer_ctl_set_value(ctl, z, 1); in adev_open()