replace common qcom sources with samsung ones
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2023-2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_BTFM_CODEC_HW_INTERFACE_H
|
||||
@@ -29,7 +29,6 @@ struct hwep_configurations {
|
||||
uint8_t codectype;
|
||||
uint32_t direction;
|
||||
uint8_t num_channels;
|
||||
uint8_t is_port_opened;
|
||||
struct list_head dai_list;
|
||||
};
|
||||
|
||||
|
||||
@@ -45,11 +45,10 @@ struct btm_ctrl_pkt {
|
||||
#define BTM_BTFMCODEC_TRANSPORT_SWITCH_FAILED_IND 0x58000002
|
||||
#define BTM_BTFMCODEC_ADSP_STATE_IND 0x58000003
|
||||
#define BTM_BTFMCODEC_CTRL_LOG_LVL_IND 0x58000004
|
||||
#define BTM_BTFMCODEC_PORT_STATE_IND 0x58000005
|
||||
|
||||
#define BTM_MASTER_CONFIG_REQ_LEN 13
|
||||
#define BTM_MASTER_CONFIG_RSP_TIMEOUT 5000
|
||||
#define BTM_BEARER_SWITCH_IND_TIMEOUT 25000
|
||||
#define BTM_BEARER_SWITCH_IND_TIMEOUT 17000
|
||||
#define BTM_MASTER_DMA_CONFIG_RSP_TIMEOUT 5000
|
||||
#define BTM_HEADER_LEN 8
|
||||
#define BTM_PREPARE_AUDIO_BEARER_SWITCH_RSP_LEN 2
|
||||
@@ -61,12 +60,10 @@ struct btm_ctrl_pkt {
|
||||
#define BTM_LOG_LVL_IND_LEN 1
|
||||
#define BTM_ADSP_STATE_IND_LEN 4
|
||||
#define BTM_CODEC_CONFIG_DMA_REQ_LEN 11
|
||||
#define BTM_PORT_STATE_IND_LEN 1
|
||||
|
||||
#define BTM_BTFMCODEC_USECASE_START_REQ 0x58000008
|
||||
#define BTM_BTFMCODEC_USECASE_START_RSP 0x58000009
|
||||
#define BTM_USECASE_START_IND_LEN 2
|
||||
#define BTM_USECASE_START_RSP_LEN 1
|
||||
#define BTM_USECASE_START_IND_LEN 1
|
||||
|
||||
enum rx_status {
|
||||
/* Waiting for response */
|
||||
@@ -103,7 +100,7 @@ struct btm_master_config_req {
|
||||
uint8_t num_channels;
|
||||
uint8_t channel_num;
|
||||
uint8_t codec_id;
|
||||
} __packed;
|
||||
}__attribute__((packed));
|
||||
|
||||
struct btm_dma_config_req {
|
||||
btm_opcode opcode;
|
||||
@@ -122,26 +119,19 @@ struct btm_usecase_start_ind {
|
||||
btm_opcode opcode;
|
||||
uint32_t len;
|
||||
uint8_t transport;
|
||||
uint8_t stream_id;
|
||||
} __packed;
|
||||
|
||||
struct btm_master_shutdown_req {
|
||||
btm_opcode opcode;
|
||||
uint32_t len;
|
||||
uint8_t stream_id;
|
||||
} __packed;
|
||||
}__attribute__((packed));
|
||||
|
||||
struct btm_adsp_state_ind {
|
||||
btm_opcode opcode;
|
||||
uint32_t len;
|
||||
uint32_t action;
|
||||
} __packed;
|
||||
|
||||
struct btm_port_state_ind {
|
||||
btm_opcode opcode;
|
||||
uint32_t len;
|
||||
uint8_t port_state;
|
||||
} __packed;
|
||||
} __attribute__((packed));
|
||||
|
||||
int btfmcodec_dev_enqueue_pkt(struct btfmcodec_char_device *btfmcodec_dev, void *buf, int len);
|
||||
bool btfmcodec_is_valid_cache_avb(struct btfmcodec_data *btfmcodec);
|
||||
|
||||
Reference in New Issue
Block a user