ASoC: Intel: boards: fix compilation and quirk handling
Subsystems (3)
v2 cover ASoC: Intel: boards: fix compilation and quirk handling
Fix compilation warning and align quirk override handling between machine drivers.
V2: use default -1 in all cases as discussed with Hans de Goede
Pierre-Louis Bossart (3):
ASoC: Intel: bytcht_es8316: fix compilation warning
ASoC: Intel: bytcr_rt5640: align quirk override handling
ASoC: Intel: bytcr_rt5651: align quirk override handling
sound/soc/intel/boards/bytcht_es8316.c | 7 ++++--- sound/soc/intel/boards/bytcr_rt5640.c | 6 +++--- sound/soc/intel/boards/bytcr_rt5651.c | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-)
Signature · 1 line
2.17.1
PATCH v2 1/3 ASoC: Intel: bytcht_es8316: fix compilation warning
Remove warning below, align with other machine drivers.
bytcht_es8316.c:508:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
quirk = (int)dmi_id->driver_data;
^--- sound/soc/intel/boards/bytcht_es8316.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcht_es8316.c +4 -3
@@ -61,7 +61,7 @@ enum {#define BYT_CHT_ES8316_MONO_SPEAKER BIT(17)#define BYT_CHT_ES8316_JD_INVERTED BIT(18) -static int quirk; +static unsigned long quirk;static int quirk_override =-1 ;module_param_named (quirk, quirk_override, int,0444 );
@@ -505,7 +505,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)/* Check for BYTCR or other platform and setup quirks */ dmi_id =dmi_first_match (byt_cht_es8316_quirk_table);if (dmi_id) { - quirk = (int )dmi_id->driver_data; + quirk = (unsigned long )dmi_id->driver_data; }else if (x86_match_cpu (baytrail_cpu_ids) && mach->mach_params.acpi_ipc_irq_index ==0 ) {/* On BYTCR default to SSP0, internal-mic-in2-map, mono-spk */
@@ -517,7 +517,8 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)BYT_CHT_ES8316_MONO_SPEAKER ; }if (quirk_override !=-1 ) { -dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , quirk, +dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , + (unsigned int )quirk, quirk_override); quirk = quirk_override; }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcht_es8316: fix compilation warning" to the asoc tree
The patch
ASoC: Intel: bytcht_es8316: fix compilation warning
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
1fb1e93a1dc7c9673917a8081e144f48bde46495Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:16 -0500
Subject: [PATCH] ASoC: Intel: bytcht_es8316: fix compilation warning
Remove warning below, align with other machine drivers.
bytcht_es8316.c:508:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
quirk = (int)dmi_id->driver_data;
^--- sound/soc/intel/boards/bytcht_es8316.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcht_es8316.c +4 -3
@@ -61,7 +61,7 @@ enum {#define BYT_CHT_ES8316_MONO_SPEAKER BIT(17)#define BYT_CHT_ES8316_JD_INVERTED BIT(18) -static int quirk; +static unsigned long quirk;static int quirk_override =-1 ;module_param_named (quirk, quirk_override, int,0444 );
@@ -505,7 +505,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)/* Check for BYTCR or other platform and setup quirks */ dmi_id =dmi_first_match (byt_cht_es8316_quirk_table);if (dmi_id) { - quirk = (int )dmi_id->driver_data; + quirk = (unsigned long )dmi_id->driver_data; }else if (x86_match_cpu (baytrail_cpu_ids) && mach->mach_params.acpi_ipc_irq_index ==0 ) {/* On BYTCR default to SSP0, internal-mic-in2-map, mono-spk */
@@ -517,7 +517,8 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)BYT_CHT_ES8316_MONO_SPEAKER ; }if (quirk_override !=-1 ) { -dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , quirk, +dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , + (unsigned int )quirk, quirk_override); quirk = quirk_override; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcht_es8316: fix compilation warning" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: bytcht_es8316: fix compilation warning
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
1fb1e93a1dc7c9673917a8081e144f48bde46495Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:16 -0500
Subject: [PATCH] ASoC: Intel: bytcht_es8316: fix compilation warning
Remove warning below, align with other machine drivers.
bytcht_es8316.c:508:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
quirk = (int)dmi_id->driver_data;
^--- sound/soc/intel/boards/bytcht_es8316.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcht_es8316.c +4 -3
@@ -61,7 +61,7 @@ enum {#define BYT_CHT_ES8316_MONO_SPEAKER BIT(17)#define BYT_CHT_ES8316_JD_INVERTED BIT(18) -static int quirk; +static unsigned long quirk;static int quirk_override =-1 ;module_param_named (quirk, quirk_override, int,0444 );
@@ -505,7 +505,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)/* Check for BYTCR or other platform and setup quirks */ dmi_id =dmi_first_match (byt_cht_es8316_quirk_table);if (dmi_id) { - quirk = (int )dmi_id->driver_data; + quirk = (unsigned long )dmi_id->driver_data; }else if (x86_match_cpu (baytrail_cpu_ids) && mach->mach_params.acpi_ipc_irq_index ==0 ) {/* On BYTCR default to SSP0, internal-mic-in2-map, mono-spk */
@@ -517,7 +517,8 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)BYT_CHT_ES8316_MONO_SPEAKER ; }if (quirk_override !=-1 ) { -dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , quirk, +dev_info (dev,"Overriding quirk 0x%x => 0x%x\n" , + (unsigned int )quirk, quirk_override); quirk = quirk_override; }
Signature · 1 line
2.20.1
PATCH v2 2/3 ASoC: Intel: bytcr_rt5640: align quirk override handling
In reply to Pierre-Louis BossartAs discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5640.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5640.c +3 -3
@@ -98,8 +98,8 @@ struct byt_rt5640_private {static bool is_bytcr;static unsigned long byt_rt5640_quirk =BYT_RT5640_MCLK_EN ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -1254,7 +1254,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) dmi_id =dmi_first_match (byt_rt5640_quirk_table);if (dmi_id) byt_rt5640_quirk = (unsigned long )dmi_id->driver_data; -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5640_quirk, quirk_override); byt_rt5640_quirk = quirk_override;
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5640: align quirk override handling" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5640: align quirk override handling
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
2fb2a19af17ac6da3c9b5c6ea4c51b7353290587Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:17 -0500
Subject: [PATCH] ASoC: Intel: bytcr_rt5640: align quirk override handling
As discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5640.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5640.c +3 -3
@@ -98,8 +98,8 @@ struct byt_rt5640_private {static bool is_bytcr;static unsigned long byt_rt5640_quirk =BYT_RT5640_MCLK_EN ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -1254,7 +1254,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) dmi_id =dmi_first_match (byt_rt5640_quirk_table);if (dmi_id) byt_rt5640_quirk = (unsigned long )dmi_id->driver_data; -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5640_quirk, quirk_override); byt_rt5640_quirk = quirk_override;
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5640: align quirk override handling" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: bytcr_rt5640: align quirk override handling
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
2fb2a19af17ac6da3c9b5c6ea4c51b7353290587Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:17 -0500
Subject: [PATCH] ASoC: Intel: bytcr_rt5640: align quirk override handling
As discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5640.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5640.c +3 -3
@@ -98,8 +98,8 @@ struct byt_rt5640_private {static bool is_bytcr;static unsigned long byt_rt5640_quirk =BYT_RT5640_MCLK_EN ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -1254,7 +1254,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev) dmi_id =dmi_first_match (byt_rt5640_quirk_table);if (dmi_id) byt_rt5640_quirk = (unsigned long )dmi_id->driver_data; -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5640_quirk, quirk_override); byt_rt5640_quirk = quirk_override;
Signature · 1 line
2.20.1
PATCH v2 3/3 ASoC: Intel: bytcr_rt5651: align quirk override handling
In reply to Pierre-Louis BossartAs discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5651.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +3 -3
@@ -102,8 +102,8 @@ static const struct acpi_gpio_mapping *byt_rt5651_gpios;static unsigned long byt_rt5651_quirk =BYT_RT5651_DEFAULT_QUIRKS |BYT_RT5651_IN2_MAP ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -987,7 +987,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)/* check quirks before creating card */ dmi_check_system (byt_rt5651_quirk_table); -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5651_quirk, quirk_override); byt_rt5651_quirk = quirk_override;
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5651: align quirk override handling" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5651: align quirk override handling
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
fb45befa7ea07399372266f09e562b26db5693c9Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:18 -0500
Subject: [PATCH] ASoC: Intel: bytcr_rt5651: align quirk override handling
As discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5651.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +3 -3
@@ -102,8 +102,8 @@ static const struct acpi_gpio_mapping *byt_rt5651_gpios;static unsigned long byt_rt5651_quirk =BYT_RT5651_DEFAULT_QUIRKS |BYT_RT5651_IN2_MAP ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -987,7 +987,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)/* check quirks before creating card */ dmi_check_system (byt_rt5651_quirk_table); -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5651_quirk, quirk_override); byt_rt5651_quirk = quirk_override;
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5651: align quirk override handling" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: bytcr_rt5651: align quirk override handling
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
fb45befa7ea07399372266f09e562b26db5693c9Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 19 Apr 2019 15:12:18 -0500
Subject: [PATCH] ASoC: Intel: bytcr_rt5651: align quirk override handling
As discussed on alsa-devel, a zero value is useful to get rid of all quirks. Set default to -1 and align types as done in other machine drivers.
--- sound/soc/intel/boards/bytcr_rt5651.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +3 -3
@@ -102,8 +102,8 @@ static const struct acpi_gpio_mapping *byt_rt5651_gpios;static unsigned long byt_rt5651_quirk =BYT_RT5651_DEFAULT_QUIRKS |BYT_RT5651_IN2_MAP ; -static unsigned int quirk_override; -module_param_named (quirk, quirk_override, uint,0444 ); +static int quirk_override =-1 ; +module_param_named (quirk, quirk_override, int,0444 );MODULE_PARM_DESC (quirk,"Board-specific quirk override" );static void log_quirks (struct device *dev)
@@ -987,7 +987,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)/* check quirks before creating card */ dmi_check_system (byt_rt5651_quirk_table); -if (quirk_override) { +if (quirk_override !=-1 ) {dev_info (&pdev->dev,"Overriding quirk 0x%x => 0x%x\n" , (unsigned int )byt_rt5651_quirk, quirk_override); byt_rt5651_quirk = quirk_override;
Signature · 1 line
2.20.1
Hi,
Quoted 4 lines · Pierre-Louis Bossart
Fix compilation warning and align quirk override handling between machine drivers.
V2: use default -1 in all cases as discussed with Hans de Goede
Thank you, series looks good to me:
Regards,
Hans