Skip to contentSkip to conversation

ALSA utilities repository branch master updated. v1.0.27.2-14-gd2d9b6f

alsa-cvslog Clemens Ladisch 2 participants 2 messages Nov 26, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · GIT server

- Log ----------------------------------------------------------------- commit d2d9b6fc8d20fca1e06fc261ac20fd6cfd8a8d1b

Author: Takashi Iwai <[email protected]>
Date:   Tue Nov 26 11:44:40 2013 +0100
Quoted 13 lines
    alsactl: Add monitor command

	mask = snd_ctl_event_elem_get_mask(event);
	if (mask & SND_CTL_EVENT_MASK_VALUE)
		printf(" VALUE");
	if (mask & SND_CTL_EVENT_MASK_INFO)
		printf(" INFO");
	if (mask & SND_CTL_EVENT_MASK_ADD)
		printf(" ADD");
	if (mask & SND_CTL_EVENT_MASK_TLV)
		printf(" TLV");
	if (mask == SND_CTL_EVENT_MASK_REMOVE)
		printf(" REMOVE");

The documentation of SND_CTL_EVENT_MASK_REMOVE says:
| Warning: test this first and if set don't test the other masks

Regards,
Clemens

#2 lore raw

At Tue, 26 Nov 2013 13:51:08 +0100,

Quoted 21 lines · Clemens Ladisch
Quoted 5 lines · GIT server

- Log ----------------------------------------------------------------- commit d2d9b6fc8d20fca1e06fc261ac20fd6cfd8a8d1b

Author: Takashi Iwai <[email protected]>
Date:   Tue Nov 26 11:44:40 2013 +0100
Quoted 13 lines
    alsactl: Add monitor command

	mask = snd_ctl_event_elem_get_mask(event);
	if (mask & SND_CTL_EVENT_MASK_VALUE)
		printf(" VALUE");
	if (mask & SND_CTL_EVENT_MASK_INFO)
		printf(" INFO");
	if (mask & SND_CTL_EVENT_MASK_ADD)
		printf(" ADD");
	if (mask & SND_CTL_EVENT_MASK_TLV)
		printf(" TLV");
	if (mask == SND_CTL_EVENT_MASK_REMOVE)
		printf(" REMOVE");
Quoted 2 lines

The documentation of SND_CTL_EVENT_MASK_REMOVE says:
| Warning: test this first and if set don't test the other masks

Thanks, fixed now.

Takashi