Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ac97_patch.c File Reference
#include "ac97_local.h"
#include "ac97_patch.h"

Go to the source code of this file.

Data Structures

struct  vt1618_uaj_item
 

Macros

#define AC97_SURROUND_JACK_MODE_CTL
 
#define AC97_CHANNEL_MODE_CTL
 
#define AC97_CHANNEL_MODE_4CH_CTL
 
#define AC97_CHANNEL_MODE_8CH_CTL
 
#define STAC9758_OUTPUT_JACK(xname, shift)
 
#define STAC9758_INPUT_JACK(xname, shift)
 
#define AC97_AD198X_MBC   0x0003 /* mic boost */
 
#define AC97_AD198X_MBC_20   0x0000 /* +20dB */
 
#define AC97_AD198X_MBC_10   0x0001 /* +10dB */
 
#define AC97_AD198X_MBC_30   0x0002 /* +30dB */
 
#define AC97_AD198X_VREFD   0x0004 /* VREF high-Z */
 
#define AC97_AD198X_VREFH   0x0008 /* 0=2.25V, 1=3.7V */
 
#define AC97_AD198X_VREF_0   0x000c /* 0V (AD1985 only) */
 
#define AC97_AD198X_VREF_MASK   (AC97_AD198X_VREFH | AC97_AD198X_VREFD)
 
#define AC97_AD198X_VREF_SHIFT   2
 
#define AC97_AD198X_SRU   0x0010 /* sample rate unlock */
 
#define AC97_AD198X_LOSEL   0x0020 /* LINE_OUT amplifiers input select */
 
#define AC97_AD198X_2MIC   0x0040 /* 2-channel mic select */
 
#define AC97_AD198X_SPRD   0x0080 /* SPREAD enable */
 
#define AC97_AD198X_DMIX0   0x0100 /* downmix mode: */
 
#define AC97_AD198X_DMIX1   0x0200 /* downmix mode: 1 = enabled */
 
#define AC97_AD198X_HPSEL   0x0400 /* headphone amplifier input select */
 
#define AC97_AD198X_CLDIS   0x0800 /* center/lfe disable */
 
#define AC97_AD198X_LODIS   0x1000 /* LINE_OUT disable */
 
#define AC97_AD198X_MSPLT   0x2000 /* mute split */
 
#define AC97_AD198X_AC97NC   0x4000 /* AC97 no compatible mode */
 
#define AC97_AD198X_DACZ   0x8000 /* DAC zero-fill mode */
 
#define AC97_AD1986_MBC   0x0003 /* mic boost */
 
#define AC97_AD1986_MBC_20   0x0000 /* +20dB */
 
#define AC97_AD1986_MBC_10   0x0001 /* +10dB */
 
#define AC97_AD1986_MBC_30   0x0002 /* +30dB */
 
#define AC97_AD1986_LISEL0   0x0004 /* LINE_IN select bit 0 */
 
#define AC97_AD1986_LISEL1   0x0008 /* LINE_IN select bit 1 */
 
#define AC97_AD1986_LISEL_MASK   (AC97_AD1986_LISEL1 | AC97_AD1986_LISEL0)
 
#define AC97_AD1986_LISEL_LI   0x0000 /* LINE_IN pins as LINE_IN source */
 
#define AC97_AD1986_LISEL_SURR   0x0004 /* SURROUND pins as LINE_IN source */
 
#define AC97_AD1986_LISEL_MIC   0x0008 /* MIC_1/2 pins as LINE_IN source */
 
#define AC97_AD1986_SRU   0x0010 /* sample rate unlock */
 
#define AC97_AD1986_SOSEL   0x0020 /* SURROUND_OUT amplifiers input sel */
 
#define AC97_AD1986_2MIC   0x0040 /* 2-channel mic select */
 
#define AC97_AD1986_SPRD   0x0080 /* SPREAD enable */
 
#define AC97_AD1986_DMIX0   0x0100 /* downmix mode: */
 
#define AC97_AD1986_DMIX1   0x0200 /* downmix mode: 1 = enabled */
 
#define AC97_AD1986_CLDIS   0x0800 /* center/lfe disable */
 
