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


Quelle  ideapad_hotkey_led.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
/*
 * Ideapad helper functions for Lenovo Ideapad LED control,
 * It should be included from codec driver.
 */


#if IS_ENABLED(CONFIG_IDEAPAD_LAPTOP)

#include <linux/acpi.h>
#include <linux/leds.h>

static bool is_ideapad(struct hda_codec *codec)
{
 return (codec->core.subsystem_id >> 16 == 0x17aa) &&
        (acpi_dev_found("LHK2019") || acpi_dev_found("VPC2004"));
}

static void hda_fixup_ideapad_acpi(struct hda_codec *codec,
       const struct hda_fixup *fix, int action)
{
 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
  if (!is_ideapad(codec))
   return;
  snd_hda_gen_add_mute_led_cdev(codec, NULL);
  snd_hda_gen_add_micmute_led_cdev(codec, NULL);
 }
}

#else /* CONFIG_IDEAPAD_LAPTOP */

static void hda_fixup_ideapad_acpi(struct hda_codec *codec,
       const struct hda_fixup *fix, int action)
{
}

#endif /* CONFIG_IDEAPAD_LAPTOP */

Messung V0.5
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.10 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