14dddbddbSSrinivas Kandagatla /* SPDX-License-Identifier: GPL-2.0 */ 24dddbddbSSrinivas Kandagatla 34dddbddbSSrinivas Kandagatla #ifndef __Q6DSP_COMMON_H__ 44dddbddbSSrinivas Kandagatla #define __Q6DSP_COMMON_H__ 54dddbddbSSrinivas Kandagatla 64dddbddbSSrinivas Kandagatla #include <linux/kernel.h> 74dddbddbSSrinivas Kandagatla 84dddbddbSSrinivas Kandagatla #define PCM_MAX_NUM_CHANNEL 8 94dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_NULL 0 104dddbddbSSrinivas Kandagatla 114dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_FL 1 /* Front left channel. */ 124dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_FR 2 /* Front right channel. */ 134dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_FC 3 /* Front center channel. */ 144dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_LS 4 /* Left surround channel. */ 154dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_RS 5 /* Right surround channel. */ 164dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_LFE 6 /* Low frequency effect channel. */ 174dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_CS 7 /* Center surround channel; Rear center ch */ 184dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_LB 8 /* Left back channel; Rear left channel. */ 194dddbddbSSrinivas Kandagatla #define PCM_CHANNEL_RB 9 /* Right back channel; Rear right channel. */ 204dddbddbSSrinivas Kandagatla #define PCM_CHANNELS 10 /* Top surround channel. */ 214dddbddbSSrinivas Kandagatla 224dddbddbSSrinivas Kandagatla int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch); 23*4c2be53fSSrinivas Kandagatla int q6dsp_get_channel_allocation(int channels); 244dddbddbSSrinivas Kandagatla 254dddbddbSSrinivas Kandagatla #endif /* __Q6DSP_COMMON_H__ */ 26