#define AC97_AD1986_SODIS   0x1000 /* SURROUND_OUT disable */
 
#define AC97_AD1986_MSPLT   0x2000 /* mute split (read only 1) */
 
#define AC97_AD1986_AC97NC   0x4000 /* AC97 no compatible mode (r/o 1) */
 
#define AC97_AD1986_DACZ   0x8000 /* DAC zero-fill mode */
 
#define AC97_AD_MISC2   0x70 /* Misc Control Bits 2 (AD1986) */
 
#define AC97_AD1986_CVREF0   0x0004 /* C/LFE VREF_OUT 2.25V */
 
#define AC97_AD1986_CVREF1   0x0008 /* C/LFE VREF_OUT 0V */
 
#define AC97_AD1986_CVREF2   0x0010 /* C/LFE VREF_OUT 3.7V */
 
#define AC97_AD1986_CVREF_MASK   (AC97_AD1986_CVREF2 | AC97_AD1986_CVREF1 | AC97_AD1986_CVREF0)
 
#define AC97_AD1986_JSMAP   0x0020 /* Jack Sense Mapping 1 = alternate */
 
#define AC97_AD1986_MMDIS   0x0080 /* Mono Mute Disable */
 
#define AC97_AD1986_MVREF0   0x0400 /* MIC VREF_OUT 2.25V */
 
#define AC97_AD1986_MVREF1   0x0800 /* MIC VREF_OUT 0V */
 
#define AC97_AD1986_MVREF2   0x1000 /* MIC VREF_OUT 3.7V */
 
#define AC97_AD1986_MVREF_MASK   (AC97_AD1986_MVREF2 | AC97_AD1986_MVREF1 | AC97_AD1986_MVREF0)
 
#define AC97_AD_MISC3   0x7a /* Misc Control Bits 3 (AD1986) */
 
#define AC97_AD1986_MMIX   0x0004 /* Mic Mix, left/right */
 
#define AC97_AD1986_GPO   0x0008 /* General Purpose Out */
 
#define AC97_AD1986_LOHPEN   0x0010 /* LINE_OUT headphone drive */
 
#define AC97_AD1986_LVREF0   0x0100 /* LINE_OUT VREF_OUT 2.25V */
 
#define AC97_AD1986_LVREF1   0x0200 /* LINE_OUT VREF_OUT 0V */
 
#define AC97_AD1986_LVREF2   0x0400 /* LINE_OUT VREF_OUT 3.7V */
 
#define AC97_AD1986_LVREF_MASK   (AC97_AD1986_LVREF2 | AC97_AD1986_LVREF1 | AC97_AD1986_LVREF0)
 
#define AC97_AD1986_JSINVA   0x0800 /* Jack Sense Invert SENSE_A */
 
#define AC97_AD1986_LOSEL   0x1000 /* LINE_OUT amplifiers input select */
 
#define AC97_AD1986_HPSEL0   0x2000 /* Headphone amplifiers */
 
#define AC97_AD1986_HPSEL1   0x4000 /* Headphone amplifiers input */
 
#define AC97_AD1986_JSINVB   0x8000 /* Jack Sense Invert SENSE_B */
 
#define AC97_AD1986_OMS0   0x0100 /* Optional Mic Selector bit 0 */
 
#define AC97_AD1986_OMS1   0x0200 /* Optional Mic Selector bit 1 */
 
#define AC97_AD1986_OMS2   0x0400 /* Optional Mic Selector bit 2 */
 
#define AC97_AD1986_OMS_MASK   (AC97_AD1986_OMS2 | AC97_AD1986_OMS1 | AC97_AD1986_OMS0)
 
#define AC97_AD1986_OMS_M   0x0000 /* MIC_1/2 pins are MIC sources */
 
#define AC97_AD1986_OMS_L   0x0100 /* LINE_IN pins are MIC sources */
 
#define AC97_AD1986_OMS_C   0x0200 /* Center/LFE pins are MCI sources */
 
#define AC97_AD1986_OMS_MC   0x0400 /* Mix of MIC and C/LFE pins */
 
#define AC97_AD1986_OMS_ML   0x0500 /* MIX of MIC and LINE_IN pins */
 
