mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 04:36:44 +07:00
ASoC: Intel: Only export one Baytrail DAI
We don't need more than one DAI for Baytrail SST. Usage becomes also more straightforward by grouping playback and capture streams under the same PCM device. [Jarkko: I made Liam's sst-baytrail-pcm.c change a few lines smaller and squashed together with my byt-rt5640.c change] Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
3a46c7b7cc
commit
49fee17816
@ -117,7 +117,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
|
|||||||
{
|
{
|
||||||
.name = "Baytrail Audio",
|
.name = "Baytrail Audio",
|
||||||
.stream_name = "Audio",
|
.stream_name = "Audio",
|
||||||
.cpu_dai_name = "Front-cpu-dai",
|
.cpu_dai_name = "baytrail-pcm-audio",
|
||||||
.codec_dai_name = "rt5640-aif1",
|
.codec_dai_name = "rt5640-aif1",
|
||||||
.codec_name = "i2c-10EC5640:00",
|
.codec_name = "i2c-10EC5640:00",
|
||||||
.platform_name = "baytrail-pcm-audio",
|
.platform_name = "baytrail-pcm-audio",
|
||||||
@ -126,18 +126,6 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
|
|||||||
.init = byt_rt5640_init,
|
.init = byt_rt5640_init,
|
||||||
.ops = &byt_rt5640_ops,
|
.ops = &byt_rt5640_ops,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
.name = "Baytrail Voice",
|
|
||||||
.stream_name = "Voice",
|
|
||||||
.cpu_dai_name = "Mic1-cpu-dai",
|
|
||||||
.codec_dai_name = "rt5640-aif1",
|
|
||||||
.codec_name = "i2c-10EC5640:00",
|
|
||||||
.platform_name = "baytrail-pcm-audio",
|
|
||||||
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
|
|
||||||
SND_SOC_DAIFMT_CBS_CFS,
|
|
||||||
.init = NULL,
|
|
||||||
.ops = &byt_rt5640_ops,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct snd_soc_card byt_rt5640_card = {
|
static struct snd_soc_card byt_rt5640_card = {
|
||||||
|
@ -342,7 +342,7 @@ static int sst_byt_pcm_new(struct snd_soc_pcm_runtime *rtd)
|
|||||||
|
|
||||||
static struct snd_soc_dai_driver byt_dais[] = {
|
static struct snd_soc_dai_driver byt_dais[] = {
|
||||||
{
|
{
|
||||||
.name = "Front-cpu-dai",
|
.name = "Baytrail PCM",
|
||||||
.playback = {
|
.playback = {
|
||||||
.stream_name = "System Playback",
|
.stream_name = "System Playback",
|
||||||
.channels_min = 2,
|
.channels_min = 2,
|
||||||
@ -351,9 +351,6 @@ static struct snd_soc_dai_driver byt_dais[] = {
|
|||||||
.formats = SNDRV_PCM_FMTBIT_S24_3LE |
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE |
|
||||||
SNDRV_PCM_FMTBIT_S16_LE,
|
SNDRV_PCM_FMTBIT_S16_LE,
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
.name = "Mic1-cpu-dai",
|
|
||||||
.capture = {
|
.capture = {
|
||||||
.stream_name = "Analog Capture",
|
.stream_name = "Analog Capture",
|
||||||
.channels_min = 2,
|
.channels_min = 2,
|
||||||
@ -378,7 +375,7 @@ static int sst_byt_pcm_probe(struct snd_soc_platform *platform)
|
|||||||
priv_data->byt = plat_data->dsp;
|
priv_data->byt = plat_data->dsp;
|
||||||
snd_soc_platform_set_drvdata(platform, priv_data);
|
snd_soc_platform_set_drvdata(platform, priv_data);
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(byt_dais); i++) {
|
for (i = 0; i < BYT_PCM_COUNT; i++) {
|
||||||
mutex_init(&priv_data->pcm[i].mutex);
|
mutex_init(&priv_data->pcm[i].mutex);
|
||||||
INIT_WORK(&priv_data->pcm[i].work, sst_byt_pcm_work);
|
INIT_WORK(&priv_data->pcm[i].work, sst_byt_pcm_work);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user