ASoC: tlv320aic31xx: Convert to params_width()
The CODEC doesn't care how data is laid out in memory. Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
93d0ad8f37
commit
88be681b46
1 changed files with 4 additions and 4 deletions
|
@ -759,8 +759,8 @@ static int aic31xx_hw_params(struct snd_pcm_substream *substream,
|
||||||
struct snd_soc_codec *codec = dai->codec;
|
struct snd_soc_codec *codec = dai->codec;
|
||||||
u8 data = 0;
|
u8 data = 0;
|
||||||
|
|
||||||
dev_dbg(codec->dev, "## %s: format %d width %d rate %d\n",
|
dev_dbg(codec->dev, "## %s: width %d rate %d\n",
|
||||||
__func__, params_format(params), params_width(params),
|
__func__, params_width(params),
|
||||||
params_rate(params));
|
params_rate(params));
|
||||||
|
|
||||||
switch (params_width(params)) {
|
switch (params_width(params)) {
|
||||||
|
@ -779,8 +779,8 @@ static int aic31xx_hw_params(struct snd_pcm_substream *substream,
|
||||||
AIC31XX_IFACE1_DATALEN_SHIFT);
|
AIC31XX_IFACE1_DATALEN_SHIFT);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dev_err(codec->dev, "%s: Unsupported format %d\n",
|
dev_err(codec->dev, "%s: Unsupported width %d\n",
|
||||||
__func__, params_format(params));
|
__func__, params_width(params));
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue