Skip to contentSkip to conversation

mixer: add documentation about postcondition of removal event processing

DISCUSSION GitHub pull_request - opened 1 participant 1 message Jun 27, 2022 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

alsa-project/alsa-lib pull request #244 was opened from takaswie:

PulseAudio and PipeWire seems to appear including careless code to process events of mixer element in implementation of mixer class.

* https://lore.kernel.org/alsa-devel/YrbxZ2b+3rIdi7Ut@workstation/

They register own implementation of mixer class. At addition event, they attach own mixer element into hcontrol element. However at removal event, they never detach the mixer element from hcontrol element. They hit assertion in mixer API internal due to unsatisfied postcondition.

This commit adds documentation about postcondition of removal event processing so that developer for implementation of mixer class easily realize the way to satisfy the postcondition.

Request URL : https://github.com/alsa-project/alsa-lib/pull/244
Patch URL : https://github.com/alsa-project/alsa-lib/pull/244.patch
Repository URL: https://github.com/alsa-project/alsa-lib