Repository navigation
ASoC: SOF: Intel: fix kconfig related if statements in machine drivers #502
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,14 +91,12 @@ static const struct snd_soc_dapm_route cht_audio_map[] = { | |
| {"Headphone", NULL, "HPR"}, | ||
| {"Ext Spk", NULL, "SPKL"}, | ||
| {"Ext Spk", NULL, "SPKR"}, | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"HiFi Playback", NULL, "ssp2 Tx"}, | ||
| {"ssp2 Tx", NULL, "codec_out0"}, | ||
| {"ssp2 Tx", NULL, "codec_out1"}, | ||
| {"codec_in0", NULL, "ssp2 Rx" }, | ||
| {"codec_in1", NULL, "ssp2 Rx" }, | ||
| {"ssp2 Rx", NULL, "HiFi Capture"}, | ||
| #endif | ||
|
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. ok |
||
| {"Headphone", NULL, "Platform Clock"}, | ||
| {"Headset Mic", NULL, "Platform Clock"}, | ||
| {"Int Mic", NULL, "Platform Clock"}, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,43 +159,35 @@ static const struct snd_soc_dapm_route cht_rt5650_audio_map[] = { | |
| }; | ||
|
|
||
| static const struct snd_soc_dapm_route cht_rt5645_ssp2_aif1_map[] = { | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"AIF1 Playback", NULL, "ssp2 Tx"}, | ||
| {"ssp2 Tx", NULL, "codec_out0"}, | ||
| {"ssp2 Tx", NULL, "codec_out1"}, | ||
| {"codec_in0", NULL, "ssp2 Rx" }, | ||
| {"codec_in1", NULL, "ssp2 Rx" }, | ||
| {"ssp2 Rx", NULL, "AIF1 Capture"}, | ||
| #endif | ||
| }; | ||
|
|
||
| static const struct snd_soc_dapm_route cht_rt5645_ssp2_aif2_map[] = { | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"AIF2 Playback", NULL, "ssp2 Tx"}, | ||
| {"ssp2 Tx", NULL, "codec_out0"}, | ||
| {"ssp2 Tx", NULL, "codec_out1"}, | ||
| {"codec_in0", NULL, "ssp2 Rx" }, | ||
| {"codec_in1", NULL, "ssp2 Rx" }, | ||
| {"ssp2 Rx", NULL, "AIF2 Capture"}, | ||
| #endif | ||
| }; | ||
|
|
||
| static const struct snd_soc_dapm_route cht_rt5645_ssp0_aif1_map[] = { | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"AIF1 Playback", NULL, "ssp0 Tx"}, | ||
| {"ssp0 Tx", NULL, "modem_out"}, | ||
| {"modem_in", NULL, "ssp0 Rx" }, | ||
| {"ssp0 Rx", NULL, "AIF1 Capture"}, | ||
| #endif | ||
| }; | ||
|
|
||
| static const struct snd_soc_dapm_route cht_rt5645_ssp0_aif2_map[] = { | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"AIF2 Playback", NULL, "ssp0 Tx"}, | ||
| {"ssp0 Tx", NULL, "modem_out"}, | ||
| {"modem_in", NULL, "ssp0 Rx" }, | ||
| {"ssp0 Rx", NULL, "AIF2 Capture"}, | ||
| #endif | ||
|
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. ok |
||
| }; | ||
|
|
||
| static const struct snd_kcontrol_new cht_mc_controls[] = { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,14 +128,12 @@ static const struct snd_soc_dapm_route cht_audio_map[] = { | |
| {"Ext Spk", NULL, "SPOLN"}, | ||
| {"Ext Spk", NULL, "SPORP"}, | ||
| {"Ext Spk", NULL, "SPORN"}, | ||
| #if !IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL) | ||
| {"AIF1 Playback", NULL, "ssp2 Tx"}, | ||
| {"ssp2 Tx", NULL, "codec_out0"}, | ||
| {"ssp2 Tx", NULL, "codec_out1"}, | ||
| {"codec_in0", NULL, "ssp2 Rx"}, | ||
| {"codec_in1", NULL, "ssp2 Rx"}, | ||
| {"ssp2 Rx", NULL, "AIF1 Capture"}, | ||
| #endif | ||
|
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. ok |
||
| {"Headphone", NULL, "Platform Clock"}, | ||
| {"Headset Mic", NULL, "Platform Clock"}, | ||
| {"Int Mic", NULL, "Platform Clock"}, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -249,4 +249,4 @@ config SND_SOC_SOF_HDA | |
|
|
||
| endif ## SND_SOC_SOF_INTEL_PCI | ||
|
|
||
| endif ## SND_SOC_SOF_INTEL | ||
| endif ## SND_SOC_SOF_INTEL_TOPLEVEL | ||
|
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. good catch, I missed this one. Thanks! |
||
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.
this is fine