Commit 3adb233e authored by Cezary Rojewski's avatar Cezary Rojewski Committed by Takashi Iwai

ASoC: codecs: hda: Cleanup error messages

Be cohesive and use same pattern in each error message.
Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240226124432.1203798-5-cezary.rojewski@intel.com
parent b9f706f9
...@@ -198,19 +198,19 @@ static int hda_codec_probe(struct snd_soc_component *component) ...@@ -198,19 +198,19 @@ static int hda_codec_probe(struct snd_soc_component *component)
ret = snd_hda_codec_device_new(codec->bus, component->card->snd_card, hdev->addr, codec, ret = snd_hda_codec_device_new(codec->bus, component->card->snd_card, hdev->addr, codec,
false); false);
if (ret < 0) { if (ret < 0) {
dev_err(&hdev->dev, "create hda codec failed: %d\n", ret); dev_err(&hdev->dev, "codec create failed: %d\n", ret);
goto device_new_err; goto device_new_err;
} }
ret = snd_hda_codec_set_name(codec, codec->preset->name); ret = snd_hda_codec_set_name(codec, codec->preset->name);
if (ret < 0) { if (ret < 0) {
dev_err(&hdev->dev, "name failed %s\n", codec->preset->name); dev_err(&hdev->dev, "set name: %s failed: %d\n", codec->preset->name, ret);
goto err; goto err;
} }
ret = snd_hdac_regmap_init(&codec->core); ret = snd_hdac_regmap_init(&codec->core);
if (ret < 0) { if (ret < 0) {
dev_err(&hdev->dev, "regmap init failed\n"); dev_err(&hdev->dev, "regmap init failed: %d\n", ret);
goto err; goto err;
} }
...@@ -223,13 +223,13 @@ static int hda_codec_probe(struct snd_soc_component *component) ...@@ -223,13 +223,13 @@ static int hda_codec_probe(struct snd_soc_component *component)
ret = patch(codec); ret = patch(codec);
if (ret < 0) { if (ret < 0) {
dev_err(&hdev->dev, "patch failed %d\n", ret); dev_err(&hdev->dev, "codec init failed: %d\n", ret);
goto err; goto err;
} }
ret = snd_hda_codec_parse_pcms(codec); ret = snd_hda_codec_parse_pcms(codec);
if (ret < 0) { if (ret < 0) {
dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret); dev_err(&hdev->dev, "unable to map pcms to dai: %d\n", ret);
goto parse_pcms_err; goto parse_pcms_err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment