MLK-19312: ASoC: hdmi-codec: fix error log for hdmi audio
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 11 Sep 2018 08:12:27 +0000 (16:12 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:57:05 +0000 (10:57 +0800)
commit2395285bbab4c23d76161a9f43a6a83789f2717f
treed3d529e4fb04075a15ef86e11a0a31116807f0cf
parent3991318d05a91cdb8b9f7fa5e2fa931b9ace37f8
MLK-19312: ASoC: hdmi-codec: fix error log for hdmi audio

There is error log:

[   31.988272] hdmi-audio-codec hdmi-audio-codec.1: Not able to map channels to speakers (-22)
[   31.996659] hdmi-audio-codec hdmi-audio-codec.1: ASoC: can't set i2s-hifi hw params: -22

which is caused by the channel map read from device don't match
with current channel number.

Orignal method is just return error, but this channel number is
supported by device, so we think should not return error directly,
the playback can ongoing with UNKNOWN channel map.

This issue happen on some TV set (SUMSUNG UA40KUF30EJXXZ).

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/codecs/hdmi-codec.c