Lines Matching refs:err
129 int err = i2c_master_send(client, data, len); in saa7706h_i2c_send() local
130 if (err == len) in saa7706h_i2c_send()
132 return err > 0 ? -EIO : err; in saa7706h_i2c_send()
138 int err = i2c_transfer(client->adapter, msgs, num); in saa7706h_i2c_transfer() local
139 if (err == num) in saa7706h_i2c_transfer()
141 return err > 0 ? -EIO : err; in saa7706h_i2c_transfer()
160 int *err) in saa7706h_set_reg24_err() argument
162 return *err ? *err : saa7706h_set_reg24(sd, reg, val); in saa7706h_set_reg24_err()
180 int *err) in saa7706h_set_reg16_err() argument
182 return *err ? *err : saa7706h_set_reg16(sd, reg, val); in saa7706h_set_reg16_err()
189 int err; in saa7706h_get_reg16() local
205 err = saa7706h_i2c_transfer(client, msg, ARRAY_SIZE(msg)); in saa7706h_get_reg16()
206 if (err) in saa7706h_get_reg16()
207 return err; in saa7706h_get_reg16()
215 int err = 0; in saa7706h_unmute() local
217 err = saa7706h_set_reg16_err(sd, SAA7706H_REG_CTRL, in saa7706h_unmute()
219 SAA7706H_CTRL_PC_RESET_DSP2, &err); in saa7706h_unmute()
224 err = saa7706h_set_reg16_err(sd, SAA7706H_REG_CTRL, in saa7706h_unmute()
225 SAA7706H_CTRL_PLL3_62975MHZ, &err); in saa7706h_unmute()
227 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_EVALUATION, 0, &err); in saa7706h_unmute()
229 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_CL_GEN1, 0x040022, &err); in saa7706h_unmute()
231 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_CL_GEN2, in saa7706h_unmute()
232 SAA7706H_CL_GEN2_WSEDGE_FALLING, &err); in saa7706h_unmute()
234 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_CL_GEN4, 0x024080, &err); in saa7706h_unmute()
236 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_SEL, 0x200080, &err); in saa7706h_unmute()
238 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_IAC, 0xf4caed, &err); in saa7706h_unmute()
240 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_CLK_SET, 0x124334, &err); in saa7706h_unmute()
242 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_CLK_COEFF, 0x004a1a, in saa7706h_unmute()
243 &err); in saa7706h_unmute()
245 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_INPUT_SENS, 0x0071c7, in saa7706h_unmute()
246 &err); in saa7706h_unmute()
248 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_PHONE_NAV_AUDIO, in saa7706h_unmute()
249 0x0e22ff, &err); in saa7706h_unmute()
251 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_IO_CONF_DSP2, 0x001ff8, in saa7706h_unmute()
252 &err); in saa7706h_unmute()
254 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_STATUS_DSP2, 0x080003, in saa7706h_unmute()
255 &err); in saa7706h_unmute()
257 err = saa7706h_set_reg24_err(sd, SAA7706H_REG_PC_DSP2, 0x000004, &err); in saa7706h_unmute()
259 err = saa7706h_set_reg16_err(sd, SAA7706H_DSP1_MOD0, 0x0c6c, &err); in saa7706h_unmute()
261 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_MPTR0, 0x000b4b, &err); in saa7706h_unmute()
263 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP1_MODPNTR, 0x000600, &err); in saa7706h_unmute()
265 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP1_MODPNTR, 0x0000c0, &err); in saa7706h_unmute()
267 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_CONTLLCW, 0x000819, in saa7706h_unmute()
268 &err); in saa7706h_unmute()
270 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_CONTLLCW, 0x00085a, in saa7706h_unmute()
271 &err); in saa7706h_unmute()
273 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_BUSAMP, 0x7fffff, in saa7706h_unmute()
274 &err); in saa7706h_unmute()
276 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_FDACPNTR, 0x2000cb, in saa7706h_unmute()
277 &err); in saa7706h_unmute()
279 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_IIS1PNTR, 0x2000cb, in saa7706h_unmute()
280 &err); in saa7706h_unmute()
282 err = saa7706h_set_reg16_err(sd, SAA7706H_DSP2_YMEM_PVGA, 0x0f80, &err); in saa7706h_unmute()
284 err = saa7706h_set_reg16_err(sd, SAA7706H_DSP2_YMEM_PVAT1, 0x0800, in saa7706h_unmute()
285 &err); in saa7706h_unmute()
287 err = saa7706h_set_reg16_err(sd, SAA7706H_DSP2_YMEM_PVAT, 0x0800, &err); in saa7706h_unmute()
289 err = saa7706h_set_reg24_err(sd, SAA7706H_DSP2_XMEM_CONTLLCW, 0x000905, in saa7706h_unmute()
290 &err); in saa7706h_unmute()
291 if (!err) in saa7706h_unmute()
293 return err; in saa7706h_unmute()
299 int err; in saa7706h_mute() local
301 err = saa7706h_set_reg16(sd, SAA7706H_REG_CTRL, in saa7706h_mute()
304 if (!err) in saa7706h_mute()
306 return err; in saa7706h_mute()
339 int err; in saa7706h_probe() local
358 err = state->hdl.error; in saa7706h_probe()
359 if (err) in saa7706h_probe()
360 goto err; in saa7706h_probe()
363 err = saa7706h_get_reg16(sd, SAA7706H_DSP1_ROM_VER); in saa7706h_probe()
364 if (err < 0) in saa7706h_probe()
365 goto err; in saa7706h_probe()
366 if (err != SUPPORTED_DSP1_ROM_VER) in saa7706h_probe()
367 v4l2_warn(sd, "Unknown DSP1 ROM code version: 0x%x\n", err); in saa7706h_probe()
371 err = saa7706h_mute(sd); in saa7706h_probe()
372 if (err) in saa7706h_probe()
373 goto err; in saa7706h_probe()
377 err: in saa7706h_probe()
382 printk(KERN_ERR DRIVER_NAME ": Failed to probe: %d\n", err); in saa7706h_probe()
384 return err; in saa7706h_probe()