ipc3.c (671e0b90051ec19e83c12501905734fb808b944e) ipc3.c (1dedbe4f223cac603e871d91133b9aa3136fbc21)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2021 Intel Corporation. All rights reserved.
7//
8//

--- 932 unchanged lines hidden (view full) ---

941
942static void ipc3_trace_message(struct snd_sof_dev *sdev, void *msg_buf)
943{
944 struct sof_ipc_cmd_hdr *hdr = msg_buf;
945 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
946
947 switch (msg_type) {
948 case SOF_IPC_TRACE_DMA_POSITION:
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2021 Intel Corporation. All rights reserved.
7//
8//

--- 932 unchanged lines hidden (view full) ---

941
942static void ipc3_trace_message(struct snd_sof_dev *sdev, void *msg_buf)
943{
944 struct sof_ipc_cmd_hdr *hdr = msg_buf;
945 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
946
947 switch (msg_type) {
948 case SOF_IPC_TRACE_DMA_POSITION:
949 snd_sof_trace_update_pos(sdev, msg_buf);
949 ipc3_dtrace_posn_update(sdev, msg_buf);
950 break;
951 default:
952 dev_err(sdev->dev, "unhandled trace message %#x\n", msg_type);
953 break;
954 }
955}
956
957/* DSP firmware has sent host a message */

--- 122 unchanged lines hidden ---
950 break;
951 default:
952 dev_err(sdev->dev, "unhandled trace message %#x\n", msg_type);
953 break;
954 }
955}
956
957/* DSP firmware has sent host a message */

--- 122 unchanged lines hidden ---