未验证 提交 310006ca 编写于 作者: D Dan Murphy 提交者: Mark Brown

ASoC: tas2562: Return invalid for when bitwidth is invalid

If the bitwidth passed in to the set_bitwidth function is not supported
then return an error.

Fixes: 29b74236bd57 ("ASoC: tas2562: Introduce the TAS2562 amplifier")
Signed-off-by: NDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200218185252.26290-1-dmurphy@ti.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 96781fd9
......@@ -215,7 +215,8 @@ static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth)
break;
default:
dev_info(tas2562->dev, "Not supported params format\n");
dev_info(tas2562->dev, "Unsupported bitwidth format\n");
return -EINVAL;
}
ret = snd_soc_component_update_bits(tas2562->component,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册