HDMI 1.3 supports Multi channel PCM up to 8 channels with sample size of 16/20/24 bits and sample rate of 32, 44.1, 48, 96, 176.4, 192K. This patch add supports for 6 channel PCM at 48K sample rate with sample size of 16 bits. Change-Id: Id09f1f9d7ef2e2444c8c1b661bfc5b3b4c1e66a6 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
#ifndef __Q6_ADM_H__
|
|
#define __Q6_ADM_H__
|
|
#include <sound/q6afe.h>
|
|
|
|
#define ADM_PATH_PLAYBACK 0x1
|
|
#define ADM_PATH_LIVE_REC 0x2
|
|
#define ADM_PATH_NONLIVE_REC 0x3
|
|
|
|
/* multiple copp per stream. */
|
|
struct route_payload {
|
|
unsigned int copp_ids[AFE_MAX_PORTS];
|
|
unsigned short num_copps;
|
|
unsigned int session_id;
|
|
};
|
|
|
|
int adm_open(int port, int path, int rate, int mode, int topology);
|
|
|
|
int adm_multi_ch_copp_open(int port, int path, int rate, int mode,
|
|
int topology);
|
|
|
|
int adm_memory_map_regions(uint32_t *buf_add, uint32_t mempool_id,
|
|
uint32_t *bufsz, uint32_t bufcnt);
|
|
|
|
int adm_memory_unmap_regions(uint32_t *buf_add, uint32_t *bufsz,
|
|
uint32_t bufcnt);
|
|
|
|
int adm_close(int port);
|
|
|
|
int adm_matrix_map(int session_id, int path, int num_copps,
|
|
unsigned int *port_id, int copp_id);
|
|
|
|
#ifdef CONFIG_RTAC
|
|
int adm_get_copp_id(int port_id);
|
|
#endif
|
|
|
|
#endif /* __Q6_ADM_H__ */
|