summaryrefslogtreecommitdiffstats
path: root/sound/hda
diff options
context:
space:
mode:
authorRakesh Ughreja <rakesh.a.ughreja@intel.com>2018-06-01 23:53:58 -0400
committerTakashi Iwai <tiwai@suse.de>2018-06-28 01:33:29 -0400
commitcb04ba33187ca571142b67c2fb60d0a8c24994c8 (patch)
treea5c64763d618a40bc3a5ccf8b7337698efa55f91 /sound/hda
parent6298542fa33b6ba0e3effbace5b99b70b93ed9ae (diff)
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 'sound/hda')
-rw-r--r--sound/hda/ext/hdac_ext_bus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c
index 1eb58244688e..9c37d9af3023 100644
--- a/sound/hda/ext/hdac_ext_bus.c
+++ b/sound/hda/ext/hdac_ext_bus.c
@@ -89,7 +89,8 @@ static const struct hdac_io_ops hdac_ext_default_io = {
89 */ 89 */
90int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, 90int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev,
91 const struct hdac_bus_ops *ops, 91 const struct hdac_bus_ops *ops,
92 const struct hdac_io_ops *io_ops) 92 const struct hdac_io_ops *io_ops,
93 const struct hdac_ext_bus_ops *ext_ops)
93{ 94{
94 int ret; 95 int ret;
95 static int idx; 96 static int idx;
@@ -102,6 +103,7 @@ int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev,
102 if (ret < 0) 103 if (ret < 0)
103 return ret; 104 return ret;
104 105
106 bus->ext_ops = ext_ops;
105 INIT_LIST_HEAD(&bus->hlink_list); 107 INIT_LIST_HEAD(&bus->hlink_list);
106 bus->idx = idx++; 108 bus->idx = idx++;
107 109