mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
ASoC: topology: Add definitions for mclk_direction values
Current comment makes not clear the direction of mclk. Previously, similar description caused a misunderstanding for bclk_master and fsync_master. This commit solves the potential confusion the same way it is solved for bclk_master and fsync_master. Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Mark Brown <broonie@kernel.org> Cc: Pan Xiuli <xiuli.pan@linux.intel.com> Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com> Cc: alsa-devel@alsa-project.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
bdb709ab2a
commit
7cf73b56e4
3 changed files with 19 additions and 4 deletions
|
|
@ -1223,8 +1223,19 @@ int tplg_parse_hw_config(snd_tplg_t *tplg, snd_config_t *cfg,
|
|||
if (snd_config_get_string(n, &val) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (!strcmp(val, "master"))
|
||||
hw_cfg->mclk_direction = true;
|
||||
if (!strcmp(val, "master")) {
|
||||
/* For backwards capability,
|
||||
* "master" == "for codec, mclk is input"
|
||||
*/
|
||||
SNDERR("warning: deprecated mclk value '%s'\n",
|
||||
val);
|
||||
|
||||
hw_cfg->mclk_direction = SND_SOC_TPLG_MCLK_CI;
|
||||
} else if (!strcmp(val, "codec_mclk_in")) {
|
||||
hw_cfg->mclk_direction = SND_SOC_TPLG_MCLK_CI;
|
||||
} else if (!strcmp(val, "codec_mclk_out")) {
|
||||
hw_cfg->mclk_direction = SND_SOC_TPLG_MCLK_CO;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue