Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a547deb5 authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Greg Kroah-Hartman
Browse files

greybus: audio_codec: update codec_name as per driver->name



Originally, driver->name was not poluated from GB and thus
manually set from audio_codec driver as a hack.
This is no more required.
Another patch already removes that hack.

Now, with new driver->name as "legacy.<id-bundle.interface>"
codec is registered with different name.
So, during DAI link registration as well it needs modification.

Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 8eff5109
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -541,7 +541,8 @@ static struct gbaudio_codec_info *gbaudio_get_codec(struct device *dev,
	gbcodec->dev_id = dev_id;
	gbcodec->dev_id = dev_id;
	dev_set_drvdata(dev, gbcodec);
	dev_set_drvdata(dev, gbcodec);
	gbcodec->dev = dev;
	gbcodec->dev = dev;
	strlcpy(gbcodec->name, dev_name(dev), NAME_SIZE);
	snprintf(gbcodec->name, NAME_SIZE, "%s.%s", dev->driver->name,
		 dev_name(dev));


	mutex_lock(&gb_codec_list_lock);
	mutex_lock(&gb_codec_list_lock);
	list_add(&gbcodec->list, &gb_codec_list);
	list_add(&gbcodec->list, &gb_codec_list);