diff options
author | Subhransu S. Prusty <subhransu.s.prusty@intel.com> | 2015-12-09 21:46:09 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-08 13:02:31 +0000 |
commit | 5307246015bceb2758f1eee078c6bdc8545ac91f (patch) | |
tree | 12a2222c3d2885c30b42a85ff8bc20e553a1a910 /sound/soc/codecs | |
parent | 541140d43046ccd4e7b511846d22b3d3ca7367f3 (diff) | |
download | linux-stable-5307246015bceb2758f1eee078c6bdc8545ac91f.tar.gz linux-stable-5307246015bceb2758f1eee078c6bdc8545ac91f.tar.bz2 linux-stable-5307246015bceb2758f1eee078c6bdc8545ac91f.zip |
ASoC: hdac_hdmi: Fix to warn instead of err for no connected nids
It is possible that some pin widget may return with no converter
connected. So don't throw error if none are found to be connected.
Instead print a warning and continue.
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/hdac_hdmi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index e6dc4cd037d3..41117e130ce0 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -316,10 +316,12 @@ static int hdac_hdmi_query_pin_connlist(struct hdac_ext_device *hdac, pin->num_mux_nids = snd_hdac_get_connections(&hdac->hdac, pin->nid, pin->mux_nids, HDA_MAX_CONNECTIONS); - if (pin->num_mux_nids == 0) { - dev_err(&hdac->hdac.dev, "No connections found\n"); - return -ENODEV; - } + if (pin->num_mux_nids == 0) + dev_warn(&hdac->hdac.dev, "No connections found for pin: %d\n", + pin->nid); + + dev_dbg(&hdac->hdac.dev, "num_mux_nids %d for pin: %d\n", + pin->num_mux_nids, pin->nid); return pin->num_mux_nids; } |