Skip to content

Commit cf5ef3a

Browse files
flatmaxbroonie
authored andcommitted
ASoc: wm8731: add 32bit mode.
This patch adds 32 bit word capability to the wm8731 driver. The wm8731 codec is capable of handling 32 bit word sizes, however that has not previously been activated in the codec driver. Signed-off-by: Matt Flax <[email protected]> Acked-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 1a695a9 commit cf5ef3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sound/soc/codecs/wm8731.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ static int wm8731_hw_params(struct snd_pcm_substream *substream,
358358
case 24:
359359
iface |= 0x0008;
360360
break;
361+
case 32:
362+
iface |= 0x000c;
363+
break;
361364
}
362365

363366
wm8731_set_deemph(codec);
@@ -541,7 +544,7 @@ static int wm8731_startup(struct snd_pcm_substream *substream,
541544
#define WM8731_RATES SNDRV_PCM_RATE_8000_96000
542545

543546
#define WM8731_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
544-
SNDRV_PCM_FMTBIT_S24_LE)
547+
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
545548

546549
static const struct snd_soc_dai_ops wm8731_dai_ops = {
547550
.startup = wm8731_startup,

0 commit comments

Comments
 (0)