ALSA: hda - Pass bus io_ops directly from the top-level driver
One less redirection again. This also requires the change of the call order in the toplevel divers. Namely, the bus has to be created at first before other initializations since the memory allocation ops are called through bus object now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -516,6 +516,7 @@ static int snd_hda_bus_dev_disconnect(struct snd_device *device)
|
||||
*/
|
||||
int snd_hda_bus_new(struct snd_card *card,
|
||||
const struct hdac_bus_ops *ops,
|
||||
const struct hdac_io_ops *io_ops,
|
||||
struct hda_bus **busp)
|
||||
{
|
||||
struct hda_bus *bus;
|
||||
@@ -532,7 +533,7 @@ int snd_hda_bus_new(struct snd_card *card,
|
||||
if (!bus)
|
||||
return -ENOMEM;
|
||||
|
||||
err = snd_hdac_bus_init(&bus->core, card->dev, ops, NULL);
|
||||
err = snd_hdac_bus_init(&bus->core, card->dev, ops, io_ops);
|
||||
if (err < 0) {
|
||||
kfree(bus);
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user