~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/sound/sof/channel_map.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2 /*
  3  * This file is provided under a dual BSD/GPLv2 license.  When using or
  4  * redistributing this file, you may do so under either license.
  5  *
  6  * Copyright(c) 2019 Intel Corporation
  7  */
  8 
  9 #ifndef __IPC_CHANNEL_MAP_H__
 10 #define __IPC_CHANNEL_MAP_H__
 11 
 12 #include <uapi/sound/sof/header.h>
 13 #include <sound/sof/header.h>
 14 
 15 /**
 16  * \brief Channel map, specifies transformation of one-to-many or many-to-one.
 17  *
 18  * In case of one-to-many specifies how the output channels are computed out of
 19  * a single source channel,
 20  * in case of many-to-one specifies how a single target channel is computed
 21  * from a multichannel input stream.
 22  *
 23  * Channel index specifies position of the channel in the stream on the 'one'
 24  * side.
 25  *
 26  * Ext ID is the identifier of external part of the transformation. Depending
 27  * on the context, it may be pipeline ID, dai ID, ...
 28  *
 29  * Channel mask describes which channels are taken into account on the "many"
 30  * side. Bit[i] set to 1 means that i-th channel is used for computation
 31  * (either as source or as a target).
 32  *
 33  * Channel mask is followed by array of coefficients in Q2.30 format,
 34  * one per each channel set in the mask (left to right, LS bit set in the
 35  * mask corresponds to ch_coeffs[0]).
 36  */
 37 struct sof_ipc_channel_map {
 38         uint32_t ch_index;
 39         uint32_t ext_id;
 40         uint32_t ch_mask;
 41         uint32_t reserved;
 42         int32_t ch_coeffs[];
 43 } __packed;
 44 
 45 /**
 46  * \brief Complete map for each channel of a multichannel stream.
 47  *
 48  * num_ch_map Specifies number of items in the ch_map.
 49  * More than one transformation per a single channel is allowed (in case
 50  * multiple external entities are transformed).
 51  * A channel may be skipped in the transformation list, then it is filled
 52  * with 0's by the transformation function.
 53  */
 54 struct sof_ipc_stream_map {
 55         struct sof_ipc_cmd_hdr hdr;
 56         uint32_t num_ch_map;
 57         uint32_t reserved[3];
 58         struct sof_ipc_channel_map ch_map[];
 59 } __packed;
 60 
 61 #endif /* __IPC_CHANNEL_MAP_H__ */
 62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php