Home
last modified time | relevance | path

Searched refs:sd_fmt (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/media/pci/cobalt/
Dcobalt-v4l2.c147 struct v4l2_subdev_format sd_fmt = { in cobalt_enable_output() local
159 sd_fmt.format.colorspace = s->colorspace; in cobalt_enable_output()
160 sd_fmt.format.xfer_func = s->xfer_func; in cobalt_enable_output()
161 sd_fmt.format.ycbcr_enc = s->ycbcr_enc; in cobalt_enable_output()
162 sd_fmt.format.quantization = s->quantization; in cobalt_enable_output()
163 sd_fmt.format.width = bt->width; in cobalt_enable_output()
164 sd_fmt.format.height = bt->height; in cobalt_enable_output()
169 sd_fmt.format.code = MEDIA_BUS_FMT_UYVY8_1X16; in cobalt_enable_output()
172 sd_fmt.format.code = MEDIA_BUS_FMT_RGB888_1X24; in cobalt_enable_output()
175 v4l2_subdev_call(s->sd, pad, set_fmt, NULL, &sd_fmt); in cobalt_enable_output()
[all …]
Dcobalt-driver.c494 struct v4l2_subdev_format sd_fmt = { in cobalt_subdevs_init() local
529 &sd_fmt); in cobalt_subdevs_init()
576 struct v4l2_subdev_format sd_fmt = { in cobalt_subdevs_hsma_init() local
613 &sd_fmt); in cobalt_subdevs_hsma_init()
/linux-6.12.1/drivers/media/platform/ti/cal/
Dcal-video.c120 struct v4l2_subdev_format sd_fmt = { in __subdev_get_format() local
124 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format()
127 ret = v4l2_subdev_call(ctx->phy->source, pad, get_fmt, NULL, &sd_fmt); in __subdev_get_format()
142 struct v4l2_subdev_format sd_fmt = { in __subdev_set_format() local
146 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format()
151 ret = v4l2_subdev_call(ctx->phy->source, pad, set_fmt, NULL, &sd_fmt); in __subdev_set_format()
256 struct v4l2_subdev_format sd_fmt = { in cal_legacy_s_fmt_vid_cap() local
274 v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code); in cal_legacy_s_fmt_vid_cap()
276 ret = __subdev_set_format(ctx, &sd_fmt.format); in cal_legacy_s_fmt_vid_cap()
281 if (sd_fmt.format.code != fmtinfo->code) { in cal_legacy_s_fmt_vid_cap()
[all …]
/linux-6.12.1/drivers/media/platform/st/stm32/
Dstm32-dcmi.c960 const struct dcmi_format *sd_fmt; in dcmi_try_fmt() local
969 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); in dcmi_try_fmt()
970 if (!sd_fmt) { in dcmi_try_fmt()
974 sd_fmt = dcmi->sd_formats[dcmi->num_of_sd_formats - 1]; in dcmi_try_fmt()
975 pix->pixelformat = sd_fmt->fourcc; in dcmi_try_fmt()
996 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_try_fmt()
1031 pix->bytesperline = pix->width * sd_fmt->bpp; in dcmi_try_fmt()
1035 *sd_format = sd_fmt; in dcmi_try_fmt()
1142 const struct dcmi_format *sd_fmt; in dcmi_set_sensor_format() local
1148 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); in dcmi_set_sensor_format()
[all …]
/linux-6.12.1/sound/soc/intel/avs/
Dicl.c137 unsigned int sd_fmt; in avs_icl_load_basefw() local
160 sd_fmt = snd_hdac_stream_format(1, 32, 48000); in avs_icl_load_basefw()
162 ret = snd_hdac_dsp_prepare(hdac_stream(host_stream), sd_fmt, fw->size, &dmab); in avs_icl_load_basefw()
/linux-6.12.1/drivers/staging/media/starfive/camss/
Dstf-video.c248 struct v4l2_subdev_format sd_fmt = { in stf_video_check_format() local
252 ret = video_get_subdev_format(video, &sd_fmt); in stf_video_check_format()
256 fi = video_g_fi_by_mcode(video, sd_fmt.format.code); in stf_video_check_format()
261 pix->height != sd_fmt.format.height || in stf_video_check_format()
262 pix->width != sd_fmt.format.width || in stf_video_check_format()
263 pix->field != sd_fmt.format.field) in stf_video_check_format()
/linux-6.12.1/drivers/media/test-drivers/vimc/
Dvimc-common.c246 struct v4l2_subdev_format sd_fmt = { in vimc_get_pix_format() local
253 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in vimc_get_pix_format()
257 v4l2_fill_pix_format(fmt, &sd_fmt.format); in vimc_get_pix_format()
258 pix_map = vimc_pix_map_by_code(sd_fmt.format.code); in vimc_get_pix_format()
/linux-6.12.1/drivers/staging/media/deprecated/atmel/
Datmel-isc-base.c858 struct isc_format *sd_fmt = NULL, *direct_fmt = NULL; in isc_try_fmt() local
877 sd_fmt = isc->user_formats[i]; in isc_try_fmt()
889 if (direct_fmt && sd_fmt && sensor_preferred) in isc_try_fmt()
890 sd_fmt = direct_fmt; in isc_try_fmt()
893 if (direct_fmt && !sd_fmt) in isc_try_fmt()
894 sd_fmt = direct_fmt; in isc_try_fmt()
899 if (sd_fmt == direct_fmt) in isc_try_fmt()
906 if (!sd_fmt && !direct_fmt) { in isc_try_fmt()
907 sd_fmt = isc->user_formats[isc->num_user_formats - 1]; in isc_try_fmt()
910 (char *)&pixfmt->pixelformat, (char *)&sd_fmt->fourcc); in isc_try_fmt()
[all …]
/linux-6.12.1/drivers/media/platform/rockchip/rkisp1/
Drkisp1-capture.c1470 struct v4l2_subdev_format sd_fmt = { in rkisp1_capture_link_validate() local
1476 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in rkisp1_capture_link_validate()
1480 if (sd_fmt.format.height != cap->pix.fmt.height || in rkisp1_capture_link_validate()
1481 sd_fmt.format.width != cap->pix.fmt.width || in rkisp1_capture_link_validate()
1482 sd_fmt.format.code != fmt->mbus) { in rkisp1_capture_link_validate()
1487 sd_fmt.format.code, sd_fmt.format.width, in rkisp1_capture_link_validate()
1488 sd_fmt.format.height, fmt->mbus, cap->pix.fmt.width, in rkisp1_capture_link_validate()
/linux-6.12.1/drivers/media/platform/cadence/
Dcdns-csi2rx.c169 struct v4l2_subdev_format sd_fmt = { in csi2rx_configure_ext_dphy() local
178 &sd_fmt); in csi2rx_configure_ext_dphy()
182 fmt = csi2rx_get_fmt_by_code(sd_fmt.format.code); in csi2rx_configure_ext_dphy()
/linux-6.12.1/drivers/media/platform/microchip/
Dmicrochip-isc-base.c912 struct isc_format *sd_fmt = NULL; in isc_link_validate() local
928 sd_fmt = &isc->formats_list[i]; in isc_link_validate()
933 if (!sd_fmt) { in isc_link_validate()
941 isc->try_config.sd_format = sd_fmt; in isc_link_validate()
962 (char *)&sd_fmt->fourcc, pixfmt->width, pixfmt->height, in isc_link_validate()
/linux-6.12.1/drivers/media/platform/ti/am437x/
Dam437x-vpfe.c1284 struct v4l2_subdev_format sd_fmt = { in __subdev_get_format() local
1288 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format()
1291 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in __subdev_get_format()
1308 struct v4l2_subdev_format sd_fmt = { in __subdev_set_format() local
1312 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format()
1317 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, &sd_fmt); in __subdev_set_format()
/linux-6.12.1/drivers/media/i2c/
Dalvium-csi2.c1866 struct v4l2_subdev_format sd_fmt = { in alvium_init_state() local
1881 *v4l2_subdev_state_get_format(state, 0) = sd_fmt.format; in alvium_init_state()