bcm27xx: 6.1: add kernel patches
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-6.1 / 950-0096-sound-Demote-deferral-errors-to-INFO-level.patch
1 From b43bf8ecf329669ce3ae032c0332bc5f6e3a4701 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 9 Feb 2017 14:36:44 +0000
4 Subject: [PATCH] sound: Demote deferral errors to INFO level
5
6 At present there is no mechanism to specify driver load order,
7 which can lead to deferrals and repeated retries until successful.
8 Since this situation is expected, reduce the dmesg level to
9 INFO and mention that the operation will be retried.
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 ---
13 sound/soc/soc-core.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/sound/soc/soc-core.c
17 +++ b/sound/soc/soc-core.c
18 @@ -995,7 +995,7 @@ int snd_soc_add_pcm_runtime(struct snd_s
19 for_each_link_cpus(dai_link, i, cpu) {
20 asoc_rtd_to_cpu(rtd, i) = snd_soc_find_dai(cpu);
21 if (!asoc_rtd_to_cpu(rtd, i)) {
22 - dev_info(card->dev, "ASoC: CPU DAI %s not registered\n",
23 + dev_info(card->dev, "ASoC: CPU DAI %s not registered - will retry\n",
24 cpu->dai_name);
25 goto _err_defer;
26 }
27 @@ -1006,7 +1006,7 @@ int snd_soc_add_pcm_runtime(struct snd_s
28 for_each_link_codecs(dai_link, i, codec) {
29 asoc_rtd_to_codec(rtd, i) = snd_soc_find_dai(codec);
30 if (!asoc_rtd_to_codec(rtd, i)) {
31 - dev_info(card->dev, "ASoC: CODEC DAI %s not registered\n",
32 + dev_info(card->dev, "ASoC: CODEC DAI %s not registered- will retry\n",
33 codec->dai_name);
34 goto _err_defer;
35 }