Rakesh Ughreja | 6bae5ea | 2018-08-22 15:25:03 -0500 | [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]; |
Rander Wang | 03d0aa4 | 2019-03-08 16:38:58 +0800 | [diff] [blame] | 11 | unsigned int format_val[2]; |
Rakesh Ughreja | 6bae5ea | 2018-08-22 15:25:03 -0500 | [diff] [blame] | 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__ */ |