mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: atom: use inclusive language for SSP bclk/fsync
Use 'provider' and 'consumer' terms. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20201112163100.5081-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
df132fa9da
commit
84b53a366e
|
@ -827,14 +827,14 @@ static int sst_get_ssp_mode(struct snd_soc_dai *dai, unsigned int fmt)
|
|||
{
|
||||
int format;
|
||||
|
||||
format = (fmt & SND_SOC_DAIFMT_MASTER_MASK);
|
||||
format = (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK);
|
||||
dev_dbg(dai->dev, "Enter:%s, format=%x\n", __func__, format);
|
||||
|
||||
switch (format) {
|
||||
case SND_SOC_DAIFMT_CBS_CFS:
|
||||
return SSP_MODE_MASTER;
|
||||
case SND_SOC_DAIFMT_CBM_CFM:
|
||||
return SSP_MODE_SLAVE;
|
||||
case SND_SOC_DAIFMT_CBC_CFC:
|
||||
return SSP_MODE_PROVIDER;
|
||||
case SND_SOC_DAIFMT_CBP_CFP:
|
||||
return SSP_MODE_CONSUMER;
|
||||
default:
|
||||
dev_err(dai->dev, "Invalid ssp protocol: %d\n", format);
|
||||
}
|
||||
|
@ -905,7 +905,7 @@ static const struct sst_ssp_config sst_ssp_configs = {
|
|||
.ssp_id = SSP_CODEC,
|
||||
.bits_per_slot = 24,
|
||||
.slots = 4,
|
||||
.ssp_mode = SSP_MODE_MASTER,
|
||||
.ssp_mode = SSP_MODE_PROVIDER,
|
||||
.pcm_mode = SSP_PCM_MODE_NETWORK,
|
||||
.duplex = SSP_DUPLEX,
|
||||
.ssp_protocol = SSP_MODE_PCM,
|
||||
|
|
|
@ -439,8 +439,8 @@ struct sst_cmd_tone_stop {
|
|||
} __packed;
|
||||
|
||||
enum sst_ssp_mode {
|
||||
SSP_MODE_MASTER = 0,
|
||||
SSP_MODE_SLAVE = 1,
|
||||
SSP_MODE_PROVIDER = 0,
|
||||
SSP_MODE_CONSUMER = 1,
|
||||
};
|
||||
|
||||
enum sst_ssp_pcm_mode {
|
||||
|
|
Loading…
Reference in New Issue