Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c36eecf authored by Davide Rizzo's avatar Davide Rizzo Committed by Takashi Iwai
Browse files

[ALSA] soc - fix S3C2410 i2s programming error



S3C2410 i2s driver currently manages only i2s protocol (and not left
justified one) and slave mode.
With this small patch, other modes are possible.

Signed-off-by: default avatarDavide Rizzo <davide@elpa.it>
Acked-by: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d6426171
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -224,6 +224,7 @@ static int s3c24xx_i2s_set_fmt(struct snd_soc_cpu_dai *cpu_dai,
		iismod |= S3C2410_IISMOD_SLAVE;
		iismod |= S3C2410_IISMOD_SLAVE;
		break;
		break;
	case SND_SOC_DAIFMT_CBS_CFS:
	case SND_SOC_DAIFMT_CBS_CFS:
		iismod &= ~S3C2410_IISMOD_SLAVE;
		break;
		break;
	default:
	default:
		return -EINVAL;
		return -EINVAL;
@@ -234,6 +235,7 @@ static int s3c24xx_i2s_set_fmt(struct snd_soc_cpu_dai *cpu_dai,
		iismod |= S3C2410_IISMOD_MSB;
		iismod |= S3C2410_IISMOD_MSB;
		break;
		break;
	case SND_SOC_DAIFMT_I2S:
	case SND_SOC_DAIFMT_I2S:
		iismod &= ~S3C2410_IISMOD_MSB;
		break;
		break;
	default:
	default:
		return -EINVAL;
		return -EINVAL;