18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#ifndef __Q6DSP_COMMON_H__ 48c2ecf20Sopenharmony_ci#define __Q6DSP_COMMON_H__ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/kernel.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#define PCM_MAX_NUM_CHANNEL 8 98c2ecf20Sopenharmony_ci#define PCM_CHANNEL_NULL 0 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define PCM_CHANNEL_FL 1 /* Front left channel. */ 128c2ecf20Sopenharmony_ci#define PCM_CHANNEL_FR 2 /* Front right channel. */ 138c2ecf20Sopenharmony_ci#define PCM_CHANNEL_FC 3 /* Front center channel. */ 148c2ecf20Sopenharmony_ci#define PCM_CHANNEL_LS 4 /* Left surround channel. */ 158c2ecf20Sopenharmony_ci#define PCM_CHANNEL_RS 5 /* Right surround channel. */ 168c2ecf20Sopenharmony_ci#define PCM_CHANNEL_LFE 6 /* Low frequency effect channel. */ 178c2ecf20Sopenharmony_ci#define PCM_CHANNEL_CS 7 /* Center surround channel; Rear center ch */ 188c2ecf20Sopenharmony_ci#define PCM_CHANNEL_LB 8 /* Left back channel; Rear left channel. */ 198c2ecf20Sopenharmony_ci#define PCM_CHANNEL_RB 9 /* Right back channel; Rear right channel. */ 208c2ecf20Sopenharmony_ci#define PCM_CHANNELS 10 /* Top surround channel. */ 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciint q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch); 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __Q6DSP_COMMON_H__ */ 25