#define AC97_AD1986_OMS_LC   0x0600 /* MIX of LINE_IN and C/LFE pins */
 
#define AC97_AD1986_OMS_MLC   0x0700 /* MIX of MIC, LINE_IN, C/LFE pins */
 
#define snd_ac97_ad1888_lohpsel_info   snd_ctl_boolean_mono_info
 
#define snd_ac97_ad1986_bool_info   snd_ctl_boolean_mono_info
 
#define AC97_ALC850_JACK_SELECT   0x76
 
#define AC97_ALC850_MISC1   0x7a
 
#define AC97_ALC850_MULTICH   0x6a
 
#define AC97_CM9761_MULTI_CHAN   0x64
 
#define AC97_CM9761_FUNC   0x66
 
#define AC97_CM9761_SPDIF_CTRL   0x6c
 
#define AC97_CM9780_SIDE   0x60
 
#define AC97_CM9780_JACK   0x62
 
#define AC97_CM9780_MIXER   0x64
 
#define AC97_CM9780_MULTI_CHAN   0x66
 
#define AC97_CM9780_SPDIF   0x6c
 
#define AC97_SI3036_CHIP_ID   0x5a
 
#define AC97_SI3036_LINE_CFG   0x5c
 

Macro Definition Documentation

#define AC97_AD1986_2MIC   0x0040 /* 2-channel mic select */

Definition at line 1740 of file ac97_patch.c.

#define AC97_AD1986_AC97NC   0x4000 /* AC97 no compatible mode (r/o 1) */

Definition at line 1748 of file ac97_patch.c.

#define AC97_AD1986_CLDIS   0x0800 /* center/lfe disable */

Definition at line 1745 of file ac97_patch.c.

#define AC97_AD1986_CVREF0   0x0004 /* C/LFE VREF_OUT 2.25V */

Definition at line 1754 of file ac97_patch.c.

#define AC97_AD1986_CVREF1   0x0008 /* C/LFE VREF_OUT 0V */

Definition at line 1755 of file ac97_patch.c.

#define AC97_AD1986_CVREF2   0x0010 /* C/LFE VREF_OUT 3.7V */

Definition at line 1756 of file ac97_patch.c.

#define AC97_AD1986_CVREF_MASK   (AC97_AD1986_CVREF2 | AC97_AD1986_CVREF1 | AC97_AD1986_CVREF0)

Definition at line 1757 of file ac97_patch.c.

#define AC97_AD1986_DACZ   0x8000 /* DAC zero-fill mode */

Definition at line 1749 of file ac97_patch.c.

#define AC97_AD1986_DMIX0   0x0100 /* downmix mode: */

Definition at line 1742 of file ac97_patch.c.

#define AC97_AD1986_DMIX1   0x0200 /* downmix mode: 1 = enabled */

Definition at line 1744 of file ac97_patch.c.

#define AC97_AD1986_GPO   0x0008 /* General Purpose Out */

Definition at line 1771 of file ac97_patch.c.

#define AC97_AD1986_HPSEL0   0x2000 /* Headphone amplifiers */

Definition at line 1780 of file ac97_patch.c.

#define AC97_AD1986_HPSEL1   0x4000 /* Headphone amplifiers input */

Definition at line 1782 of file ac97_patch.c.

#define AC97_AD1986_JSINVA   0x0800 /* Jack Sense Invert SENSE_A */

Definition at line 1778 of file ac97_patch.c.

#define AC97_AD1986_JSINVB   0x8000 /* Jack Sense Invert SENSE_B */

Definition at line 1784 of file ac97_patch.c.

#define AC97_AD1986_JSMAP   0x0020 /* Jack Sense Mapping 1 = alternate */

Definition at line 1759 of file ac97_patch.c.

#define AC97_AD1986_LISEL0   0x0004 /* LINE_IN select bit 0 */

Definition at line 1732 of file ac97_patch.c.

#define AC97_AD1986_LISEL1   0x0008 /* LINE_IN select bit 1 */

Definition at line 1733 of file ac97_patch.c.

#define AC97_AD1986_LISEL_LI   0x0000 /* LINE_IN pins as LINE_IN source */

