Lines Matching +full:0 +full:x102

40 #define ALC_HOLD 0x85 /* R17: use zero cross detection, ALC hold time 42.6 ms */
41 #define ALC_EN 0x100 /* R17: ALC enable */
50 u8 input; /* Last selected input (0-0xf) */
68 if (reg < 0 || reg >= TOT_REGS) { in wm8775_write()
73 for (i = 0; i < 3; i++) in wm8775_write()
75 (reg << 1) | (val >> 8), val & 0xff) == 0) in wm8775_write()
76 return 0; in wm8775_write()
85 int muted = 0 != state->mute->val; in wm8775_set_audio()
89 /* normalize ( 65535 to 0 -> 255 to 0 (+24dB to -103dB) ) */ in wm8775_set_audio()
95 wm8775_write(sd, R21, 0x0c0 | state->input); in wm8775_set_audio()
97 wm8775_write(sd, R14, vol_l | 0x100); /* 0x100= Left channel ADC zero cross enable */ in wm8775_set_audio()
98 wm8775_write(sd, R15, vol_r | 0x100); /* 0x100= Right channel ADC zero cross enable */ in wm8775_set_audio()
121 return 0; in wm8775_s_routing()
123 return 0; in wm8775_s_routing()
125 return 0; in wm8775_s_routing()
136 wm8775_set_audio(sd, 0); in wm8775_s_ctrl()
137 return 0; in wm8775_s_ctrl()
139 wm8775_write(sd, R17, (ctrl->val ? ALC_EN : 0) | ALC_HOLD); in wm8775_s_ctrl()
140 return 0; in wm8775_s_ctrl()
151 return 0; in wm8775_log_status()
156 wm8775_set_audio(sd, 0); in wm8775_s_frequency()
157 return 0; in wm8775_s_frequency()
210 v4l_info(client, "chip found @ 0x%02x (%s)\n", in wm8775_probe()
222 V4L2_CID_AUDIO_MUTE, 0, 1, 1, 0); in wm8775_probe()
224 V4L2_CID_AUDIO_VOLUME, 0, 65535, (65535+99)/100, 0xCF00); /* 0dB*/ in wm8775_probe()
226 V4L2_CID_AUDIO_BALANCE, 0, 65535, (65535+99)/100, 32768); in wm8775_probe()
228 V4L2_CID_AUDIO_LOUDNESS, 0, 1, 1, 1); in wm8775_probe()
239 wm8775_write(sd, R23, 0x000); in wm8775_probe()
241 wm8775_write(sd, R7, 0x000); in wm8775_probe()
243 wm8775_write(sd, R11, 0x021); in wm8775_probe()
245 wm8775_write(sd, R12, 0x102); in wm8775_probe()
247 wm8775_write(sd, R13, 0x000); in wm8775_probe()
251 wm8775_write(sd, R14, 0x1d4); in wm8775_probe()
253 wm8775_write(sd, R15, 0x1d4); in wm8775_probe()
255 wm8775_write(sd, R16, 0x1bf); in wm8775_probe()
258 wm8775_write(sd, R17, 0x185); in wm8775_probe()
261 wm8775_write(sd, R16, 0x1bb); in wm8775_probe()
263 wm8775_write(sd, R17, (state->loud->val ? ALC_EN : 0) | ALC_HOLD); in wm8775_probe()
266 wm8775_write(sd, R18, 0x0a2); in wm8775_probe()
268 wm8775_write(sd, R19, 0x005); in wm8775_probe()
271 wm8775_write(sd, R20, 0x07a); in wm8775_probe()
273 wm8775_write(sd, R21, 0x102); in wm8775_probe()
276 wm8775_write(sd, R20, 0x0fb); in wm8775_probe()
280 return 0; in wm8775_probe()
293 { "wm8775", 0 },