mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 13:23:18 +00:00
ALSA: ASoC: Add DSP DAI format support to the OMAP McBSP driver
Enables DSP DAI format for McBSP in OMAP platform driver Signed-off-by: Arun KS <arunks@mistralsolutions.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
17f9ecf34a
commit
3336c5b548
@ -245,6 +245,11 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
|
|||||||
regs->rcr2 |= RDATDLY(1);
|
regs->rcr2 |= RDATDLY(1);
|
||||||
regs->xcr2 |= XDATDLY(1);
|
regs->xcr2 |= XDATDLY(1);
|
||||||
break;
|
break;
|
||||||
|
case SND_SOC_DAIFMT_DSP_A:
|
||||||
|
/* 0-bit data delay */
|
||||||
|
regs->rcr2 |= RDATDLY(0);
|
||||||
|
regs->xcr2 |= XDATDLY(0);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* Unsupported data format */
|
/* Unsupported data format */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user