linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the sound tree with the sound-asoc-fixes tree
@ 2023-08-18  2:55 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2023-08-18  2:55 UTC (permalink / raw)
  To: Takashi Iwai, Mark Brown, Liam Girdwood
  Cc: Linux Kernel Mailing List, Linux Next Mailing List,
	Maciej Strozek, Richard Fitzgerald, Simon Trimmer

[-- Attachment #1: Type: text/plain, Size: 3683 bytes --]

Hi all,

Today's linux-next merge of the sound tree got a conflict in:

  sound/soc/codecs/cs35l56.c

between commit:

  897a6b5a030e ("ASoC: cs35l56: Read firmware uuid from a device property instead of _SUB")

from the sound-asoc-fixes tree and commit:

  898673b905b9 ("ASoC: cs35l56: Move shared data into a common data structure")

from the sound tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc sound/soc/codecs/cs35l56.c
index fd06b9f9d496,19b6b4fbe5de..000000000000
--- a/sound/soc/codecs/cs35l56.c
+++ b/sound/soc/codecs/cs35l56.c
@@@ -1353,22 -1017,26 +1016,22 @@@ static int cs35l56_dsp_init(struct cs35
  	return 0;
  }
  
 -static int cs35l56_acpi_get_name(struct cs35l56_private *cs35l56)
 +static int cs35l56_get_firmware_uid(struct cs35l56_private *cs35l56)
  {
- 	struct device *dev = cs35l56->dev;
 -	acpi_handle handle = ACPI_HANDLE(cs35l56->base.dev);
 -	const char *sub;
++	struct device *dev = cs35l56->base.dev;
 +	const char *prop;
 +	int ret;
  
 -	/* If there is no ACPI_HANDLE, there is no ACPI for this system, return 0 */
 -	if (!handle)
 +	ret = device_property_read_string(dev, "cirrus,firmware-uid", &prop);
 +	/* If bad sw node property, return 0 and fallback to legacy firmware path */
 +	if (ret < 0)
  		return 0;
  
 -	sub = acpi_get_subsystem_id(handle);
 -	if (IS_ERR(sub)) {
 -		/* If bad ACPI, return 0 and fallback to legacy firmware path, otherwise fail */
 -		if (PTR_ERR(sub) == -ENODATA)
 -			return 0;
 -		else
 -			return PTR_ERR(sub);
 -	}
 +	cs35l56->dsp.system_name = devm_kstrdup(dev, prop, GFP_KERNEL);
 +	if (cs35l56->dsp.system_name == NULL)
 +		return -ENOMEM;
  
 -	cs35l56->dsp.system_name = sub;
 -	dev_dbg(cs35l56->base.dev, "Subsystem ID: %s\n", cs35l56->dsp.system_name);
 +	dev_dbg(dev, "Firmware UID: %s\n", cs35l56->dsp.system_name);
  
  	return 0;
  }
@@@ -1405,14 -1074,14 +1069,14 @@@ int cs35l56_common_probe(struct cs35l56
  
  	ret = regulator_bulk_enable(ARRAY_SIZE(cs35l56->supplies), cs35l56->supplies);
  	if (ret != 0)
- 		return dev_err_probe(cs35l56->dev, ret, "Failed to enable supplies\n");
+ 		return dev_err_probe(cs35l56->base.dev, ret, "Failed to enable supplies\n");
  
- 	if (cs35l56->reset_gpio) {
+ 	if (cs35l56->base.reset_gpio) {
  		cs35l56_wait_min_reset_pulse();
- 		gpiod_set_value_cansleep(cs35l56->reset_gpio, 1);
+ 		gpiod_set_value_cansleep(cs35l56->base.reset_gpio, 1);
  	}
  
 -	ret = cs35l56_acpi_get_name(cs35l56);
 +	ret = cs35l56_get_firmware_uid(cs35l56);
  	if (ret != 0)
  		goto err;
  
@@@ -1594,12 -1198,14 +1193,12 @@@ void cs35l56_remove(struct cs35l56_priv
  	flush_workqueue(cs35l56->dsp_wq);
  	destroy_workqueue(cs35l56->dsp_wq);
  
- 	pm_runtime_suspend(cs35l56->dev);
- 	pm_runtime_disable(cs35l56->dev);
+ 	pm_runtime_suspend(cs35l56->base.dev);
+ 	pm_runtime_disable(cs35l56->base.dev);
  
- 	regcache_cache_only(cs35l56->regmap, true);
+ 	regcache_cache_only(cs35l56->base.regmap, true);
  
- 	gpiod_set_value_cansleep(cs35l56->reset_gpio, 0);
 -	kfree(cs35l56->dsp.system_name);
 -
+ 	gpiod_set_value_cansleep(cs35l56->base.reset_gpio, 0);
  	regulator_bulk_disable(ARRAY_SIZE(cs35l56->supplies), cs35l56->supplies);
  }
  EXPORT_SYMBOL_NS_GPL(cs35l56_remove, SND_SOC_CS35L56_CORE);

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* linux-next: manual merge of the sound tree with the sound-asoc-fixes tree
@ 2023-10-30  0:41 Stephen Rothwell
  2023-10-30  0:44 ` Stephen Rothwell
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2023-10-30  0:41 UTC (permalink / raw)
  To: Takashi Iwai, Mark Brown, Liam Girdwood
  Cc: Chancel Liu, Linux Kernel Mailing List, Linux Next Mailing List,
	Srinivas Kandagatla

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

Hi all,

Today's linux-next merge of the sound tree got a conflict in:

  sound/soc/soc-pcm.c

between commit:

  f0220575e65a ("ASoC: soc-dai: add flag to mute and unmute stream during trigger")

from the sound-asoc-fixes tree and commit:

  3efcb471f871 ("ASoC: soc-pcm.c: Make sure DAI parameters cleared if the DAI becomes inactive")

from the sound tree.

I fixed it up (I just used the latter) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging.  You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* linux-next: manual merge of the sound tree with the sound-asoc-fixes tree
@ 2019-02-19  1:31 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2019-02-19  1:31 UTC (permalink / raw)
  To: Takashi Iwai, Mark Brown, Liam Girdwood
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Kuninori Morimoto

[-- Attachment #1: Type: text/plain, Size: 3172 bytes --]

Hi all,

Today's linux-next merge of the sound tree got a conflict in:

  sound/soc/generic/simple-card.c

between commit:

  19dd0777773a ("ASoC: simple-card: fixup refcount_t underflow")

from the sound-asoc-fixes tree and commit:

  c39291a76444 ("ASoC: simple-card: cleanup DAI link loop method - step2")

from the sound tree.

I fixed it up (I think - see below) and can carry the fix as necessary.
This is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc sound/soc/generic/simple-card.c
index 3fe34417ec89,08df261024cf..000000000000
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@@ -401,8 -426,76 +426,76 @@@ dai_link_of_err
  	return ret;
  }
  
- static int asoc_simple_card_parse_aux_devs(struct device_node *node,
- 					   struct simple_card_data *priv)
+ static int simple_for_each_link(struct simple_priv *priv,
+ 			struct link_info *li,
+ 			int (*func_noml)(struct simple_priv *priv,
+ 					 struct device_node *np,
+ 					 struct device_node *codec,
+ 					 struct link_info *li, bool is_top),
+ 			int (*func_dpcm)(struct simple_priv *priv,
+ 					 struct device_node *np,
+ 					 struct device_node *codec,
+ 					 struct link_info *li, bool is_top))
+ {
+ 	struct device *dev = simple_priv_to_dev(priv);
+ 	struct device_node *top = dev->of_node;
+ 	struct device_node *node;
+ 	bool is_top = 0;
+ 
+ 	/* Check if it has dai-link */
+ 	node = of_get_child_by_name(top, PREFIX "dai-link");
+ 	if (!node) {
 -		node = top;
++		node = of_node_get(top);
+ 		is_top = 1;
+ 	}
+ 
+ 	/* loop for all dai-link */
+ 	do {
+ 		struct asoc_simple_card_data adata;
+ 		struct device_node *codec;
+ 		struct device_node *np;
+ 		int num = of_get_child_count(node);
+ 		int ret;
+ 
+ 		/* get codec */
+ 		codec = of_get_child_by_name(node, is_top ?
+ 					     PREFIX "codec" : "codec");
+ 		if (!codec)
+ 			return -ENODEV;
+ 
+ 		of_node_put(codec);
+ 
+ 		/* get convert-xxx property */
+ 		memset(&adata, 0, sizeof(adata));
+ 		for_each_child_of_node(node, np)
+ 			simple_get_conversion(dev, np, &adata);
+ 
+ 		/* loop for all CPU/Codec node */
+ 		for_each_child_of_node(node, np) {
+ 			/*
+ 			 * It is DPCM
+ 			 * if it has many CPUs,
+ 			 * or has convert-xxx property
+ 			 */
+ 			if (num > 2 ||
+ 			    adata.convert_rate || adata.convert_channels)
+ 				ret = func_dpcm(priv, np, codec, li, is_top);
+ 			/* else normal sound */
+ 			else
+ 				ret = func_noml(priv, np, codec, li, is_top);
+ 
+ 			if (ret < 0)
+ 				return ret;
+ 		}
+ 
+ 		node = of_get_next_child(top, node);
+ 	} while (!is_top && node);
+ 
+ 	return 0;
+ }
+ 
+ static int simple_parse_aux_devs(struct device_node *node,
+ 				 struct simple_priv *priv)
  {
  	struct device *dev = simple_priv_to_dev(priv);
  	struct device_node *aux_node;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-30  0:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18  2:55 linux-next: manual merge of the sound tree with the sound-asoc-fixes tree Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2023-10-30  0:41 Stephen Rothwell
2023-10-30  0:44 ` Stephen Rothwell
2019-02-19  1:31 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).