xref: /aosp_15_r20/external/autotest/client/cros/video/detectors/mipi_camera.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2020 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from .utils import detect_camera
6
7
8def detect():
9    """
10    Checks whether the device has a built-in MIPI camera.
11
12    @returns string: 'mipi_camera' if true, '' otherwise.
13    """
14    return 'mipi_camera' if detect_camera('mipi') else ''
15