sof-priv.h (f71f59dd450813684d838e0c1d6602186b7d2d8f) sof-priv.h (97e22cbd0dc318f1cedb3546d2047403506bdc2d)
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) 2018 Intel Corporation. All rights reserved.
7 *
8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

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

577 void *message, size_t bytes);
578int sof_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
579 u32 offset, void *src, size_t size);
580int sof_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
581 u32 offset, void *dest, size_t size);
582
583int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
584
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) 2018 Intel Corporation. All rights reserved.
7 *
8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>

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

577 void *message, size_t bytes);
578int sof_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
579 u32 offset, void *src, size_t size);
580int sof_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type,
581 u32 offset, void *dest, size_t size);
582
583int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
584
585int intel_ipc_msg_data(struct snd_sof_dev *sdev,
585int sof_ipc_msg_data(struct snd_sof_dev *sdev,
586 struct snd_pcm_substream *substream,
587 void *p, size_t sz);
588int sof_ipc_pcm_params(struct snd_sof_dev *sdev,
586 struct snd_pcm_substream *substream,
589 struct snd_pcm_substream *substream,
587 void *p, size_t sz);
588int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
589 struct snd_pcm_substream *substream,
590 const struct sof_ipc_pcm_params_reply *reply);
590 const struct sof_ipc_pcm_params_reply *reply);
591
591
592int intel_pcm_open(struct snd_sof_dev *sdev,
593 struct snd_pcm_substream *substream);
594int intel_pcm_close(struct snd_sof_dev *sdev,
595 struct snd_pcm_substream *substream);
592int sof_stream_pcm_open(struct snd_sof_dev *sdev,
593 struct snd_pcm_substream *substream);
594int sof_stream_pcm_close(struct snd_sof_dev *sdev,
595 struct snd_pcm_substream *substream);
596
597int sof_machine_check(struct snd_sof_dev *sdev);
598
599#define sof_dev_dbg_or_err(dev, is_err, fmt, ...) \
600 do { \
601 if (is_err) \
602 dev_err(dev, "error: " fmt, __VA_ARGS__); \
603 else \
604 dev_dbg(dev, fmt, __VA_ARGS__); \
605 } while (0)
606
607#endif
596
597int sof_machine_check(struct snd_sof_dev *sdev);
598
599#define sof_dev_dbg_or_err(dev, is_err, fmt, ...) \
600 do { \
601 if (is_err) \
602 dev_err(dev, "error: " fmt, __VA_ARGS__); \
603 else \
604 dev_dbg(dev, fmt, __VA_ARGS__); \
605 } while (0)
606
607#endif