1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #ifndef __Q6DSP_COMMON_H__ 3 #ifndef __Q6DSP_COMMON_H__ 4 #define __Q6DSP_COMMON_H__ 4 #define __Q6DSP_COMMON_H__ 5 5 6 #include <linux/kernel.h> 6 #include <linux/kernel.h> 7 7 8 #define PCM_MAX_NUM_CHANNEL 8 8 #define PCM_MAX_NUM_CHANNEL 8 9 #define PCM_CHANNEL_NULL 0 9 #define PCM_CHANNEL_NULL 0 10 10 11 #define PCM_CHANNEL_FL 1 /* Front left 11 #define PCM_CHANNEL_FL 1 /* Front left channel. */ 12 #define PCM_CHANNEL_FR 2 /* Front right 12 #define PCM_CHANNEL_FR 2 /* Front right channel. */ 13 #define PCM_CHANNEL_FC 3 /* Front cente 13 #define PCM_CHANNEL_FC 3 /* Front center channel. */ 14 #define PCM_CHANNEL_LS 4 /* Left surrou 14 #define PCM_CHANNEL_LS 4 /* Left surround channel. */ 15 #define PCM_CHANNEL_RS 5 /* Right surro 15 #define PCM_CHANNEL_RS 5 /* Right surround channel. */ 16 #define PCM_CHANNEL_LFE 6 /* Low frequen 16 #define PCM_CHANNEL_LFE 6 /* Low frequency effect channel. */ 17 #define PCM_CHANNEL_CS 7 /* Center surr 17 #define PCM_CHANNEL_CS 7 /* Center surround channel; Rear center ch */ 18 #define PCM_CHANNEL_LB 8 /* Left back c 18 #define PCM_CHANNEL_LB 8 /* Left back channel; Rear left channel. */ 19 #define PCM_CHANNEL_RB 9 /* Right back 19 #define PCM_CHANNEL_RB 9 /* Right back channel; Rear right channel. */ 20 #define PCM_CHANNELS 10 /* Top surroun 20 #define PCM_CHANNELS 10 /* Top surround channel. */ 21 21 22 int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_C 22 int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch); 23 int q6dsp_get_channel_allocation(int channels) 23 int q6dsp_get_channel_allocation(int channels); 24 24 25 #endif /* __Q6DSP_COMMON_H__ */ 25 #endif /* __Q6DSP_COMMON_H__ */ 26 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.