/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 292 struct apr_pkt *pkt, uint32_t rsp_opcode) in q6asm_apr_send_session_pkt() argument 294 struct apr_hdr *hdr = &pkt->hdr; in q6asm_apr_send_session_pkt() 300 rc = apr_send_pkt(a->adev, pkt); in q6asm_apr_send_session_pkt() 333 struct apr_pkt *pkt; in __q6asm_memory_unmap() local 347 pkt = p; in __q6asm_memory_unmap() 350 pkt->hdr.hdr_field = APR_SEQ_CMD_HDR_FIELD; in __q6asm_memory_unmap() 351 pkt->hdr.src_port = 0; in __q6asm_memory_unmap() 352 pkt->hdr.dest_port = 0; in __q6asm_memory_unmap() 353 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap() 354 pkt->hdr.token = ((ac->session << 8) | dir); in __q6asm_memory_unmap() [all …]
|
D | audioreach.c | 200 struct gpr_pkt *pkt; in __audioreach_alloc_pkt() local 211 pkt = p; in __audioreach_alloc_pkt() 212 pkt->hdr.version = GPR_PKT_VER; in __audioreach_alloc_pkt() 213 pkt->hdr.hdr_size = GPR_PKT_HEADER_WORD_SIZE; in __audioreach_alloc_pkt() 214 pkt->hdr.pkt_size = pkt_size; in __audioreach_alloc_pkt() 215 pkt->hdr.dest_port = dest_port; in __audioreach_alloc_pkt() 216 pkt->hdr.src_port = src_port; in __audioreach_alloc_pkt() 218 pkt->hdr.dest_domain = GPR_DOMAIN_ID_ADSP; in __audioreach_alloc_pkt() 219 pkt->hdr.src_domain = GPR_DOMAIN_ID_APPS; in __audioreach_alloc_pkt() 220 pkt->hdr.token = token; in __audioreach_alloc_pkt() [all …]
|
D | q6prm.c | 51 static int q6prm_send_cmd_sync(struct q6prm *prm, struct gpr_pkt *pkt, uint32_t rsp_opcode) in q6prm_send_cmd_sync() argument 54 NULL, &prm->wait, pkt, rsp_opcode); in q6prm_send_cmd_sync() 64 struct gpr_pkt *pkt; in q6prm_set_hw_core_req() local 75 pkt = audioreach_alloc_cmd_pkt(sizeof(*req), opcode, 0, gdev->svc.id, GPR_PRM_MODULE_IID); in q6prm_set_hw_core_req() 76 if (IS_ERR(pkt)) in q6prm_set_hw_core_req() 77 return PTR_ERR(pkt); in q6prm_set_hw_core_req() 79 req = (void *)pkt + GPR_HDR_SIZE + APM_CMD_HDR_SIZE; in q6prm_set_hw_core_req() 90 rc = q6prm_send_cmd_sync(prm, pkt, rsp_opcode); in q6prm_set_hw_core_req() 92 kfree(pkt); in q6prm_set_hw_core_req() 118 struct gpr_pkt *pkt; in q6prm_request_lpass_clock() local [all …]
|
D | q6afe.c | 936 static int afe_apr_send_pkt(struct q6afe *afe, struct apr_pkt *pkt, in afe_apr_send_pkt() argument 955 ret = apr_send_pkt(afe->apr, pkt); in afe_apr_send_pkt() 986 struct apr_pkt *pkt; in q6afe_set_param() local 995 pkt = p; in q6afe_set_param() 1001 pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6afe_set_param() 1004 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param() 1005 pkt->hdr.src_port = 0; in q6afe_set_param() 1006 pkt->hdr.dest_port = 0; in q6afe_set_param() 1007 pkt->hdr.token = token; in q6afe_set_param() 1008 pkt->hdr.opcode = AFE_SVC_CMD_SET_PARAM; in q6afe_set_param() [all …]
|
D | q6apm.c | 30 int q6apm_send_cmd_sync(struct q6apm *apm, struct gpr_pkt *pkt, uint32_t rsp_opcode) in q6apm_send_cmd_sync() argument 35 NULL, &apm->wait, pkt, rsp_opcode); in q6apm_send_cmd_sync() 101 struct gpr_pkt *pkt; in audioreach_graph_mgmt_cmd() local 105 pkt = audioreach_alloc_apm_cmd_pkt(payload_size, opcode, 0); in audioreach_graph_mgmt_cmd() 106 if (IS_ERR(pkt)) in audioreach_graph_mgmt_cmd() 107 return PTR_ERR(pkt); in audioreach_graph_mgmt_cmd() 109 mgmt_cmd = (void *)pkt + GPR_HDR_SIZE + APM_CMD_HDR_SIZE; in audioreach_graph_mgmt_cmd() 121 rc = q6apm_send_cmd_sync(apm, pkt, 0); in audioreach_graph_mgmt_cmd() 123 kfree(pkt); in audioreach_graph_mgmt_cmd() 148 struct gpr_pkt *pkt; in q6apm_get_apm_state() local [all …]
|
D | q6core.c | 154 struct apr_pkt pkt; in q6core_get_fwk_versions() local 157 pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6core_get_fwk_versions() 159 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_fwk_versions() 160 pkt.hdr.opcode = AVCS_CMD_GET_FWK_VERSION; in q6core_get_fwk_versions() 162 rc = apr_send_pkt(adev, &pkt); in q6core_get_fwk_versions() 184 struct apr_pkt pkt; in q6core_get_svc_versions() local 187 pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6core_get_svc_versions() 189 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_svc_versions() 190 pkt.hdr.opcode = AVCS_GET_VERSIONS; in q6core_get_svc_versions() 192 rc = apr_send_pkt(adev, &pkt); in q6core_get_svc_versions() [all …]
|
D | q6adm.c | 238 struct apr_pkt *pkt, uint32_t rsp_opcode) in q6adm_apr_send_copp_pkt() argument 241 uint32_t opcode = pkt->hdr.opcode; in q6adm_apr_send_copp_pkt() 247 ret = apr_send_pkt(adm->apr, pkt); in q6adm_apr_send_copp_pkt() 327 struct apr_pkt *pkt; in q6adm_device_open() local 336 pkt = p; in q6adm_device_open() 338 pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6adm_device_open() 341 pkt->hdr.pkt_size = pkt_size; in q6adm_device_open() 342 pkt->hdr.src_port = afe_port; in q6adm_device_open() 343 pkt->hdr.dest_port = afe_port; in q6adm_device_open() 344 pkt->hdr.token = port_id << 16 | copp->copp_idx; in q6adm_device_open() [all …]
|
D | q6apm.h | 138 int q6apm_send_cmd_sync(struct q6apm *apm, struct gpr_pkt *pkt,
|
D | audioreach.h | 711 struct gpr_pkt *pkt, uint32_t rsp_opcode); 712 int audioreach_graph_send_cmd_sync(struct q6apm_graph *graph, struct gpr_pkt *pkt,
|
/sound/usb/ |
D | mixer_s1810c.c | 138 struct s1810c_ctl_packet pkt = { 0 }; in snd_s1810c_send_ctl_packet() local 141 pkt.fixed1 = SC1810C_CMD_F1; in snd_s1810c_send_ctl_packet() 142 pkt.fixed2 = SC1810C_CMD_F2; in snd_s1810c_send_ctl_packet() 144 pkt.a = a; in snd_s1810c_send_ctl_packet() 145 pkt.b = b; in snd_s1810c_send_ctl_packet() 146 pkt.c = c; in snd_s1810c_send_ctl_packet() 147 pkt.d = d; in snd_s1810c_send_ctl_packet() 153 pkt.e = (c == 4) ? 0 : e; in snd_s1810c_send_ctl_packet() 157 SC1810C_CMD_REQTYPE, 0, 0, &pkt, sizeof(pkt)); in snd_s1810c_send_ctl_packet()
|