Where to get source?

I checked “tegra_multimedia_api/samples/10_camera_recording” with out camera(YUV422 output).
I just fix one line like below for our camera.
iStreamSettings->setPixelFormat(PIXEL_FMT_YCbCr_420_888);
to
iStreamSettings->setPixelFormat(PIXEL_FMT_YCbCr_422_888);

But I got below error message.
Do I need further fix to make a work our camera?
And tell me how to get below related sources for debugging it.

PRODUCER: Creating output stream^M
PPRODUCER: Launching consumer thread^M
PFailed to query video capabilities: Inappropriate ioctl for device^M
PNvMMLiteOpen : Block : BlockType = 4 ^M
P===== MSENC =====^M
PNvMMLiteBlockCreate : Block : BlockType = 4 ^M
P875967048^M
P842091865^M
Pcreate video encoder return true^M
PCONSUMER: Waiting until producer is connected…^M
PPRODUCER: Starting repeat capture requests.^M
PCONSUMER: Producer has connected; continuing.^M
P(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/ V4L2Device.cpp, function setControlValMultiple(), line 673)^M
P(NvOdmDevice) Error NotInitialized: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/ V4L2SensorViCsi.cpp, function setDeviceControls(), line 1618)^M
PupdateOutputSettings: Set Control failed. Use cached values^M
P(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/ V4L2Device.cpp, function getControlValMultiple(), line 521)^M
P(NvOdmDevice) Error NotInitialized: V4L2Device not powered on (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/ V4L2Device.cpp, function streamControl(), line 1633)^M
P(NvOdmDevice) Error NotInitialized: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/ V4L2SensorViCsi.cpp, function apply(), line 202)^M
PSCF: Error MetadataFailure: AutoControl output not found (in src/services/autocontrol/NvCameraIspDriver.cpp, function extractPclSettingsFromCC(), line 816)^M


SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 689)
(Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
CONSUMER: Got EOS, exiting…
CONSUMER: Done.
PRODUCER: Done – exiting.
SCF: Error Timeout: (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
SCF: Error InvalidState: Not initialized (in src/components/CaptureDispatcher.cpp, function flush(), line 128)

Below is another case with 09_camera_jpeg_capture sample app.
I changed one line like above case.
iStreamSettings->setPixelFormat(PIXEL_FMT_YCbCr_420_888);
to
iStreamSettings->setPixelFormat(PIXEL_FMT_YCbCr_422_888);

I want know that how to use nvidia sample app with our camera module(ISP stand alone camera, YUYV output)

nvidia@:$ ./camera_jpeg_capture
[INFO] (NvEglRenderer.cpp:109) Setting Screen width 640 height 480
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/e3327_front_P5V27C.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/e3327_front_P5V27C.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/e3327_front_P5V27C.isp] 8/16---- imager: No override file found. ----
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 19: Error: Invalid isp config attribute: “opticalBlack.manualBiasR=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 20: Error: Invalid isp config attribute: “opticalBlack.manualBiasGR=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 21: Error: Invalid isp config attribute: “opticalBlack.manualBiasGB=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 22: Error: Invalid isp config attribute: “opticalBlack.manualBiasB=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 23: Error: Invalid isp config attribute: “opticalBlack.mode=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 322: Error: Invalid isp config attribute: “tnr.v1.maxRealtimePps=265420800”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 19: Error: Invalid isp config attribute: “opticalBlack.manualBiasR=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 20: Error: Invalid isp config attribute: “opticalBlack.manualBiasGR=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 21: Error: Invalid isp config attribute: “opticalBlack.manualBiasGB=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 22: Error: Invalid isp config attribute: “opticalBlack.manualBiasB=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 23: Error: Invalid isp config attribute: “opticalBlack.mode=0”
NvCameraIspConfigFileLoad: Config file “isp4.cfg” Line 322: Error: Invalid isp config attribute: “tnr.v1.maxRealtimePps=265420800”
PRODUCER: Creating output stream
(Argus) Error BadParameter: Format not supported (in src/api/OutputStreamSettingsImpl.cpp, function setPixelFormat(), line 53)
(Argus) Error BadParameter: Pixel format not supported. (in src/api/CaptureSessionImpl.cpp, function createOutputStreamInternal(), line 586)
PRODUCER: Launching consumer thread
(Argus) Error BadParameter: NULL output stream (in src/eglstream/FrameConsumerImpl.cpp, function create(), line 25)
Error generated. main.cpp, threadInitialize:110 Failed to create FrameConsumer
Error generated. /home/nvidia/tegra_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:126 (propagating)
Error generated. /home/nvidia/tegra_multimedia_api/argus/samples/utils/Thread.cpp, waitRunning:83 Invalid thread state 3
Error generated. main.cpp, execute:367 (propagating)
NvEglHandle: Unfreed handle upon egl deinit: type=2 refcnt=2
NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1

Please check https://devtalk.nvidia.com/default/topic/1037175/jetson-tx2/sample-application-modification-point-to-use-yuyv-custom-camera/post/5269182/#5269182