diff options
author | Rakesh Ughreja <rakesh.a.ughreja@intel.com> | 2018-06-02 06:53:58 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-28 08:33:29 +0300 |
commit | cb04ba33187ca571142b67c2fb60d0a8c24994c8 (patch) | |
tree | a5c64763d618a40bc3a5ccf8b7337698efa55f91 /include/sound/hdaudio.h | |
parent | 6298542fa33b6ba0e3effbace5b99b70b93ed9ae (diff) | |
download | linux-cb04ba33187ca571142b67c2fb60d0a8c24994c8.tar.xz |
ALSA: hdac: add extended ops in the hdac_bus
Add extended ops in the hdac_bus to allow calling the ASoC HDAC library
ops to reuse the legacy HDA codec drivers with ASoC framework.
Extended ops are used by the legacy codec drivers to call into
hdac_hda library, in the subsequent patches..
Signed-off-by: Rakesh Ughreja <rakesh.a.ughreja@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/hdaudio.h')
-rw-r--r-- | include/sound/hdaudio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 59ffe63cf194..f1baaa88e766 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -214,6 +214,14 @@ struct hdac_bus_ops { }; /* + * ops used for ASoC HDA codec drivers + */ +struct hdac_ext_bus_ops { + int (*hdev_attach)(struct hdac_device *hdev); + int (*hdev_detach)(struct hdac_device *hdev); +}; + +/* * Lowlevel I/O operators */ struct hdac_io_ops { @@ -265,6 +273,7 @@ struct hdac_bus { struct device *dev; const struct hdac_bus_ops *ops; const struct hdac_io_ops *io_ops; + const struct hdac_ext_bus_ops *ext_ops; /* h/w resources */ unsigned long addr; |