Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/sound/soc/sof/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  trace.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright(c) 2022 Intel Corporation

#include "sof-priv.h"

int sof_fw_trace_init(struct snd_sof_dev *sdev)
{
 const struct sof_ipc_fw_tracing_ops *fw_tracing = sof_ipc_get_ops(sdev, fw_tracing);

 if (!fw_tracing) {
  dev_info(sdev->dev, "Firmware tracing is not available\n");
  sdev->fw_trace_is_supported = false;

  return 0;
 }

 return fw_tracing->init(sdev);
}

void sof_fw_trace_free(struct snd_sof_dev *sdev)
{
 if (!sdev->fw_trace_is_supported)
  return;

 if (sdev->ipc->ops->fw_tracing->free)
  sdev->ipc->ops->fw_tracing->free(sdev);
}

void sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev)
{
 if (!sdev->fw_trace_is_supported)
  return;

 if (sdev->ipc->ops->fw_tracing->fw_crashed)
  sdev->ipc->ops->fw_tracing->fw_crashed(sdev);
}

void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state)
{
 if (!sdev->fw_trace_is_supported)
  return;

 sdev->ipc->ops->fw_tracing->suspend(sdev, pm_state);
}

int sof_fw_trace_resume(struct snd_sof_dev *sdev)
{
 if (!sdev->fw_trace_is_supported)
  return 0;

 return sdev->ipc->ops->fw_tracing->resume(sdev);
}

Messung V0.5 in Prozent
C=94 H=93 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.