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

Commit d5eb3e11 authored by Rohit Kumar's avatar Rohit Kumar Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: codecs: use correct function to create subdir entry



For soundwire and internal codecs, use the correct function
to create a subdirectory under a given parent.

Change-Id: I5ca8a179c5338f851caa15b8293eef8221a79a7b
Signed-off-by: default avatarRohit Kumar <rohitkr@codeaurora.org>
parent 9ba3a2b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1383,7 +1383,7 @@ int msm_sdw_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	msm_sdw = snd_soc_codec_get_drvdata(codec);
	card = codec->component.card;
	msm_sdw->entry = snd_register_module_info(codec_root->module,
	msm_sdw->entry = snd_info_create_subdir(codec_root->module,
						  "152c1000.msm-sdw-codec",
						  codec_root);
	if (!msm_sdw->entry) {
+1 −1
Original line number Diff line number Diff line
@@ -4052,7 +4052,7 @@ int msm_anlg_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	sdm660_cdc_priv = snd_soc_codec_get_drvdata(codec);
	card = codec->component.card;
	sdm660_cdc_priv->entry = snd_register_module_info(codec_root->module,
	sdm660_cdc_priv->entry = snd_info_create_subdir(codec_root->module,
							     "spmi0-03",
							     codec_root);
	if (!sdm660_cdc_priv->entry) {
+1 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ int msm_dig_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	msm_dig = snd_soc_codec_get_drvdata(codec);
	card = codec->component.card;
	msm_dig->entry = snd_register_module_info(codec_root->module,
	msm_dig->entry = snd_info_create_subdir(codec_root->module,
						  "msm_digital_codec",
						  codec_root);
	if (!msm_dig->entry) {