[RFC 0/3] simple-card: Improve probe's error messages

Fabio Forni posted 3 patches 3 weeks, 4 days ago
sound/soc/generic/simple-card-utils.c |   9 ++
sound/soc/generic/simple-card.c       | 141 +++++++++++++-------------
2 files changed, 82 insertions(+), 68 deletions(-)
[RFC 0/3] simple-card: Improve probe's error messages
Posted by Fabio Forni 3 weeks, 4 days ago
Hello,

this patch tries to improve errors messages that are printed by the
probe function of simple-card. Some messages were missing and I think
that made debugging difficult, others were printed even though the
underlying error is unrelated (e.g. when devm_snd_soc_register_card
is called).

This series is tagged as RFC because it's my first contribution. Plus,
patch number 3 touches many lines. I'm not sure I'm allowed to touch
so many lines in one run, also I need more than a pair of eyes because
even though patch #3 is just a refactor, I'm not 100% familiar with ASoC.

Fabio Forni (3):
  ASoC: simple-card: Do not print "parse error" twice
  ASoC: simple-card: Replace "parse error" with a more descriptive msg
  ASoC: simple-card: Split alloc and init logics in probe function

 sound/soc/generic/simple-card-utils.c |   9 ++
 sound/soc/generic/simple-card.c       | 141 +++++++++++++-------------
 2 files changed, 82 insertions(+), 68 deletions(-)

-- 
2.52.0