Skip to content

Commit fedc8a6

Browse files
Jiajian WuSugar Zhang
authored andcommitted
ASoC: rockchip: i2s: Add support for IEC958
Refer to commit 4142064 ("ASoC: rockchip: i2s: Add support for IEC958"). Change-Id: I6d4b7bbb4bc30d268f68a1ec4da8cd76c1c1eb87 Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
1 parent 84b86a8 commit fedc8a6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

sound/soc/rockchip/rockchip_i2s.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream,
378378
val |= I2S_TXCR_VDW(24);
379379
break;
380380
case SNDRV_PCM_FORMAT_S32_LE:
381+
case SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE:
381382
val |= I2S_TXCR_VDW(32);
382383
break;
383384
default:
@@ -622,7 +623,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
622623
SNDRV_PCM_FMTBIT_S16_LE |
623624
SNDRV_PCM_FMTBIT_S20_3LE |
624625
SNDRV_PCM_FMTBIT_S24_LE |
625-
SNDRV_PCM_FMTBIT_S32_LE),
626+
SNDRV_PCM_FMTBIT_S32_LE |
627+
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE),
626628
},
627629
.capture = {
628630
.stream_name = "Capture",
@@ -633,7 +635,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
633635
SNDRV_PCM_FMTBIT_S16_LE |
634636
SNDRV_PCM_FMTBIT_S20_3LE |
635637
SNDRV_PCM_FMTBIT_S24_LE |
636-
SNDRV_PCM_FMTBIT_S32_LE),
638+
SNDRV_PCM_FMTBIT_S32_LE |
639+
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE),
637640
},
638641
.ops = &rockchip_i2s_dai_ops,
639642
};

0 commit comments

Comments
 (0)