Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
multiple SSPs/BEs support for SOF--Kernel Part#4
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
4ad1d02ab41adb7faad3b73121fde9b822ad1244383856d5225f8bbd8108666d660d58File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| 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, | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 8 Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops, let me send incremental fix soon. | ||
| 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); | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
I'll merge this into my upstream patch.