mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
dc3bf49ea3
The "WITH Linux-syscall-note" exception exists for headers exported to
user space. It is strange to add it to non-exported headers.
Commit 687a3e4d8e
("treewide: remove SPDX "WITH Linux-syscall-note"
from kernel-space headers") did cleanups some months ago, but it looks
like we need to do this periodically.
This patch was generated by the following script:
git grep -l -e Linux-syscall-note \
-- :*.h :^arch/*/include/uapi/asm/*.h :^include/uapi/ :^tools |
while read file
do
sed -i -e 's/(\(GPL-[^[:space:]]*\) WITH Linux-syscall-note)/\1/g' \
-e 's/ WITH Linux-syscall-note//g' $file
done
I did not commit drivers/staging/android/uapi/ion.h . This header is
not currently exported, but somebody may plan to move it to include/uapi/
when the time comes. I am not sure. Anyway, it will be better to check
the license inconsistency in drivers/staging/android/uapi/.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
77 lines
2.4 KiB
C
77 lines
2.4 KiB
C
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
|
|
/*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
*
|
|
* Copyright(c) 2018 Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __INCLUDE_SOUND_SOF_DAI_H__
|
|
#define __INCLUDE_SOUND_SOF_DAI_H__
|
|
|
|
#include <sound/sof/header.h>
|
|
#include <sound/sof/dai-intel.h>
|
|
|
|
/*
|
|
* DAI Configuration.
|
|
*
|
|
* Each different DAI type will have it's own structure and IPC cmd.
|
|
*/
|
|
|
|
#define SOF_DAI_FMT_I2S 1 /**< I2S mode */
|
|
#define SOF_DAI_FMT_RIGHT_J 2 /**< Right Justified mode */
|
|
#define SOF_DAI_FMT_LEFT_J 3 /**< Left Justified mode */
|
|
#define SOF_DAI_FMT_DSP_A 4 /**< L data MSB after FRM LRC */
|
|
#define SOF_DAI_FMT_DSP_B 5 /**< L data MSB during FRM LRC */
|
|
#define SOF_DAI_FMT_PDM 6 /**< Pulse density modulation */
|
|
|
|
#define SOF_DAI_FMT_CONT (1 << 4) /**< continuous clock */
|
|
#define SOF_DAI_FMT_GATED (0 << 4) /**< clock is gated */
|
|
|
|
#define SOF_DAI_FMT_NB_NF (0 << 8) /**< normal bit clock + frame */
|
|
#define SOF_DAI_FMT_NB_IF (2 << 8) /**< normal BCLK + inv FRM */
|
|
#define SOF_DAI_FMT_IB_NF (3 << 8) /**< invert BCLK + nor FRM */
|
|
#define SOF_DAI_FMT_IB_IF (4 << 8) /**< invert BCLK + FRM */
|
|
|
|
#define SOF_DAI_FMT_CBM_CFM (0 << 12) /**< codec clk & FRM master */
|
|
#define SOF_DAI_FMT_CBS_CFM (2 << 12) /**< codec clk slave & FRM master */
|
|
#define SOF_DAI_FMT_CBM_CFS (3 << 12) /**< codec clk master & frame slave */
|
|
#define SOF_DAI_FMT_CBS_CFS (4 << 12) /**< codec clk & FRM slave */
|
|
|
|
#define SOF_DAI_FMT_FORMAT_MASK 0x000f
|
|
#define SOF_DAI_FMT_CLOCK_MASK 0x00f0
|
|
#define SOF_DAI_FMT_INV_MASK 0x0f00
|
|
#define SOF_DAI_FMT_MASTER_MASK 0xf000
|
|
|
|
/** \brief Types of DAI */
|
|
enum sof_ipc_dai_type {
|
|
SOF_DAI_INTEL_NONE = 0, /**< None */
|
|
SOF_DAI_INTEL_SSP, /**< Intel SSP */
|
|
SOF_DAI_INTEL_DMIC, /**< Intel DMIC */
|
|
SOF_DAI_INTEL_HDA, /**< Intel HD/A */
|
|
SOF_DAI_INTEL_SOUNDWIRE, /**< Intel SoundWire */
|
|
};
|
|
|
|
/* general purpose DAI configuration */
|
|
struct sof_ipc_dai_config {
|
|
struct sof_ipc_cmd_hdr hdr;
|
|
uint32_t type; /**< DAI type - enum sof_ipc_dai_type */
|
|
uint32_t dai_index; /**< index of this type dai */
|
|
|
|
/* physical protocol and clocking */
|
|
uint16_t format; /**< SOF_DAI_FMT_ */
|
|
uint16_t reserved16; /**< alignment */
|
|
|
|
/* reserved for future use */
|
|
uint32_t reserved[8];
|
|
|
|
/* HW specific data */
|
|
union {
|
|
struct sof_ipc_dai_ssp_params ssp;
|
|
struct sof_ipc_dai_dmic_params dmic;
|
|
struct sof_ipc_dai_hda_params hda;
|
|
};
|
|
} __packed;
|
|
|
|
#endif
|