Definition at line 1735 of file ac97_patch.c.

#define AC97_AD1986_LISEL_MASK   (AC97_AD1986_LISEL1 | AC97_AD1986_LISEL0)

Definition at line 1734 of file ac97_patch.c.

#define AC97_AD1986_LISEL_MIC   0x0008 /* MIC_1/2 pins as LINE_IN source */

Definition at line 1737 of file ac97_patch.c.

#define AC97_AD1986_LISEL_SURR   0x0004 /* SURROUND pins as LINE_IN source */

Definition at line 1736 of file ac97_patch.c.

#define AC97_AD1986_LOHPEN   0x0010 /* LINE_OUT headphone drive */

Definition at line 1772 of file ac97_patch.c.

#define AC97_AD1986_LOSEL   0x1000 /* LINE_OUT amplifiers input select */

Definition at line 1779 of file ac97_patch.c.

#define AC97_AD1986_LVREF0   0x0100 /* LINE_OUT VREF_OUT 2.25V */

Definition at line 1773 of file ac97_patch.c.

#define AC97_AD1986_LVREF1   0x0200 /* LINE_OUT VREF_OUT 0V */

Definition at line 1774 of file ac97_patch.c.

#define AC97_AD1986_LVREF2   0x0400 /* LINE_OUT VREF_OUT 3.7V */

Definition at line 1775 of file ac97_patch.c.

#define AC97_AD1986_LVREF_MASK   (AC97_AD1986_LVREF2 | AC97_AD1986_LVREF1 | AC97_AD1986_LVREF0)

Definition at line 1776 of file ac97_patch.c.

#define AC97_AD1986_MBC   0x0003 /* mic boost */

Definition at line 1728 of file ac97_patch.c.

#define AC97_AD1986_MBC_10   0x0001 /* +10dB */

Definition at line 1730 of file ac97_patch.c.

#define AC97_AD1986_MBC_20   0x0000 /* +20dB */

Definition at line 1729 of file ac97_patch.c.

#define AC97_AD1986_MBC_30   0x0002 /* +30dB */

Definition at line 1731 of file ac97_patch.c.

#define AC97_AD1986_MMDIS   0x0080 /* Mono Mute Disable */

Definition at line 1760 of file ac97_patch.c.

#define AC97_AD1986_MMIX   0x0004 /* Mic Mix, left/right */

Definition at line 1770 of file ac97_patch.c.

#define AC97_AD1986_MSPLT   0x2000 /* mute split (read only 1) */

Definition at line 1747 of file ac97_patch.c.

#define AC97_AD1986_MVREF0   0x0400 /* MIC VREF_OUT 2.25V */

Definition at line 1761 of file ac97_patch.c.

#define AC97_AD1986_MVREF1   0x0800 /* MIC VREF_OUT 0V */

Definition at line 1762 of file ac97_patch.c.

#define AC97_AD1986_MVREF2   0x1000 /* MIC VREF_OUT 3.7V */

Definition at line 1763 of file ac97_patch.c.

#define AC97_AD1986_MVREF_MASK   (AC97_AD1986_MVREF2 | AC97_AD1986_MVREF1 | AC97_AD1986_MVREF0)

Definition at line 1764 of file ac97_patch.c.

#define AC97_AD1986_OMS0   0x0100 /* Optional Mic Selector bit 0 */

Definition at line 1787 of file ac97_patch.c.

#define AC97_AD1986_OMS1   0x0200 /* Optional Mic Selector bit 1 */

Definition at line 1788 of file ac97_patch.c.

#define AC97_AD1986_OMS2   0x0400 /* Optional Mic Selector bit 2 */

Definition at line 1789 of file ac97_patch.c.

#define AC97_AD1986_OMS_C   0x0200 /* Center/LFE pins are MCI sources */

Definition at line 1794 of file ac97_patch.c.

#define AC97_AD1986_OMS_L   0x0100 /* LINE_IN pins are MIC sources */

Definition at line 1793 of file ac97_patch.c.

#define AC97_AD1986_OMS_LC   0x0600 /* MIX of LINE_IN and C/LFE pins */

Definition at line 1799 of file ac97_patch.c.

#define AC97_AD1986_OMS_M   0x0000 /* MIC_1/2 pins are MIC sources */

Definition at line 1792 of file ac97_patch.c.

#define AC97_AD1986_OMS_MASK   (AC97_AD1986_OMS2 | AC97_AD1986_OMS1 | AC97_AD1986_OMS0)

Definition at line 1790 of file ac97_patch.c.

#define AC97_AD1986_OMS_MC   0x0400 /* Mix of MIC and C/LFE pins */

Definition at line 1795 of file ac97_patch.c.

#define AC97_AD1986_OMS_ML   0x0500 /* MIX of MIC and LINE_IN pins */

Definition at line 1797 of file ac97_patch.c.

#define AC97_AD1986_OMS_MLC   0x0700 /* MIX of MIC, LINE_IN, C/LFE pins */

Definition at line 1801 of file ac97_patch.c.

#define AC97_AD1986_SODIS   0x1000 /* SURROUND_OUT disable */

Definition at line 1746 of file ac97_patch.c.

#define AC97_AD1986_SOSEL   0x0020 /* SURROUND_OUT amplifiers input sel */

Definition at line 1739 of file ac97_patch.c.

#define AC97_AD1986_SPRD   0x0080 /* SPREAD enable */

Definition at line 1741 of file ac97_patch.c.

#define AC97_AD1986_SRU   0x0010 /* sample rate unlock */

Definition at line 1738 of file ac97_patch.c.

#define AC97_AD198X_2MIC   0x0040 /* 2-channel mic select */

Definition at line 1715 of file ac97_patch.c.

#define AC97_AD198X_AC97NC   0x4000 /* AC97 no compatible mode */

Definition at line 1724 of file ac97_patch.c.

#define AC97_AD198X_CLDIS   0x0800 /* center/lfe disable */

Definition at line 1721 of file ac97_patch.c.

#define AC97_AD198X_DACZ   0x8000 /* DAC zero-fill mode */

Definition at line 1725 of file ac97_patch.c.

#define AC97_AD198X_DMIX0   0x0100 /* downmix mode: */

Definition at line 1717 of file ac97_patch.c.

#define AC97_AD198X_DMIX1   0x0200 /* downmix mode: 1 = enabled */

Definition at line 1719 of file ac97_patch.c.

#define AC97_AD198X_HPSEL   0x0400 /* headphone amplifier input select */

Definition at line 1720 of file ac97_patch.c.

#define AC97_AD198X_LODIS   0x1000 /* LINE_OUT disable */

Definition at line 1722 of file ac97_patch.c.

#define AC97_AD198X_LOSEL   0x0020 /* LINE_OUT amplifiers input select */

Definition at line 1714 of file ac97_patch.c.

#define AC97_AD198X_MBC   0x0003 /* mic boost */

Definition at line 1704 of file ac97_patch.c.

#define AC97_AD198X_MBC_10   0x0001 /* +10dB */

Definition at line 1706 of file ac97_patch.c.

#define AC97_AD198X_MBC_20   0x0000 /* +20dB */

Definition at line 1705 of file ac97_patch.c.

#define AC97_AD198X_MBC_30   0x0002 /* +30dB */

Definition at line 1707 of file ac97_patch.c.

#define AC97_AD198X_MSPLT   0x2000 /* mute split */

Definition at line 1723 of file ac97_patch.c.

#define AC97_AD198X_SPRD   0x0080 /* SPREAD enable */

Definition at line 1716 of file ac97_patch.c.

#define AC97_AD198X_SRU   0x0010 /* sample rate unlock */

Definition at line 1713 of file ac97_patch.c.

#define AC97_AD198X_VREF_0   0x000c /* 0V (AD1985 only) */

Definition at line 1710 of file ac97_patch.c.

#define AC97_AD198X_VREF_MASK   (AC97_AD198X_VREFH | AC97_AD198X_VREFD)

Definition at line 1711 of file ac97_patch.c.

#define AC97_AD198X_VREF_SHIFT   2

Definition at line 1712 of file ac97_patch.c.

#define AC97_AD198X_VREFD   0x0004 /* VREF high-Z */

