ops.h (960a89045e146025f019647d3305b7eeddde68c6) | ops.h (3dc0d709177828a22dfc9d0072e3ac937ef90d06) |
---|---|
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> --- 483 unchanged lines hidden (view full) --- 492 struct snd_pcm_substream *substream) 493{ 494 if (sof_ops(sdev) && sof_ops(sdev)->pcm_ack) 495 return sof_ops(sdev)->pcm_ack(sdev, substream); 496 497 return 0; 498} 499 | 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> --- 483 unchanged lines hidden (view full) --- 492 struct snd_pcm_substream *substream) 493{ 494 if (sof_ops(sdev) && sof_ops(sdev)->pcm_ack) 495 return sof_ops(sdev)->pcm_ack(sdev, substream); 496 497 return 0; 498} 499 |
500#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES) 501static inline int 502snd_sof_probe_compr_assign(struct snd_sof_dev *sdev, 503 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) 504{ 505 return sof_ops(sdev)->probe_assign(sdev, cstream, dai); 506} 507 508static inline int 509snd_sof_probe_compr_free(struct snd_sof_dev *sdev, 510 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) 511{ 512 return sof_ops(sdev)->probe_free(sdev, cstream, dai); 513} 514 515static inline int 516snd_sof_probe_compr_set_params(struct snd_sof_dev *sdev, 517 struct snd_compr_stream *cstream, 518 struct snd_compr_params *params, struct snd_soc_dai *dai) 519{ 520 return sof_ops(sdev)->probe_set_params(sdev, cstream, params, dai); 521} 522 523static inline int 524snd_sof_probe_compr_trigger(struct snd_sof_dev *sdev, 525 struct snd_compr_stream *cstream, int cmd, 526 struct snd_soc_dai *dai) 527{ 528 return sof_ops(sdev)->probe_trigger(sdev, cstream, cmd, dai); 529} 530 531static inline int 532snd_sof_probe_compr_pointer(struct snd_sof_dev *sdev, 533 struct snd_compr_stream *cstream, 534 struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) 535{ 536 if (sof_ops(sdev) && sof_ops(sdev)->probe_pointer) 537 return sof_ops(sdev)->probe_pointer(sdev, cstream, tstamp, dai); 538 539 return 0; 540} 541#endif 542 | |
543/* machine driver */ 544static inline int 545snd_sof_machine_register(struct snd_sof_dev *sdev, void *pdata) 546{ 547 if (sof_ops(sdev) && sof_ops(sdev)->machine_register) 548 return sof_ops(sdev)->machine_register(sdev, pdata); 549 550 return 0; --- 97 unchanged lines hidden --- | 500/* machine driver */ 501static inline int 502snd_sof_machine_register(struct snd_sof_dev *sdev, void *pdata) 503{ 504 if (sof_ops(sdev) && sof_ops(sdev)->machine_register) 505 return sof_ops(sdev)->machine_register(sdev, pdata); 506 507 return 0; --- 97 unchanged lines hidden --- |