Lines Matching +full:0 +full:x2002
26 #define STAC9766_VENDOR_ID 0x83847666
27 #define STAC9766_VENDOR_ID_MASK 0xffffffff
29 #define AC97_STAC_DA_CONTROL 0x6A
30 #define AC97_STAC_ANALOG_SPECIAL 0x6E
31 #define AC97_STAC_STEREO_MIC 0x78
34 { 0x02, 0x8000 },
35 { 0x04, 0x8000 },
36 { 0x06, 0x8000 },
37 { 0x0a, 0x0000 },
38 { 0x0c, 0x8008 },
39 { 0x0e, 0x8008 },
40 { 0x10, 0x8808 },
41 { 0x12, 0x8808 },
42 { 0x14, 0x8808 },
43 { 0x16, 0x8808 },
44 { 0x18, 0x8808 },
45 { 0x1a, 0x0000 },
46 { 0x1c, 0x8000 },
47 { 0x20, 0x0000 },
48 { 0x22, 0x0000 },
49 { 0x28, 0x0a05 },
50 { 0x2c, 0xbb80 },
51 { 0x32, 0xbb80 },
52 { 0x3a, 0x2000 },
53 { 0x3e, 0x0100 },
54 { 0x4c, 0x0300 },
55 { 0x4e, 0xffff },
56 { 0x50, 0x0000 },
57 { 0x52, 0x0000 },
58 { 0x54, 0x0000 },
59 { 0x6a, 0x0000 },
60 { 0x6e, 0x1000 },
61 { 0x72, 0x0000 },
62 { 0x78, 0x0000 },
69 .max_register = 0x78,
86 static const char *stac9766_boost1[] = {"0dB", "10dB"};
87 static const char *stac9766_boost2[] = {"0dB", "20dB"};
91 AC97_REC_SEL, 8, 0, stac9766_record_mux);
104 AC97_MIC, 6, stac9766_boost1); /* 0/10dB */
106 AC97_STAC_ANALOG_SPECIAL, 2, stac9766_boost2); /* 0/20dB */
110 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(master_tlv, -4650, 150, 0);
111 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(record_tlv, 0, 150, 0);
112 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(beep_tlv, -4500, 300, 0);
113 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(mix_tlv, -3450, 150, 0);
116 SOC_DOUBLE_TLV("Speaker Volume", AC97_MASTER, 8, 0, 31, 1, master_tlv),
118 SOC_DOUBLE_TLV("Headphone Volume", AC97_HEADPHONE, 8, 0, 31, 1,
121 SOC_SINGLE_TLV("Mono Out Volume", AC97_MASTER_MONO, 0, 31, 1,
125 SOC_DOUBLE_TLV("Record Volume", AC97_REC_GAIN, 8, 0, 15, 0, record_tlv),
132 SOC_SINGLE_TLV("Phone Volume", AC97_PHONE, 0, 31, 1, mix_tlv),
137 SOC_SINGLE_TLV("Mic Volume", AC97_MIC, 0, 31, 1, mix_tlv),
141 SOC_DOUBLE_TLV("Line Volume", AC97_LINE, 8, 0, 31, 1, mix_tlv),
143 SOC_DOUBLE_TLV("CD Volume", AC97_CD, 8, 0, 31, 1, mix_tlv),
145 SOC_DOUBLE_TLV("AUX Volume", AC97_AUX, 8, 0, 31, 1, mix_tlv),
147 SOC_DOUBLE_TLV("Video Volume", AC97_VIDEO, 8, 0, 31, 1, mix_tlv),
150 SOC_DOUBLE_TLV("DAC Volume", AC97_PCM, 8, 0, 31, 1, mix_tlv),
152 SOC_SINGLE("Loopback Test Switch", AC97_GENERAL_PURPOSE, 7, 1, 0),
154 SOC_SINGLE("3D Switch", AC97_GENERAL_PURPOSE, 13, 1, 0),
172 snd_soc_component_update_bits(component, AC97_EXTENDED_STATUS, 0x5, 0x1); in ac97_analog_prepare()
189 snd_soc_component_write(component, AC97_SPDIF, 0x2002); in ac97_digital_prepare()
192 snd_soc_component_update_bits(component, AC97_EXTENDED_STATUS, 0x5, 0x5); in ac97_digital_prepare()
206 snd_soc_component_write(component, AC97_POWERDOWN, 0x0000); in stac9766_set_bias_level()
210 snd_soc_component_write(component, AC97_POWERDOWN, 0xffff); in stac9766_set_bias_level()
213 return 0; in stac9766_set_bias_level()
291 return 0; in stac9766_component_probe()