Skip to contentSkip to conversation

ASoC: Intel: Skylake: Decrease loglevel for topology loading

PATCH In review Chintan Patel 2 participants 4 messages Sep 12, 2017 – Sep 14, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: Skylake: Decrease loglevel for topology loading

In case of failure in loading customize topology firmware, dfw_sst.bin gets loaded. However, current log provides this message as error even after successfully falling back to default topology "dfw_sst.bin".

Hence to convey proper message, changing log level and message.

---
 sound/soc/intel/skylake/skl-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
index 22f768ca3c73..14dafa9f5b35 100644
@@ -3404,7 +3404,7 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
 
 	ret = request_firmware(&fw, skl->tplg_name, bus->dev);
 	if (ret < 0) {
-		dev_err(bus->dev, "tplg fw %s load failed with %d\n",
+		dev_warn(bus->dev, "tplg fw %s load failed with %d, falling back to dfw_sst.bin",
 				skl->tplg_name, ret);
 		ret = request_firmware(&fw, "dfw_sst.bin", bus->dev);
 		if (ret < 0) {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · Chintan Patel

In case of failure in loading customize topology firmware, dfw_sst.bin gets loaded. However, current log provides this message as error even after successfully falling back to default topology "dfw_sst.bin".

Hence to convey proper message, changing log level and message.

Is KERN_WARN the right level? I feel KERN_INFO suffices, since this is no error but the right behavior, after all.

Or is this an unexpected scenario that should be fixed in user side? In that case, KERN_WARN would be OK.

thanks,

Takashi

Quoted 26 lines
---
 sound/soc/intel/skylake/skl-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
index 22f768ca3c73..14dafa9f5b35 100644
@@ -3404,7 +3404,7 @@ int skl_tplg_init(struct snd_soc_platform *platform, struct hdac_ext_bus *ebus)
 
 	ret = request_firmware(&fw, skl->tplg_name, bus->dev);
 	if (ret < 0) {
-		dev_err(bus->dev, "tplg fw %s load failed with %d\n",
+		dev_warn(bus->dev, "tplg fw %s load failed with %d, falling back to dfw_sst.bin",
 				skl->tplg_name, ret);
 		ret = request_firmware(&fw, "dfw_sst.bin", bus->dev);
 		if (ret < 0) {
Signature · 6 lines
1.9.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw

Hmm ... you are right. KERN_INFO make sense.
Will re-submit it.

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Tuesday, September 12, 2017 1:47 PM
To: Patel, Chintan M <[email protected]>
Cc: [email protected]
Subject: Re: [alsa-devel] [PATCH] ASoC: Intel: Skylake: Decrease loglevel for topology loading

Quoted 6 lines · Chintan Patel

In case of failure in loading customize topology firmware, dfw_sst.bin gets loaded. However, current log provides this message as error even after successfully falling back to default topology "dfw_sst.bin".

Hence to convey proper message, changing log level and message.

Is KERN_WARN the right level? I feel KERN_INFO suffices, since this is no error but the right behavior, after all.

Or is this an unexpected scenario that should be fixed in user side? In that case, KERN_WARN would be OK.

thanks,

Takashi

Quoted 29 lines
---
 sound/soc/intel/skylake/skl-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +2 -2
index 22f768ca3c73..14dafa9f5b35 100644
@@ -3404,7 +3404,7 @@ int skl_tplg_init(struct snd_soc_platform 
 *platform, struct hdac_ext_bus *ebus)
 
 	ret = request_firmware(&fw, skl->tplg_name, bus->dev);
 	if (ret < 0) {
-		dev_err(bus->dev, "tplg fw %s load failed with %d\n",
+		dev_warn(bus->dev, "tplg fw %s load failed with %d, falling back to 
+dfw_sst.bin",
 				skl->tplg_name, ret);
 		ret = request_firmware(&fw, "dfw_sst.bin", bus->dev);
 		if (ret < 0) {
--

1.9.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw

Please ignore this patch.
I have submitted another patch.

Sorry for noise, was submitting first time here

-----Original Message-----
From: Patel, Chintan M
Sent: Tuesday, September 12, 2017 2:47 PM
To: Takashi Iwai <[email protected]>
Cc: [email protected]
Subject: RE: [alsa-devel] [PATCH] ASoC: Intel: Skylake: Decrease loglevel for topology loading

Hmm ... you are right. KERN_INFO make sense.
Will re-submit it.

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Tuesday, September 12, 2017 1:47 PM
To: Patel, Chintan M <[email protected]>
Cc: [email protected]
Subject: Re: [alsa-devel] [PATCH] ASoC: Intel: Skylake: Decrease loglevel for topology loading

Quoted 6 lines · Chintan Patel

In case of failure in loading customize topology firmware, dfw_sst.bin gets loaded. However, current log provides this message as error even after successfully falling back to default topology "dfw_sst.bin".

Hence to convey proper message, changing log level and message.

Is KERN_WARN the right level? I feel KERN_INFO suffices, since this is no error but the right behavior, after all.

Or is this an unexpected scenario that should be fixed in user side? In that case, KERN_WARN would be OK.

thanks,

Takashi

Quoted 29 lines
---
 sound/soc/intel/skylake/skl-topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +2 -2
index 22f768ca3c73..14dafa9f5b35 100644
@@ -3404,7 +3404,7 @@ int skl_tplg_init(struct snd_soc_platform 
 *platform, struct hdac_ext_bus *ebus)
 
 	ret = request_firmware(&fw, skl->tplg_name, bus->dev);
 	if (ret < 0) {
-		dev_err(bus->dev, "tplg fw %s load failed with %d\n",
+		dev_warn(bus->dev, "tplg fw %s load failed with %d, falling back to 
+dfw_sst.bin",
 				skl->tplg_name, ret);
 		ret = request_firmware(&fw, "dfw_sst.bin", bus->dev);
 		if (ret < 0) {
--

1.9.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel