diff options
| author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-05-16 18:45:40 -0400 |
|---|---|---|
| committer | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2010-05-16 18:45:40 -0400 |
| commit | 38e11cdec90f1dd7355db4aed8a1857258e99485 (patch) | |
| tree | b70f39e2b5e4b66f069458f0ec95af40c4b37274 /drivers/platform | |
| parent | 69df49eb31e14fb01d9404497b751bfda9bfa012 (diff) | |
thinkpad-acpi: disclose usertask for ALSA callbacks
Disclose the user task doing ALSA access when requested by
the debug bitmask.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Diffstat (limited to 'drivers/platform')
| -rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index fa412a43f5e0..b03cb3e04582 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
| @@ -6740,6 +6740,8 @@ static int volume_alsa_vol_get(struct snd_kcontrol *kcontrol, | |||
| 6740 | static int volume_alsa_vol_put(struct snd_kcontrol *kcontrol, | 6740 | static int volume_alsa_vol_put(struct snd_kcontrol *kcontrol, |
| 6741 | struct snd_ctl_elem_value *ucontrol) | 6741 | struct snd_ctl_elem_value *ucontrol) |
| 6742 | { | 6742 | { |
| 6743 | tpacpi_disclose_usertask("ALSA", "set volume to %ld\n", | ||
| 6744 | ucontrol->value.integer.value[0]); | ||
| 6743 | return volume_alsa_set_volume(ucontrol->value.integer.value[0]); | 6745 | return volume_alsa_set_volume(ucontrol->value.integer.value[0]); |
| 6744 | } | 6746 | } |
| 6745 | 6747 | ||
| @@ -6763,6 +6765,9 @@ static int volume_alsa_mute_get(struct snd_kcontrol *kcontrol, | |||
| 6763 | static int volume_alsa_mute_put(struct snd_kcontrol *kcontrol, | 6765 | static int volume_alsa_mute_put(struct snd_kcontrol *kcontrol, |
| 6764 | struct snd_ctl_elem_value *ucontrol) | 6766 | struct snd_ctl_elem_value *ucontrol) |
| 6765 | { | 6767 | { |
| 6768 | tpacpi_disclose_usertask("ALSA", "%smute\n", | ||
| 6769 | ucontrol->value.integer.value[0] ? | ||
| 6770 | "un" : ""); | ||
| 6766 | return volume_alsa_set_mute(!ucontrol->value.integer.value[0]); | 6771 | return volume_alsa_set_mute(!ucontrol->value.integer.value[0]); |
| 6767 | } | 6772 | } |
| 6768 | 6773 | ||
