Lines Matching +full:auto +full:- +full:load
1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include "cx18-driver.h"
10 #include "cx18-io.h"
20 #define FWFILE "v4l-cx23418-dig.fw"
24 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw()
40 /* Read and auto increment until at address 0x0000 */ in cx18_av_verifyfw()
44 data = fw->data; in cx18_av_verifyfw()
45 size = fw->size; in cx18_av_verifyfw()
50 CX18_ERR_DEV(sd, "verification of %s firmware load failed: expected %#010x got %#010x\n", in cx18_av_verifyfw()
52 ret = -EIO; in cx18_av_verifyfw()
58 CX18_INFO_DEV(sd, "verified load of %s firmware (%d bytes)\n", in cx18_av_verifyfw()
65 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw()
73 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw()
75 return -EINVAL; in cx18_av_loadfw()
78 /* The firmware load often has byte errors, so allow for several in cx18_av_loadfw()
79 retries, both at byte level and at the firmware load level. */ in cx18_av_loadfw()
92 ptr = fw->data; in cx18_av_loadfw()
93 size = fw->size; in cx18_av_loadfw()
125 CX18_ERR_DEV(sd, "unable to load firmware %s\n", FWFILE); in cx18_av_loadfw()
127 return -EIO; in cx18_av_loadfw()
131 0x03000000 | fw->size, 0x03000000, 0x13000000); in cx18_av_loadfw()
137 0x13000000 | fw->size, 0x13000000, 0x13000000); in cx18_av_loadfw()
199 /* Enable WW auto audio standard detection */ in cx18_av_loadfw()
201 v |= 0xFF; /* Auto by default */ in cx18_av_loadfw()