ops.h (e27a24210aa17b8a0cd462865130fe73afd7e001) | ops.h (ce8234a6357ec8f81b977d8536ff941dbd4162f3) |
---|---|
1/* SPDX-License-Identifier: (GPL-2.0 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> --- 86 unchanged lines hidden (view full) --- 95static inline int snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) 96{ 97 if (sof_ops(sdev)->post_fw_run) 98 return sof_ops(sdev)->post_fw_run(sdev); 99 100 return 0; 101} 102 | 1/* SPDX-License-Identifier: (GPL-2.0 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> --- 86 unchanged lines hidden (view full) --- 95static inline int snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) 96{ 97 if (sof_ops(sdev)->post_fw_run) 98 return sof_ops(sdev)->post_fw_run(sdev); 99 100 return 0; 101} 102 |
103/* misc */ 104 105/** 106 * snd_sof_dsp_get_bar_index - Maps a section type with a BAR index 107 * 108 * @sdev: sof device 109 * @type: section type as described by snd_sof_fw_blk_type 110 * 111 * Returns the corresponding BAR index (a positive integer) or -EINVAL 112 * in case there is no mapping 113 */ 114static inline int snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type) 115{ 116 if (sof_ops(sdev)->get_bar_index) 117 return sof_ops(sdev)->get_bar_index(sdev, type); 118 119 return sdev->mmio_bar; 120} 121 |
|
103/* power management */ 104static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev) 105{ 106 if (sof_ops(sdev)->resume) 107 return sof_ops(sdev)->resume(sdev); 108 109 return 0; 110} --- 321 unchanged lines hidden --- | 122/* power management */ 123static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev) 124{ 125 if (sof_ops(sdev)->resume) 126 return sof_ops(sdev)->resume(sdev); 127 128 return 0; 129} --- 321 unchanged lines hidden --- |