Definition at line 1708 of file ac97_patch.c.

#define AC97_AD198X_VREFH   0x0008 /* 0=2.25V, 1=3.7V */

Definition at line 1709 of file ac97_patch.c.

#define AC97_AD_MISC2   0x70 /* Misc Control Bits 2 (AD1986) */

Definition at line 1752 of file ac97_patch.c.

#define AC97_AD_MISC3   0x7a /* Misc Control Bits 3 (AD1986) */

Definition at line 1768 of file ac97_patch.c.

#define AC97_ALC850_JACK_SELECT   0x76

Definition at line 2883 of file ac97_patch.c.

#define AC97_ALC850_MISC1   0x7a

Definition at line 2884 of file ac97_patch.c.

#define AC97_ALC850_MULTICH   0x6a

Definition at line 2885 of file ac97_patch.c.

#define AC97_CHANNEL_MODE_4CH_CTL
Value:
{ \
.name = "Channel Mode", \
.info = ac97_channel_mode_info, \
.get = ac97_channel_mode_get, \
.put = ac97_channel_mode_put, \
.private_value = 2, \
}

Definition at line 175 of file ac97_patch.c.

#define AC97_CHANNEL_MODE_8CH_CTL
Value:
{ \
.name = "Channel Mode", \
.info = ac97_channel_mode_info, \
.get = ac97_channel_mode_get, \
.put = ac97_channel_mode_put, \
.private_value = 4, \
}

Definition at line 185 of file ac97_patch.c.

#define AC97_CHANNEL_MODE_CTL
Value:
{ \
.name = "Channel Mode", \
.info = ac97_channel_mode_info, \
.get = ac97_channel_mode_get, \
.put = ac97_channel_mode_put, \
.private_value = 3, \
}

Definition at line 165 of file ac97_patch.c.

#define AC97_CM9761_FUNC   0x66

Definition at line 3193 of file ac97_patch.c.

#define AC97_CM9761_MULTI_CHAN   0x64

Definition at line 3192 of file ac97_patch.c.

#define AC97_CM9761_SPDIF_CTRL   0x6c

Definition at line 3194 of file ac97_patch.c.

#define AC97_CM9780_JACK   0x62

Definition at line 3382 of file ac97_patch.c.

#define AC97_CM9780_MIXER   0x64

Definition at line 3383 of file ac97_patch.c.

#define AC97_CM9780_MULTI_CHAN   0x66

Definition at line 3384 of file ac97_patch.c.

#define AC97_CM9780_SIDE   0x60

Definition at line 3381 of file ac97_patch.c.

#define AC97_CM9780_SPDIF   0x6c

Definition at line 3385 of file ac97_patch.c.

#define AC97_SI3036_CHIP_ID   0x5a

Definition at line 3893 of file ac97_patch.c.

#define AC97_SI3036_LINE_CFG   0x5c

Definition at line 3894 of file ac97_patch.c.

#define AC97_SURROUND_JACK_MODE_CTL
Value:
{ \
.name = "Surround Jack Mode", \
.info = ac97_surround_jack_mode_info, \
.get = ac97_surround_jack_mode_get, \
.put = ac97_surround_jack_mode_put, \
}

Definition at line 156 of file ac97_patch.c.

#define snd_ac97_ad1888_lohpsel_info   snd_ctl_boolean_mono_info

Definition at line 1967 of file ac97_patch.c.

#define snd_ac97_ad1986_bool_info   snd_ctl_boolean_mono_info

Definition at line 2286 of file ac97_patch.c.

#define STAC9758_INPUT_JACK (   xname,
  shift 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_ac97_stac9758_input_jack_info, \
.get = snd_ac97_stac9758_input_jack_get, \
.put = snd_ac97_stac9758_input_jack_put, \
.private_value = shift }

Definition at line 1217 of file ac97_patch.c.

#define STAC9758_OUTPUT_JACK (   xname,
  shift 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_ac97_stac9758_output_jack_info, \
.get = snd_ac97_stac9758_output_jack_get, \
.put = snd_ac97_stac9758_output_jack_put, \
.private_value = shift }

Definition at line 1211 of file ac97_patch.c.