From patchwork Wed Mar 6 13:49:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 779033 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90910130E57 for ; Wed, 6 Mar 2024 13:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709732963; cv=none; b=SbOab9kaOoWeAiJGBCeH30+SquSQBbogiQKdwNBlniUwB7kG0ZPHhLgwFhSov6aTK3AnOFWIkZ59lebeKeFrk3VUQcF5g5lOwwHkP11yiiQ6XaNrfdtB4rFlKZH2ZMXKJkNeEShlG2mzw3j18SBKw59hJjpWnNvlMySIKr4t2Pg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709732963; c=relaxed/simple; bh=8fCDGsY6xQHgUEKbp098DLBT2t2Vzy28fVFKxOqK6YE=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type; b=RBAByhiLMsBGAkAFAkCXQ9Z0GJkqu3X2mlwt9txiVv5EewX0lkSM6MgSPHpua7UpW8QbL5hD+5X5Io0U6PnH0sNNGkQmqqi3SuHKP6ZOYXxV60TCIf/5jvw+vEk/RW/41Co/X4yFVcBP5dBka3vHvkuh+3ox7VHWUK8UxFYgD/E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E927FC433C7 for ; Wed, 6 Mar 2024 13:49:22 +0000 (UTC) Message-ID: <4b52574e-3fc2-4007-b76c-fb353964f86c@xs4all.nl> Date: Wed, 6 Mar 2024 14:49:21 +0100 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, nl To: Linux Media Mailing List From: Hans Verkuil Subject: [PATCH] media: v4l2-ctrls: add support for area type logging A 'case V4L2_CTRL_TYPE_AREA' was missing in v4l2_ctrl_type_op_log, which led to an 'unknown type' message in the kernel log. Add support for controls of this type. Signed-off-by: Hans Verkuil diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c index c4d995f32191..9a09a981e1d9 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c @@ -295,6 +295,9 @@ void v4l2_ctrl_type_op_log(const struct v4l2_ctrl *ctrl) case V4L2_CTRL_TYPE_U32: pr_cont("%u", (unsigned)*ptr.p_u32); break; + case V4L2_CTRL_TYPE_AREA: + pr_cont("%ux%u", ptr.p_area->width, ptr.p_area->height); + break; case V4L2_CTRL_TYPE_H264_SPS: pr_cont("H264_SPS"); break;