forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple SSPs/BEs support for SOF--Kernel Part #4
Merged
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4ad1d02
ASoC: SOF: core: register DAIs from platform drivers.
keyonjie ab41adb
ASoC: SOF: pcm: remove DAI driver
lrgirdwo 7faad3b
ASoC: SOF: nocodec: give DAI driver more meaningful name
lrgirdwo 73121fd
ASoC: SOF: intel: SKL, CNL, APL platform DAIs
lrgirdwo e9b822a
ASoC: SOF: Intel BDW platform DAIs
lrgirdwo d124438
ASoC: SOF: Intel BYT platform DAIs
lrgirdwo 3856d52
ASoC: SOF: Intel HSW platform DAIs
lrgirdwo 25f8bbd
ASoC: SOF: nocodec: create BE DAI links based on platform dai drivers
keyonjie 8108666
ASoC: core: don't override too much for BE dai_links
keyonjie d660d58
ASoC: Intel: bxt-tdf8532: change probe and trace buffer dai_links to …
keyonjie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) | ||
/* | ||
* This file is provided under a dual BSD/GPLv2 license. When using or | ||
* redistributing this file, you may do so under either license. | ||
* | ||
* Copyright(c) 2018 Intel Corporation. All rights reserved. | ||
* | ||
* Authors: Keyon Jie <yang.jie@linux.intel.com> | ||
*/ | ||
|
||
#include <sound/pcm_params.h> | ||
#include "../sof-priv.h" | ||
|
||
#define SKL_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | \ | ||
SNDRV_PCM_FMTBIT_S32_LE) | ||
|
||
/* | ||
* common dai driver for skl+ platforms. | ||
* some products who use this DAI array only physically have a subset of | ||
* the DAIs, but no harm is done here by adding the whole set. | ||
*/ | ||
static struct snd_soc_dai_driver skl_dai[] = { | ||
{ | ||
.name = "SSP0 Pin", | ||
.playback = SOF_DAI_STREAM("ssp0 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp0 Rx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "SSP1 Pin", | ||
.playback = SOF_DAI_STREAM("ssp1 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp1 Rx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "SSP2 Pin", | ||
.playback = SOF_DAI_STREAM("ssp2 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp2 Rx", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "SSP3 Pin", | ||
.playback = SOF_DAI_STREAM("ssp3 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp3 Rx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "SSP4 Pin", | ||
.playback = SOF_DAI_STREAM("ssp4 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp4 Rx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "SSP5 Pin", | ||
.playback = SOF_DAI_STREAM("ssp5 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("ssp5 Rx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "DMIC01 Pin", | ||
.capture = SOF_DAI_STREAM("DMIC01 Rx", 1, 4, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "DMIC16k Pin", | ||
.capture = SOF_DAI_STREAM("DMIC16k Rx", 1, 4, | ||
SNDRV_PCM_RATE_16000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "iDisp1 Pin", | ||
.playback = SOF_DAI_STREAM("iDisp1 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "iDisp2 Pin", | ||
.playback = SOF_DAI_STREAM("iDisp2 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "iDisp3 Pin", | ||
.playback = SOF_DAI_STREAM("iDisp3 Tx", 1, 8, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "Analog Codec DAI", | ||
.playback = SOF_DAI_STREAM("Analog Codec Playback", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("Analog Codec Capture", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "Digital Codec DAI", | ||
.playback = SOF_DAI_STREAM("Digital Codec Playback", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("Digital Codec Capture", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
{ | ||
.name = "Alt Analog Codec DAI", | ||
.playback = SOF_DAI_STREAM("Alt Analog Codec Playback", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
.capture = SOF_DAI_STREAM("Alt Analog Codec Capture", 1, 16, | ||
SNDRV_PCM_RATE_8000_192000, SKL_FORMATS), | ||
}, | ||
}; | ||
|
||
struct snd_sof_dai_drv hda_dai_drv = { | ||
.drv = skl_dai, | ||
.num_drv = ARRAY_SIZE(skl_dai) | ||
}; | ||
EXPORT_SYMBOL(hda_dai_drv); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, let me send incremental fix soon.