alsa-project / snd-firewire-ctl-services

A set of server programs for audio and music units on IEEE 1394 bus supported by Linux sound subsystem a.k.a. ALSA.
GNU General Public License v3.0
35 stars 5 forks source link

[PATCH 00/18] runtime/fireworks: support debug logging by tracing crate #155

Closed takaswie closed 1 year ago

takaswie commented 1 year ago

It's really helpful to dump logs for debugging purpose. This patchset utilizes tracing and tracing-subscriber crates for the purpose. An option is newly added to fireworks runtime, then implement tracing events. In the latter part of patchset, some existent bug is fixed, then diagrams are added for signal flow.

Takashi Sakamoto (18):
  runtime/fireworks: use tracing-subscriber crate to dump debug logs
  runtime/fireworks: add tracing span and event to runtime structure
  runtime/fireworks: add tracing events for hardware information
  runtime/fireworks: add tracing events for sampling clock controls
  runtime/fireworks: add tracing events for meter controls
  runtime/fireworks: add tracing events for mixer controls
  runtime/fireworks: add tracing events for output controls
  runtime/fireworks: add tracing events for input controls
  runtime/fireworks: add tracing events for port configuration controls
  runtime/fireworks: add tracing events for robot guitar controls
  runtime/fireworks: add tracing events for IEC 60958 controls
  protocols/fireworks: remove unused implementations
  protocols/fireworks: remove capabilities fixup
  protocols/fireworks: fix protocol for rx stream mapping
  protocols/fireworks: remove implementation of Default trait from
    structure depending on specification
  protocols/fireworks: add diagram of internal signal flow for Audiofire
    models
  protocols/fireworks: add diagram of internal signal flow for Onyx F
    models
  protocols/fireworks: add diagram of internal signal flow for Robot
    Interface Pack models

 README.rst                                    |   3 +-
 protocols/fireworks/src/audiofire.rs          | 124 ++++++++++
 protocols/fireworks/src/flash.rs              |  97 --------
 protocols/fireworks/src/hw_ctl.rs             | 104 --------
 protocols/fireworks/src/hw_info.rs            |  98 ++------
 protocols/fireworks/src/lib.rs                |  10 -
 protocols/fireworks/src/monitor.rs            | 136 +----------
 protocols/fireworks/src/onyx_f.rs             |  76 ++++++
 protocols/fireworks/src/phys_input.rs         |  40 +--
 protocols/fireworks/src/phys_output.rs        |  97 +-------
 protocols/fireworks/src/playback.rs           |  88 +------
 protocols/fireworks/src/port_conf.rs          | 228 +-----------------
 protocols/fireworks/src/rip.rs                |  18 ++
 protocols/fireworks/src/robot_guitar.rs       |  41 ----
 protocols/fireworks/src/transport.rs          |  16 --
 runtime/fireworks/Cargo.toml                  |   2 +
 runtime/fireworks/src/audiofire12_former.rs   |   9 +-
 runtime/fireworks/src/audiofire12_later.rs    |   5 +-
 .../src/bin/snd-fireworks-ctl-service.rs      |   6 +-
 runtime/fireworks/src/clk_ctl.rs              |   6 +-
 runtime/fireworks/src/guitar_ctl.rs           |  19 +-
 runtime/fireworks/src/iec60958_ctl.rs         |   9 +-
 runtime/fireworks/src/input_ctl.rs            |   9 +-
 runtime/fireworks/src/lib.rs                  |  34 ++-
 runtime/fireworks/src/meter_ctl.rs            |   4 +-
 runtime/fireworks/src/mixer_ctl.rs            |  47 ++--
 runtime/fireworks/src/onyx400f.rs             |   5 +-
 runtime/fireworks/src/output_ctl.rs           |  23 +-
 runtime/fireworks/src/port_ctl.rs             |  63 +++--
 29 files changed, 417 insertions(+), 1000 deletions(-)
takaswie commented 1 year ago

Merged.