Lines Matching defs:mute
166 TP_HKEY_EV_VOL_MUTE = 0x1017, /* Mixer output mute */
1834 u16 mute:1;
2305 n->mute = !!(d & TP_NVRAM_MASK_MUTE);
2373 * - Pressing MUTE issues mute hotkey message, even when already mute
2386 if (newn->mute) {
2388 if (!oldn->mute ||
2391 /* recently muted, or repeated mute keypress, or
2392 * multiple presses ending in mute */
2399 if (oldn->mute) {
3271 * The mic mute button only sends 0x1a. It does not
3272 * automatically mute the mic or change the mute light.
3274 KEY_MICMUTE, /* 0x1a: Mic mute (since ?400 or so) */
7070 * mute button to get confused. The hardware MUTE gate is also
7071 * unnecessary, since user code can handle the mute button without
7074 * To avoid confusing userspace, we simply disable all EC-based mute
7125 TPACPI_VOL_CAP_VOLMUTE, /* Output vol and mute */
7126 TPACPI_VOL_CAP_MUTEONLY, /* Output mute only */
7240 static int __volume_set_mute_ec(const bool mute)
7252 n = (mute) ? s | TP_EC_AUDIO_MUTESW_MSK :
7266 static int volume_alsa_set_mute(const bool mute)
7269 (mute) ? "" : "un");
7270 return __volume_set_mute_ec(mute);
7273 static int volume_set_mute(const bool mute)
7278 (mute) ? "" : "un");
7280 rc = __volume_set_mute_ec(mute);
7339 * In software mute mode, the standard codec controls take
7350 pr_warn("Failed to unmute the HW mute switch\n");
7361 pr_warn("Failed to restore mute mode\n");
7473 pr_warn("Failed to restore software mute\n");
7553 pr_err("Failed to create ALSA mute control: %d\n", rc);
7591 /* Whitelist mute-only on all Lenovo by default */
7675 "mute is supported, volume control is %s\n",
7716 seq_printf(m, "mute:\t\t%s\n", str_on_off(status & BIT(TP_EC_AUDIO_MUTESW)));
7719 seq_printf(m, "commands:\tunmute, mute\n");
7779 if (strstarts(cmd, "mute"))
9263 .name = "platform::mute",
9266 .default_trigger = "audio-mute",
11549 "Selects the mixer capabilities: 0=auto, 1=volume and mute, 2=mute only");
11557 "Request full software mute control");