David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright(c) 2015-18 Intel Corporation. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __HDAC_HDA_H__ |
| 7 | #define __HDAC_HDA_H__ |
| 8 | |
| 9 | struct hdac_hda_pcm { |
| 10 | int stream_tag[2]; |
| 11 | unsigned int format_val[2]; |
| 12 | }; |
| 13 | |
| 14 | struct hdac_hda_priv { |
| 15 | struct hda_codec codec; |
| 16 | struct hdac_hda_pcm pcm[2]; |
| 17 | }; |
| 18 | |
| 19 | #define hdac_to_hda_priv(_hdac) \ |
| 20 | container_of(_hdac, struct hdac_hda_priv, codec.core) |
| 21 | #define hdac_to_hda_codec(_hdac) container_of(_hdac, struct hda_codec, core) |
| 22 | |
| 23 | struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void); |
| 24 | |
| 25 | #endif /* __HDAC_HDA_H__ */ |