ASoC: Intel: pass platform name to machine drivers
Subsystems (3)
cover ASoC: Intel: pass platform name to machine drivers
To reuse the same machine drivers with Atom/SST, Skylake and SOF, we need to change the default platform_name (or platforms->name in the "modern" representation).
So far, this override was done with an automatic override, which was broken by a set of changes for DT platforms related to deferred probe handling.
This automatic override is actually not really needed, the machine driver can already receive the platform name as a platform_data parameter. This is used e.g. for HDaudio support where we have different PCI aliases used for different platforms. We can reuse the same mechanism and modify the machine drivers to override the dailinks prior to registrating the card.
This will require additional work for SOF, but with this helper it'll be just two lines of additional code per machine driver which is reused, not the end of the world.
This helper can be simplified when all drivers have transitioned to the "modern" representation of dailinks.
While these changes are simple and largely mechanical, there is always a risk. These patches were tested with Asus T100 (rt5640), rt5651, rt5682, pcm512x, both in SST and SOF cases. Additional tests are on-going for Chromebook platforms and Broadwell. I figured it was better to share this patchset earlier to get more feedback.
Note that byt-max98080, byt-rt5640 were not modified since they are deprecated. bytcht-nocodec and the Skylake/Kabylake machine drivers changes were not changed since SOF does not support them. There may be additional changes if and when Skylake/Kabylake are supported by SOF (largely a firmware authentication issue, not technical difficulty).
Pierre-Louis Bossart (15):
ASoC: add helper to change platform name for all dailinks
ASoC: Intel: haswell: platform name fixup support
ASoC: Intel: broadwell: platform name fixup support
ASoC: Intel: bdw-rt5677: platform name fixup support
ASoC: Intel: bytcr_rt5640: platform name fixup support
ASoC: Intel: bytcr_rt5651: platform name fixup support
ASoC: Intel: bytcht_da7213: platform name fixup support
ASoC: Intel: bytcht_es8316: platform name fixup support
ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support
ASoC: Intel: cht_bsw_nau8824: platform name fixup support
ASoC: Intel: cht_bsw_rt5645: platform name fixup support
ASoC: Intel: cht_bsw_rt5672: platform name fixup support
ASoC: Intel: bxt_da7219_max98357a: platform name fixup support
ASoC: Intel: bxt_rt298: platform name fixup support
ASoC: Intel: glk_rt5682_max98357a: platform name fixup support
include/sound/soc.h | 31 +++++++++++++++++++ sound/soc/intel/boards/bdw-rt5677.c | 14 +++++++++ sound/soc/intel/boards/broadwell.c | 16 ++++++++++ sound/soc/intel/boards/bxt_da7219_max98357a.c | 13 ++++++++ sound/soc/intel/boards/bxt_rt298.c | 13 ++++++++ sound/soc/intel/boards/bytcht_da7213.c | 8 +++++ sound/soc/intel/boards/bytcht_es8316.c | 9 ++++++ sound/soc/intel/boards/bytcr_rt5640.c | 9 ++++++ sound/soc/intel/boards/bytcr_rt5651.c | 9 ++++++ sound/soc/intel/boards/cht_bsw_max98090_ti.c | 12 +++++++ sound/soc/intel/boards/cht_bsw_nau8824.c | 12 +++++++ sound/soc/intel/boards/cht_bsw_rt5645.c | 9 ++++++ sound/soc/intel/boards/cht_bsw_rt5672.c | 9 ++++++ sound/soc/intel/boards/glk_rt5682_max98357a.c | 21 ++++++++++--- sound/soc/intel/boards/haswell.c | 15 +++++++++ 15 files changed, 196 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/15 ASoC: add helper to change platform name for all dailinks
To reuse the same machine drivers with Atom/SST, Skylake and SOF, we need to change the default platform_name (or platforms->name in the "modern" representation).
So far, this override was done with an automatic override, which was broken by a set of changes for DT platforms related to deferred probe handling.
This automatic override is actually not really needed, the machine driver can already receive the platform name as a platform_data parameter. This is used e.g. for HDaudio support where we have different PCI aliases used for different platforms. We can reuse the same mechanism and modify the machine drivers to override the dailinks prior to registrating the card.
This will require additional work for SOF, but with this helper it'll be just two lines of additional code per machine driver which is reused, not the end of the world.
This helper can be simplified when all drivers have transitioned to the "modern" representation of dailinks.
--- include/sound/soc.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
include/sound/soc.h +31 -0
@@ -1580,6 +1580,37 @@ struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card,return NULL ; } +static inline +int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card *card, +const char *platform_name) +{ +struct snd_soc_dai_link *dai_link; +const char *name; +int i; + +if (!platform_name)/* nothing to do */ +return 0 ; + +/* set platform name for each dailink */ +for_each_card_prelinks (card, i, dai_link) { + name =devm_kstrdup (card->dev, platform_name,GFP_KERNEL ); +if (!name) +return -ENOMEM ; + +if (dai_link->platforms) +/* only single platform is supported for now */ + dai_link->platforms->name = name; +else +/* +* legacy mode, this case will be removed when all +* derivers are switched to modern style dai_link. +*/ + dai_link->platform_name = name; + } + +return 0 ; +} +#ifdef CONFIG_DEBUG_FS extern struct dentry *snd_soc_debugfs_root;#endif
Signature · 1 line
2.17.1
Re: [PATCH 01/15] ASoC: add helper to change platform name for all dailinks
Quoted 56 lines · Pierre-Louis Bossart
To reuse the same machine drivers with Atom/SST, Skylake and SOF, we need to change the default
platform_name(orplatforms->namein the "modern" representation).So far, this override was done with an automatic override, which was broken by a set of changes for DT platforms related to deferred probe handling.
This automatic override is actually not really needed, the machine driver can already receive the platform name as a
platform_dataparameter. This is used e.g. for HDaudio support where we have different PCI aliases used for different platforms. We can reuse the same mechanism and modify the machine drivers to override the dailinks prior to registrating the card.This will require additional work for SOF, but with this helper it'll be just two lines of additional code per machine driver which is reused, not the end of the world.
This helper can be simplified when all drivers have transitioned to the "modern" representation of dailinks.
Signed-off-by Pierre-Louis Bossart <[email protected]>--- include/sound/soc.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)include/sound/soc.h +20
-0@@ -1580,6 +1580,37 @@ struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card,return NULL ; } +static inline +int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card *card, +const char *platform_name) +{ +struct snd_soc_dai_link *dai_link; +const char *name; +int i; + +if (!platform_name)/* nothing to do */ +return 0 ; + +/* set platform name for each dailink */ +for_each_card_prelinks (card, i, dai_link) { + name =devm_kstrdup (card->dev, platform_name,GFP_KERNEL ); +if (!name) +return -ENOMEM ; + +if (dai_link->platforms) +/* only single platform is supported for now */ + dai_link->platforms->name = name;
include/sound/soc.h struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card, · line 1612
Quoted 10 lines
include/sound/soc.h +10
-0+else +/* +* legacy mode, this case will be removed when all +* derivers are switched to modern style dai_link. +*/ + dai_link->platform_name = name; + } + +return 0 ; +}
Does it have to be inline? The function has a significant size, and it's supposed to be called by every Intel driver.
thanks,
Takashi
Mark Brown
maintainerRe: [PATCH 01/15] ASoC: add helper to change platform name for all dailinks
Quoted 9 lines · Takashi Iwai
include/sound/soc.h struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card, · line 1586
Quoted 4 lines · Pierre-Louis Bossart
include/sound/soc.h +4
-0+static inline +int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card *card, +const char *platform_name) +{Does it have to be inline? The function has a significant size, and it's supposed to be called by every Intel driver.
Yeah, if it gets too big the compiler will just ignore you but given that this isn't exactly in a hot path or anything I can't see any reason why it should be inline.
Re: [PATCH 01/15] ASoC: add helper to change platform name for all dailinks
Quoted 10 lines
Quoted 7 lines
include/sound/soc.h struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card, · line 1586
Quoted 5 lines
include/sound/soc.h +4
-0+static inline +int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card *card, +const char *platform_name) +{Does it have to be inline? The function has a significant size, and it's supposed to be called by every Intel driver.
Yeah, if it gets too big the compiler will just ignore you but given that this isn't exactly in a hot path or anything I can't see any reason why it should be inline.
Sure, I can fix this, no worries.
Mark Brown
maintainerApplied "ASoC: add helper to change platform name for all dailinks" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: add helper to change platform name for all dailinks
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
cb50358b83846e4dcb37137c431327c4dd68561bMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:34:55 -0600
Subject: [PATCH] ASoC: add helper to change platform name for all dailinks
To reuse the same machine drivers with Atom/SST, Skylake and SOF, we need to change the default platform_name (or platforms->name in the "modern" representation).
So far, this override was done with an automatic override, which was broken by a set of changes for DT platforms related to deferred probe handling.
This automatic override is actually not really needed, the machine driver can already receive the platform name as a platform_data parameter. This is used e.g. for HDaudio support where we have different PCI aliases used for different platforms. We can reuse the same mechanism and modify the machine drivers to override the dailinks prior to registrating the card.
This will require additional work for SOF, but with this helper it'll be just two lines of additional code per machine driver which is reused, not the end of the world.
This helper can be simplified when all drivers have transitioned to the "modern" representation of dailinks.
--- include/sound/soc.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
include/sound/soc.h +31 -0
@@ -1580,6 +1580,37 @@ struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card,return NULL ; } +static inline +int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card *card, +const char *platform_name) +{ +struct snd_soc_dai_link *dai_link; +const char *name; +int i; + +if (!platform_name)/* nothing to do */ +return 0 ; + +/* set platform name for each dailink */ +for_each_card_prelinks (card, i, dai_link) { + name =devm_kstrdup (card->dev, platform_name,GFP_KERNEL ); +if (!name) +return -ENOMEM ; + +if (dai_link->platforms) +/* only single platform is supported for now */ + dai_link->platforms->name = name; +else +/* +* legacy mode, this case will be removed when all +* derivers are switched to modern style dai_link. +*/ + dai_link->platform_name = name; + } + +return 0 ; +} +#ifdef CONFIG_DEBUG_FS extern struct dentry *snd_soc_debugfs_root;#endif
Signature · 1 line
2.20.1
PATCH 2/15 ASoC: Intel: haswell: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/haswell.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
sound/soc/intel/boards/haswell.c +15 -0
@@ -19,6 +19,7 @@#include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/pcm_params.h> #include "../common/sst-dsp.h"
@@ -189,8 +190,22 @@ static struct snd_soc_card haswell_rt5640 = {static int haswell_audio_probe (struct platform_device *pdev) { +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; + haswell_rt5640.dev = &pdev->dev; +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&haswell_rt5640, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &haswell_rt5640); }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: haswell: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: haswell: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
e87055d732e34d8f5fa95da686958b30a03da5b4Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:34:56 -0600
Subject: [PATCH] ASoC: Intel: haswell: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/haswell.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
sound/soc/intel/boards/haswell.c +15 -0
@@ -19,6 +19,7 @@#include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/pcm_params.h> #include "../common/sst-dsp.h"
@@ -189,8 +190,22 @@ static struct snd_soc_card haswell_rt5640 = {static int haswell_audio_probe (struct platform_device *pdev) { +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; + haswell_rt5640.dev = &pdev->dev; +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&haswell_rt5640, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &haswell_rt5640); }
Signature · 1 line
2.20.1
PATCH 3/15 ASoC: Intel: broadwell: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/broadwell.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
sound/soc/intel/boards/broadwell.c +16 -0
@@ -21,6 +21,7 @@#include <sound/soc.h> #include <sound/jack.h> #include <sound/pcm_params.h> +#include <sound/soc-acpi.h> #include "../common/sst-dsp.h" #include "../haswell/sst-haswell-ipc.h"
@@ -267,7 +268,22 @@ static struct snd_soc_card broadwell_rt286 = {static int broadwell_audio_probe (struct platform_device *pdev) { +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; + broadwell_rt286.dev = &pdev->dev; + +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&broadwell_rt286, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &broadwell_rt286); }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: broadwell: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: broadwell: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
2d067b2807f9d3381a37acef1b2f43682a868c7aMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:34:57 -0600
Subject: [PATCH] ASoC: Intel: broadwell: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/broadwell.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
sound/soc/intel/boards/broadwell.c +16 -0
@@ -21,6 +21,7 @@#include <sound/soc.h> #include <sound/jack.h> #include <sound/pcm_params.h> +#include <sound/soc-acpi.h> #include "../common/sst-dsp.h" #include "../haswell/sst-haswell-ipc.h"
@@ -267,7 +268,22 @@ static struct snd_soc_card broadwell_rt286 = {static int broadwell_audio_probe (struct platform_device *pdev) { +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; + broadwell_rt286.dev = &pdev->dev; + +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&broadwell_rt286, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &broadwell_rt286); }
Signature · 1 line
2.20.1
PATCH 4/15 ASoC: Intel: bdw-rt5677: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bdw-rt5677.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
sound/soc/intel/boards/bdw-rt5677.c +14 -0
@@ -26,6 +26,7 @@#include <sound/soc.h> #include <sound/pcm_params.h> #include <sound/jack.h> +#include <sound/soc-acpi.h> #include "../common/sst-dsp.h" #include "../haswell/sst-haswell-ipc.h"
@@ -339,6 +340,9 @@ static struct snd_soc_card bdw_rt5677_card = {static int bdw_rt5677_probe (struct platform_device *pdev) {struct bdw_rt5677_priv *bdw_rt5677; +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; bdw_rt5677_card.dev = &pdev->dev;
@@ -350,6 +354,16 @@ static int bdw_rt5677_probe(struct platform_device *pdev)return -ENOMEM ; } +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&bdw_rt5677_card, + platform_name); +if (ret) +return ret; +snd_soc_card_set_drvdata (&bdw_rt5677_card, bdw_rt5677);return devm_snd_soc_register_card (&pdev->dev, &bdw_rt5677_card);
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bdw-rt5677: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bdw-rt5677: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
7e40ddcf974a970e750420f88365174cfd207b24Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:34:58 -0600
Subject: [PATCH] ASoC: Intel: bdw-rt5677: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bdw-rt5677.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
sound/soc/intel/boards/bdw-rt5677.c +14 -0
@@ -26,6 +26,7 @@#include <sound/soc.h> #include <sound/pcm_params.h> #include <sound/jack.h> +#include <sound/soc-acpi.h> #include "../common/sst-dsp.h" #include "../haswell/sst-haswell-ipc.h"
@@ -339,6 +340,9 @@ static struct snd_soc_card bdw_rt5677_card = {static int bdw_rt5677_probe (struct platform_device *pdev) {struct bdw_rt5677_priv *bdw_rt5677; +struct snd_soc_acpi_mach *mach; +const char *platform_name =NULL ; +int ret; bdw_rt5677_card.dev = &pdev->dev;
@@ -350,6 +354,16 @@ static int bdw_rt5677_probe(struct platform_device *pdev)return -ENOMEM ; } +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; +if (mach)/* extra check since legacy does not pass parameters */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&bdw_rt5677_card, + platform_name); +if (ret) +return ret; +snd_soc_card_set_drvdata (&bdw_rt5677_card, bdw_rt5677);return devm_snd_soc_register_card (&pdev->dev, &bdw_rt5677_card);
Signature · 1 line
2.20.1
PATCH 5/15 ASoC: Intel: bytcr_rt5640: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcr_rt5640.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5640.c +9 -0
@@ -1153,6 +1153,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)const struct dmi_system_id *dmi_id;struct byt_rt5640_private *priv;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;int ret_val =0 ;int dai_index =0 ;
@@ -1317,6 +1318,14 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) map_name[BYT_RT5640_MAP(byt_rt5640_quirk)]); byt_rt5640_card.long_name = byt_rt5640_long_name; +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&byt_rt5640_card, + platform_name); +if (ret_val) +return ret_val; + ret_val =devm_snd_soc_register_card (&pdev->dev, &byt_rt5640_card);if (ret_val) {
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5640: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5640: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
bd7661b761bc7f585aad4fc6e5b62d684bdad75bMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:34:59 -0600
Subject: [PATCH] ASoC: Intel: bytcr_rt5640: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcr_rt5640.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5640.c +9 -0
@@ -1153,6 +1153,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)const struct dmi_system_id *dmi_id;struct byt_rt5640_private *priv;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;int ret_val =0 ;int dai_index =0 ;
@@ -1317,6 +1318,14 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) map_name[BYT_RT5640_MAP(byt_rt5640_quirk)]); byt_rt5640_card.long_name = byt_rt5640_long_name; +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&byt_rt5640_card, + platform_name); +if (ret_val) +return ret_val; + ret_val =devm_snd_soc_register_card (&pdev->dev, &byt_rt5640_card);if (ret_val) {
Signature · 1 line
2.20.1
PATCH 6/15 ASoC: Intel: bytcr_rt5651: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcr_rt5651.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +9 -0
@@ -922,6 +922,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)const char *const mic_name[] = {"dmic" ,"in1" ,"in2" ,"in12" };struct byt_rt5651_private *priv;struct snd_soc_acpi_mach *mach; +const char *platform_name;struct device *codec_dev;const char *i2c_name =NULL ;const char *hp_swapped;
@@ -1137,6 +1138,14 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev) mic_name[BYT_RT5651_MAP(byt_rt5651_quirk)], hp_swapped); byt_rt5651_card.long_name = byt_rt5651_long_name; +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&byt_rt5651_card, + platform_name); +if (ret_val) +return ret_val; + ret_val =devm_snd_soc_register_card (&pdev->dev, &byt_rt5651_card);if (ret_val) {
Signature · 1 line
2.17.1
PATCH 7/15 ASoC: Intel: bytcht_da7213: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcht_da7213.c | 8 ++++++++ 1 file changed, 8 insertions(+)
sound/soc/intel/boards/bytcht_da7213.c +8 -0
@@ -225,6 +225,7 @@ static int bytcht_da7213_probe(struct platform_device *pdev) {struct snd_soc_card *card;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;int dai_index =0 ;int ret_val =0 ;
@@ -250,6 +251,13 @@ static int bytcht_da7213_probe(struct platform_device *pdev) dailink[dai_index].codec_name = codec_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (card, platform_name); +if (ret_val) +return ret_val; + ret_val =devm_snd_soc_register_card (&pdev->dev, card);if (ret_val) { dev_err(&pdev->dev,
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcht_da7213: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bytcht_da7213: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
686338c12a2bd2d27f8444901fb9ce1a4c0c0b58Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:01 -0600
Subject: [PATCH] ASoC: Intel: bytcht_da7213: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcht_da7213.c | 8 ++++++++ 1 file changed, 8 insertions(+)
sound/soc/intel/boards/bytcht_da7213.c +8 -0
@@ -225,6 +225,7 @@ static int bytcht_da7213_probe(struct platform_device *pdev) {struct snd_soc_card *card;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;int dai_index =0 ;int ret_val =0 ;
@@ -250,6 +251,13 @@ static int bytcht_da7213_probe(struct platform_device *pdev) dailink[dai_index].codec_name = codec_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (card, platform_name); +if (ret_val) +return ret_val; + ret_val =devm_snd_soc_register_card (&pdev->dev, card);if (ret_val) { dev_err(&pdev->dev,
Signature · 1 line
2.20.1
PATCH 8/15 ASoC: Intel: bytcht_es8316: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcht_es8316.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcht_es8316.c +9 -0
@@ -441,6 +441,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)struct byt_cht_es8316_private *priv;struct device *dev = &pdev->dev;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;struct device *codec_dev;int dai_index =0 ;
@@ -469,6 +470,14 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev) byt_cht_es8316_dais[dai_index].codec_name = codec_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&byt_cht_es8316_card, + platform_name); +if (ret) +return ret; +/* Check for BYTCR or other platform and setup quirks */ if (x86_match_cpu (baytrail_cpu_ids) && mach->mach_params.acpi_ipc_irq_index ==0 ) {
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcht_es8316: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bytcht_es8316: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
e4bc6b1195f64d345646709c4a65edf1fc4d3228Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:02 -0600
Subject: [PATCH] ASoC: Intel: bytcht_es8316: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bytcht_es8316.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcht_es8316.c +9 -0
@@ -441,6 +441,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)struct byt_cht_es8316_private *priv;struct device *dev = &pdev->dev;struct snd_soc_acpi_mach *mach; +const char *platform_name;const char *i2c_name =NULL ;struct device *codec_dev;int dai_index =0 ;
@@ -469,6 +470,14 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev) byt_cht_es8316_dais[dai_index].codec_name = codec_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&byt_cht_es8316_card, + platform_name); +if (ret) +return ret; +/* Check for BYTCR or other platform and setup quirks */ if (x86_match_cpu (baytrail_cpu_ids) && mach->mach_params.acpi_ipc_irq_index ==0 ) {
Signature · 1 line
2.20.1
PATCH 9/15 ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/soc/intel/boards/cht_bsw_max98090_ti.c +12 -0
@@ -28,6 +28,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include "../../codecs/max98090.h" #include "../atom/sst-atom-controls.h"
@@ -420,6 +421,8 @@ static int snd_cht_mc_probe(struct platform_device *pdev)int ret_val =0 ;struct cht_mc_private *drv;const char *mclk_name; +struct snd_soc_acpi_mach *mach; +const char *platform_name;int quirks =0 ; dmi_id =dmi_first_match (cht_max98090_quirk_table);
@@ -442,6 +445,15 @@ static int snd_cht_mc_probe(struct platform_device *pdev)dev_dbg (dev,"Unable to add GPIO mapping table\n" ); } +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; +/* register the soc card */ snd_soc_card_cht.dev = &pdev->dev;snd_soc_card_set_drvdata (&snd_soc_card_cht, drv);
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
7e7e24d7c7ff0e85956288915aaa7e682e2ccd55Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:03 -0600
Subject: [PATCH] ASoC: Intel: cht_bsw_max98090_ti: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/soc/intel/boards/cht_bsw_max98090_ti.c +12 -0
@@ -28,6 +28,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include "../../codecs/max98090.h" #include "../atom/sst-atom-controls.h"
@@ -420,6 +421,8 @@ static int snd_cht_mc_probe(struct platform_device *pdev)int ret_val =0 ;struct cht_mc_private *drv;const char *mclk_name; +struct snd_soc_acpi_mach *mach; +const char *platform_name;int quirks =0 ; dmi_id =dmi_first_match (cht_max98090_quirk_table);
@@ -442,6 +445,15 @@ static int snd_cht_mc_probe(struct platform_device *pdev)dev_dbg (dev,"Unable to add GPIO mapping table\n" ); } +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; +/* register the soc card */ snd_soc_card_cht.dev = &pdev->dev;snd_soc_card_set_drvdata (&snd_soc_card_cht, drv);
Signature · 1 line
2.20.1
PATCH 10/15 ASoC: Intel: cht_bsw_nau8824: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_nau8824.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/soc/intel/boards/cht_bsw_nau8824.c +12 -0
@@ -25,6 +25,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include <linux/input.h> #include "../atom/sst-atom-controls.h"
@@ -246,6 +247,8 @@ static struct snd_soc_card snd_soc_card_cht = {static int snd_cht_mc_probe (struct platform_device *pdev) {struct cht_mc_private *drv; +struct snd_soc_acpi_mach *mach; +const char *platform_name;int ret_val; drv =devm_kzalloc (&pdev->dev,sizeof (*drv),GFP_KERNEL );
@@ -253,6 +256,15 @@ static int snd_cht_mc_probe(struct platform_device *pdev)return -ENOMEM ;snd_soc_card_set_drvdata (&snd_soc_card_cht, drv); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; +/* register the soc card */ snd_soc_card_cht.dev = &pdev->dev; ret_val =devm_snd_soc_register_card (&pdev->dev, &snd_soc_card_cht);
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: cht_bsw_nau8824: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: cht_bsw_nau8824: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
4506db8043341f2351e03d45c0e96c8e1a141dfaMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:04 -0600
Subject: [PATCH] ASoC: Intel: cht_bsw_nau8824: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_nau8824.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/soc/intel/boards/cht_bsw_nau8824.c +12 -0
@@ -25,6 +25,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include <linux/input.h> #include "../atom/sst-atom-controls.h"
@@ -246,6 +247,8 @@ static struct snd_soc_card snd_soc_card_cht = {static int snd_cht_mc_probe (struct platform_device *pdev) {struct cht_mc_private *drv; +struct snd_soc_acpi_mach *mach; +const char *platform_name;int ret_val; drv =devm_kzalloc (&pdev->dev,sizeof (*drv),GFP_KERNEL );
@@ -253,6 +256,15 @@ static int snd_cht_mc_probe(struct platform_device *pdev)return -ENOMEM ;snd_soc_card_set_drvdata (&snd_soc_card_cht, drv); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; +/* register the soc card */ snd_soc_card_cht.dev = &pdev->dev; ret_val =devm_snd_soc_register_card (&pdev->dev, &snd_soc_card_cht);
Signature · 1 line
2.20.1
PATCH 11/15 ASoC: Intel: cht_bsw_rt5645: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_rt5645.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/cht_bsw_rt5645.c +9 -0
@@ -530,6 +530,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev) {struct snd_soc_card *card = snd_soc_cards[0 ].soc_card;struct snd_soc_acpi_mach *mach; +const char *platform_name;struct cht_mc_private *drv;const char *i2c_name =NULL ;bool found = false;
@@ -663,6 +664,14 @@ static int snd_cht_mc_probe(struct platform_device *pdev) cht_rt5645_cpu_dai_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (card, + platform_name); +if (ret_val) +return ret_val; + drv->mclk =devm_clk_get (&pdev->dev,"pmc_plt_clk_3" );if (IS_ERR (drv->mclk)) { dev_err(&pdev->dev,
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: cht_bsw_rt5645: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: cht_bsw_rt5645: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
3a934e7c75b446a104bdea3dd676d7199db9a7bdMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:05 -0600
Subject: [PATCH] ASoC: Intel: cht_bsw_rt5645: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_rt5645.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/cht_bsw_rt5645.c +9 -0
@@ -530,6 +530,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev) {struct snd_soc_card *card = snd_soc_cards[0 ].soc_card;struct snd_soc_acpi_mach *mach; +const char *platform_name;struct cht_mc_private *drv;const char *i2c_name =NULL ;bool found = false;
@@ -663,6 +664,14 @@ static int snd_cht_mc_probe(struct platform_device *pdev) cht_rt5645_cpu_dai_name; } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (card, + platform_name); +if (ret_val) +return ret_val; + drv->mclk =devm_clk_get (&pdev->dev,"pmc_plt_clk_3" );if (IS_ERR (drv->mclk)) { dev_err(&pdev->dev,
Signature · 1 line
2.20.1
PATCH 12/15 ASoC: Intel: cht_bsw_rt5672: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_rt5672.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/cht_bsw_rt5672.c +9 -0
@@ -400,6 +400,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev)int ret_val =0 ;struct cht_mc_private *drv;struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; +const char *platform_name;const char *i2c_name;int i;
@@ -426,6 +427,14 @@ static int snd_cht_mc_probe(struct platform_device *pdev) } } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; + drv->mclk =devm_clk_get (&pdev->dev,"pmc_plt_clk_3" );if (IS_ERR (drv->mclk)) { dev_err(&pdev->dev,
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: cht_bsw_rt5672: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: cht_bsw_rt5672: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
f403906da05cdea38c222ef472fdc4df29ece47fMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:06 -0600
Subject: [PATCH] ASoC: Intel: cht_bsw_rt5672: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/cht_bsw_rt5672.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/cht_bsw_rt5672.c +9 -0
@@ -400,6 +400,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev)int ret_val =0 ;struct cht_mc_private *drv;struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; +const char *platform_name;const char *i2c_name;int i;
@@ -426,6 +427,14 @@ static int snd_cht_mc_probe(struct platform_device *pdev) } } +/* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val =snd_soc_fixup_dai_links_platform_name (&snd_soc_card_cht, + platform_name); +if (ret_val) +return ret_val; + drv->mclk =devm_clk_get (&pdev->dev,"pmc_plt_clk_3" );if (IS_ERR (drv->mclk)) { dev_err(&pdev->dev,
Signature · 1 line
2.20.1
PATCH 13/15 ASoC: Intel: bxt_da7219_max98357a: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bxt_da7219_max98357a.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
sound/soc/intel/boards/bxt_da7219_max98357a.c +13 -0
@@ -23,6 +23,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include "../../codecs/hdac_hdmi.h" #include "../../codecs/da7219.h" #include "../../codecs/da7219-aad.h"
@@ -584,6 +585,9 @@ static struct snd_soc_card broxton_audio_card = {static int broxton_audio_probe (struct platform_device *pdev) {struct bxt_card_private *ctx; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
@@ -594,6 +598,15 @@ static int broxton_audio_probe(struct platform_device *pdev) broxton_audio_card.dev = &pdev->dev;snd_soc_card_set_drvdata (&broxton_audio_card, ctx); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&broxton_audio_card, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &broxton_audio_card); }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bxt_da7219_max98357a: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bxt_da7219_max98357a: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
7ebf2528eacae2a9c1edff575c3c58b75095ce08Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:07 -0600
Subject: [PATCH] ASoC: Intel: bxt_da7219_max98357a: platform name fixup
support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bxt_da7219_max98357a.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
sound/soc/intel/boards/bxt_da7219_max98357a.c +13 -0
@@ -23,6 +23,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include "../../codecs/hdac_hdmi.h" #include "../../codecs/da7219.h" #include "../../codecs/da7219-aad.h"
@@ -584,6 +585,9 @@ static struct snd_soc_card broxton_audio_card = {static int broxton_audio_probe (struct platform_device *pdev) {struct bxt_card_private *ctx; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
@@ -594,6 +598,15 @@ static int broxton_audio_probe(struct platform_device *pdev) broxton_audio_card.dev = &pdev->dev;snd_soc_card_set_drvdata (&broxton_audio_card, ctx); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (&broxton_audio_card, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, &broxton_audio_card); }
Signature · 1 line
2.20.1
PATCH 14/15 ASoC: Intel: bxt_rt298: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bxt_rt298.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
sound/soc/intel/boards/bxt_rt298.c +13 -0
@@ -21,6 +21,7 @@#include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include <sound/pcm_params.h> #include "../../codecs/hdac_hdmi.h"
@@ -576,6 +577,9 @@ static int broxton_audio_probe(struct platform_device *pdev)struct bxt_rt286_private *ctx;struct snd_soc_card *card = (struct snd_soc_card *)pdev->id_entry->driver_data; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +int ret;int i;for (i =0 ; i <ARRAY_SIZE (broxton_rt298_dais); i++) {
@@ -602,6 +606,15 @@ static int broxton_audio_probe(struct platform_device *pdev) card->dev = &pdev->dev;snd_soc_card_set_drvdata (card, ctx); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (card, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, card); }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bxt_rt298: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: bxt_rt298: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
fbe2c2736e295bf866110c9278504c42498318c5Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:08 -0600
Subject: [PATCH] ASoC: Intel: bxt_rt298: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/bxt_rt298.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
sound/soc/intel/boards/bxt_rt298.c +13 -0
@@ -21,6 +21,7 @@#include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include <sound/jack.h> #include <sound/pcm_params.h> #include "../../codecs/hdac_hdmi.h"
@@ -576,6 +577,9 @@ static int broxton_audio_probe(struct platform_device *pdev)struct bxt_rt286_private *ctx;struct snd_soc_card *card = (struct snd_soc_card *)pdev->id_entry->driver_data; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +int ret;int i;for (i =0 ; i <ARRAY_SIZE (broxton_rt298_dais); i++) {
@@ -602,6 +606,15 @@ static int broxton_audio_probe(struct platform_device *pdev) card->dev = &pdev->dev;snd_soc_card_set_drvdata (card, ctx); +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (card, + platform_name); +if (ret) +return ret; +return devm_snd_soc_register_card (&pdev->dev, card); }
Signature · 1 line
2.20.1
PATCH 15/15 ASoC: Intel: glk_rt5682_max98357a: platform name fixup support
In reply to Pierre-Louis BossartAdd helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +17 -4
@@ -16,6 +16,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include "../skylake/skl.h" #include "../../codecs/rt5682.h" #include "../../codecs/hdac_hdmi.h"
@@ -571,6 +572,10 @@ static struct snd_soc_card glk_audio_card_rt5682_m98357a = {static int geminilake_audio_probe (struct platform_device *pdev) {struct glk_card_private *ctx; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +struct snd_soc_card *card; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
@@ -578,11 +583,19 @@ static int geminilake_audio_probe(struct platform_device *pdev)INIT_LIST_HEAD (&ctx->hdmi_pcm_list); - glk_audio_card_rt5682_m98357a.dev = &pdev->dev; -snd_soc_card_set_drvdata (&glk_audio_card_rt5682_m98357a, ctx); + card = &glk_audio_card_rt5682_m98357a; + card->dev = &pdev->dev; +snd_soc_card_set_drvdata (card, ctx); + +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (card, platform_name); +if (ret) +return ret; -return devm_snd_soc_register_card (&pdev->dev, - &glk_audio_card_rt5682_m98357a); +return devm_snd_soc_register_card (&pdev->dev, card); }static const struct platform_device_id glk_board_ids[] = {
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: glk_rt5682_max98357a: platform name fixup support" to the asoc tree
The patch
ASoC: Intel: glk_rt5682_max98357a: platform name fixup support
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
5b14aa718f5993b0ecee3bbd61557468ac2420bfMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:35:09 -0600
Subject: [PATCH] ASoC: Intel: glk_rt5682_max98357a: platform name fixup
support
Add helper to override dailink platform name, if passed as parameter
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +17 -4
@@ -16,6 +16,7 @@#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> +#include <sound/soc-acpi.h> #include "../skylake/skl.h" #include "../../codecs/rt5682.h" #include "../../codecs/hdac_hdmi.h"
@@ -571,6 +572,10 @@ static struct snd_soc_card glk_audio_card_rt5682_m98357a = {static int geminilake_audio_probe (struct platform_device *pdev) {struct glk_card_private *ctx; +struct snd_soc_acpi_mach *mach; +const char *platform_name; +struct snd_soc_card *card; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
@@ -578,11 +583,19 @@ static int geminilake_audio_probe(struct platform_device *pdev)INIT_LIST_HEAD (&ctx->hdmi_pcm_list); - glk_audio_card_rt5682_m98357a.dev = &pdev->dev; -snd_soc_card_set_drvdata (&glk_audio_card_rt5682_m98357a, ctx); + card = &glk_audio_card_rt5682_m98357a; + card->dev = &pdev->dev; +snd_soc_card_set_drvdata (card, ctx); + +/* override plaform name, if required */ + mach = (&pdev->dev)->platform_data; + platform_name = mach->mach_params.platform; + + ret =snd_soc_fixup_dai_links_platform_name (card, platform_name); +if (ret) +return ret; -return devm_snd_soc_register_card (&pdev->dev, - &glk_audio_card_rt5682_m98357a); +return devm_snd_soc_register_card (&pdev->dev, card); }static const struct platform_device_id glk_board_ids[] = {
Signature · 1 line
2.20.1