Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  sof_sdw_hdmi.c   Sprache: C

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

/*
 *  sof_sdw_hdmi - Helpers to handle HDMI from generic machine driver
 */


#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/soundwire/sdw_intel.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <sound/jack.h>
#include "sof_sdw_common.h"
#include "hda_dsp_common.h"

int sof_sdw_hdmi_init(struct snd_soc_pcm_runtime *rtd)
{
 struct asoc_sdw_mc_private *ctx = snd_soc_card_get_drvdata(rtd->card);
 struct intel_mc_ctx *intel_ctx = (struct intel_mc_ctx *)ctx->private;
 struct snd_soc_dai *dai = snd_soc_rtd_to_codec(rtd, 0);

 intel_ctx->hdmi.hdmi_comp = dai->component;

 return 0;
}

int sof_sdw_hdmi_card_late_probe(struct snd_soc_card *card)
{
 struct asoc_sdw_mc_private *ctx = snd_soc_card_get_drvdata(card);
 struct intel_mc_ctx *intel_ctx = (struct intel_mc_ctx *)ctx->private;

 if (!intel_ctx->hdmi.idisp_codec)
  return 0;

 if (!intel_ctx->hdmi.hdmi_comp)
  return -EINVAL;

 return hda_dsp_hdmi_build_controls(card, intel_ctx->hdmi.hdmi_comp);
}

Messung V0.5
C=93 H=97 G=94

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge