1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef __Q6DSP_COMMON_H__
4#define __Q6DSP_COMMON_H__
5
6#include <linux/kernel.h>
7
8#define PCM_MAX_NUM_CHANNEL  8
9#define PCM_CHANNEL_NULL 0
10
11#define PCM_CHANNEL_FL    1	/* Front left channel. */
12#define PCM_CHANNEL_FR    2	/* Front right channel. */
13#define PCM_CHANNEL_FC    3	/* Front center channel. */
14#define PCM_CHANNEL_LS   4	/* Left surround channel. */
15#define PCM_CHANNEL_RS   5	/* Right surround channel. */
16#define PCM_CHANNEL_LFE  6	/* Low frequency effect channel. */
17#define PCM_CHANNEL_CS   7	/* Center surround channel; Rear center ch */
18#define PCM_CHANNEL_LB   8	/* Left back channel; Rear left channel. */
19#define PCM_CHANNEL_RB   9	/* Right back channel; Rear right channel. */
20#define PCM_CHANNELS   10	/* Top surround channel. */
21
22int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch);
23int q6dsp_get_channel_allocation(int channels);
24
25#endif /* __Q6DSP_COMMON_H__ */
26