ASoC: hdmi-codec: Remove redundant big endian formats
The CODEC already provides the endianness flag on its snd_soc_component_driver structure, specifying it is ambivalent to endian. The core will expand the formats to cover both endian types, as such remove the redundant specification of both endians. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220504170905.332415-8-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8a85e2fca6
commit
6edfed8f2c
|
@ -727,10 +727,8 @@ static const struct snd_soc_dai_ops hdmi_codec_spdif_dai_ops = {
|
||||||
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |\
|
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 |\
|
||||||
SNDRV_PCM_RATE_192000)
|
SNDRV_PCM_RATE_192000)
|
||||||
|
|
||||||
#define SPDIF_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE |\
|
#define SPDIF_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||||
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE |\
|
SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_LE)
|
||||||
SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_3BE |\
|
|
||||||
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This list is only for formats allowed on the I2S bus. So there is
|
* This list is only for formats allowed on the I2S bus. So there is
|
||||||
|
@ -740,12 +738,9 @@ static const struct snd_soc_dai_ops hdmi_codec_spdif_dai_ops = {
|
||||||
* problems, we should add the video side driver an option to disable
|
* problems, we should add the video side driver an option to disable
|
||||||
* them.
|
* them.
|
||||||
*/
|
*/
|
||||||
#define I2S_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE |\
|
#define I2S_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||||
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE |\
|
SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_LE |\
|
||||||
SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_3BE |\
|
SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
|
||||||
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE |\
|
|
||||||
SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S32_BE |\
|
|
||||||
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
|
|
||||||
|
|
||||||
static struct snd_kcontrol_new hdmi_codec_controls[] = {
|
static struct snd_kcontrol_new hdmi_codec_controls[] = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue