linux/drivers/staging/media/atomisp/pci/isp/kernels/copy_output/copy_output_1.0/ia_css_copy_output.host.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0
   2/*
   3 * Support for Intel Camera Imaging ISP subsystem.
   4 * Copyright (c) 2015, Intel Corporation.
   5 *
   6 * This program is free software; you can redistribute it and/or modify it
   7 * under the terms and conditions of the GNU General Public License,
   8 * version 2, as published by the Free Software Foundation.
   9 *
  10 * This program is distributed in the hope it will be useful, but WITHOUT
  11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  13 * more details.
  14 */
  15
  16#include "ia_css_copy_output.host.h"
  17#include "ia_css_binary.h"
  18#include "type_support.h"
  19#define IA_CSS_INCLUDE_CONFIGURATIONS
  20#include "ia_css_isp_configs.h"
  21#include "isp.h"
  22
  23static const struct ia_css_copy_output_configuration default_config = {
  24        .enable = false,
  25};
  26
  27void
  28ia_css_copy_output_config(
  29    struct sh_css_isp_copy_output_isp_config      *to,
  30    const struct ia_css_copy_output_configuration *from,
  31    unsigned int size)
  32{
  33        (void)size;
  34        to->enable = from->enable;
  35}
  36
  37void
  38ia_css_copy_output_configure(
  39    const struct ia_css_binary     *binary,
  40    bool enable)
  41{
  42        struct ia_css_copy_output_configuration config = default_config;
  43
  44        config.enable = enable;
  45
  46        ia_css_configure_copy_output(binary, &config);
  47}
  48