sound/soc/qcom/qdsp6/q6dsp-common.h

Source file repositories/reference/linux-study-clean/sound/soc/qcom/qdsp6/q6dsp-common.h

File Facts

System
Linux kernel
Corpus path
sound/soc/qcom/qdsp6/q6dsp-common.h
Extension
.h
Size
939 bytes
Lines
26
Domain
Driver Families
Bucket
sound/soc
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __Q6DSP_COMMON_H__
#define __Q6DSP_COMMON_H__

#include <linux/kernel.h>

#define PCM_MAX_NUM_CHANNEL  8
#define PCM_CHANNEL_NULL 0

#define PCM_CHANNEL_FL    1	/* Front left channel. */
#define PCM_CHANNEL_FR    2	/* Front right channel. */
#define PCM_CHANNEL_FC    3	/* Front center channel. */
#define PCM_CHANNEL_LS   4	/* Left surround channel. */
#define PCM_CHANNEL_RS   5	/* Right surround channel. */
#define PCM_CHANNEL_LFE  6	/* Low frequency effect channel. */
#define PCM_CHANNEL_CS   7	/* Center surround channel; Rear center ch */
#define PCM_CHANNEL_LB   8	/* Left back channel; Rear left channel. */
#define PCM_CHANNEL_RB   9	/* Right back channel; Rear right channel. */
#define PCM_CHANNELS   10	/* Top surround channel. */

int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch);
int q6dsp_get_channel_allocation(int channels);

#endif /* __Q6DSP_COMMON_H__ */

Annotation

Implementation Notes