ac97_codec.h (eb8caf30f4c059ddfdfa32b6034549622953db6f) ac97_codec.h (69ad07cf98d0ef65cac67bac2ea4381bb499bea8)
1#ifndef __SOUND_AC97_CODEC_H
2#define __SOUND_AC97_CODEC_H
3
4/*
5 * Copyright (c) by Jaroslav Kysela <perex@suse.cz>
6 * Universal interface for Audio Codec '97
7 *
8 * For more details look to AC '97 component specification revision 2.1

--- 559 unchanged lines hidden (view full) ---

568 AC97_TUNE_SWAP_SURROUND, /* swap master and surround controls */
569 AC97_TUNE_AD_SHARING, /* for AD1985, turn on OMS bit and use headphone */
570 AC97_TUNE_ALC_JACK, /* for Realtek, enable JACK detection */
571 AC97_TUNE_INV_EAPD, /* inverted EAPD implementation */
572 AC97_TUNE_MUTE_LED, /* EAPD bit works as mute LED */
573};
574
575struct ac97_quirk {
1#ifndef __SOUND_AC97_CODEC_H
2#define __SOUND_AC97_CODEC_H
3
4/*
5 * Copyright (c) by Jaroslav Kysela <perex@suse.cz>
6 * Universal interface for Audio Codec '97
7 *
8 * For more details look to AC '97 component specification revision 2.1

--- 559 unchanged lines hidden (view full) ---

568 AC97_TUNE_SWAP_SURROUND, /* swap master and surround controls */
569 AC97_TUNE_AD_SHARING, /* for AD1985, turn on OMS bit and use headphone */
570 AC97_TUNE_ALC_JACK, /* for Realtek, enable JACK detection */
571 AC97_TUNE_INV_EAPD, /* inverted EAPD implementation */
572 AC97_TUNE_MUTE_LED, /* EAPD bit works as mute LED */
573};
574
575struct ac97_quirk {
576 unsigned short vendor; /* PCI vendor id */
577 unsigned short device; /* PCI device id */
576 unsigned short subvendor; /* PCI subsystem vendor id */
577 unsigned short subdevice; /* PCI sybsystem device id */
578 unsigned short mask; /* device id bit mask, 0 = accept all */
579 unsigned int codec_id; /* codec id (if any), 0 = accept all */
580 const char *name; /* name shown as info */
581 int type; /* quirk type above */
582};
583
584int snd_ac97_tune_hardware(ac97_t *ac97, struct ac97_quirk *quirk, const char *override);
585int snd_ac97_set_rate(ac97_t *ac97, int reg, unsigned int rate);

--- 17 unchanged lines hidden ---
578 unsigned short mask; /* device id bit mask, 0 = accept all */
579 unsigned int codec_id; /* codec id (if any), 0 = accept all */
580 const char *name; /* name shown as info */
581 int type; /* quirk type above */
582};
583
584int snd_ac97_tune_hardware(ac97_t *ac97, struct ac97_quirk *quirk, const char *override);
585int snd_ac97_set_rate(ac97_t *ac97, int reg, unsigned int rate);

--- 17 unchanged lines hidden ---