blob: 6b1bd4f428e70ed4037adef636ef9c42878d2865 [file] [log] [blame]
Rakesh Ughreja6bae5ea2018-08-22 15:25:03 -05001/* 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
9struct hdac_hda_pcm {
10 int stream_tag[2];
Rander Wang03d0aa42019-03-08 16:38:58 +080011 unsigned int format_val[2];
Rakesh Ughreja6bae5ea2018-08-22 15:25:03 -050012};
13
14struct 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
23struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void);
24
25#endif /* __HDAC_HDA_H__ */