Skip to content
Snippets Groups Projects
  1. May 14, 2021
  2. Aug 18, 2020
  3. Jul 08, 2020
  4. Dec 10, 2019
  5. Oct 15, 2019
  6. Sep 03, 2019
  7. Aug 09, 2019
  8. Jul 10, 2019
  9. Jun 06, 2019
  10. May 24, 2019
    • Jon Hunter's avatar
      ASoC: simple-card: Restore original configuration of DAI format · 4819d062
      Jon Hunter authored
      
      Revert commit 069d037a ("ASoC: simple-card: Fix configuration of
      DAI format"). During further review, it turns out that the actual issue
      was caused by an incorrectly formatted device-tree node describing the
      soundcard.
      
      The following is incorrect because the simple-audio-card
      'bitclock-master' and 'frame-master' properties should not reference the
      actual codec phandle ...
      
      	sound {
      		compatible = "simple-audio-card";
      		...
      	=>	simple-audio-card,bitclock-master = <&codec>;
      	=>	simple-audio-card,frame-master = <&codec>;
      		...
      
      		simple-audio-card,cpu {
      			sound-dai = <&xxx>;
      		};
      
      		simple-audio-card,codec {
      	=>		sound-dai = <&codec>;
      		};
      	};
      
      Rather, these properties should reference the phandle to the
      'simple-audio-card,codec' property as shown below ...
      
      	sound {
      		compatible = "simple-audio-card";
      		...
      	=>	simple-audio-card,bitclock-master = <&codec>;
      	=>	simple-audio-card,frame-master = <&codec>;
      		...
      
      		simple-audio-card,cpu {
      			sound-dai = <&xxx>;
      		};
      
      	=>	codec: simple-audio-card,codec { /* simple-card wants here */
      			sound-dai = <&xxx>;	 /* not here */
      		};
      	};
      
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      4819d062
  11. May 20, 2019
    • Jon Hunter's avatar
      ASoC: simple-card: Fix configuration of DAI format · 069d037a
      Jon Hunter authored
      
      When configuring a codec to be both bit-clock and frame-master, it was
      found that the codec was always configured as bit-clock and frame-slave.
      Looking at the simple_dai_link_of() function there appears to be two
      problems with the configuration of the DAI format, which are ...
      
      1. The function asoc_simple_parse_daifmt() is called before the function
         asoc_simple_parse_codec() and this means that the device-tree node
         for the codec has not been parsed yet, which is needed by the
         function asoc_simple_parse_daifmt() to determine who is the codec.
      2. The phandle passed to asoc_simple_parse_daifmt() is the phandle to
         the 'codec' node and not the phandle of the actual codec defined by
         the 'sound-dai' property under the 'codec' node.
      
      Fix the above by moving the call to asoc_simple_parse_daifmt() after the
      the call to asoc_simple_parse_codec() and pass the phandle for the codec
      to asoc_simple_parse_daifmt().
      
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      069d037a
    • Amir Goldstein's avatar
      ASoC: rename functions that pollute the simple_xxx namespace · b0a821da
      Amir Goldstein authored
      
      include/linux/fs.h defines a bunch of simple fs helpers, (e.g.
      simple_rename) and we intend to add an fs helper named simple_remove.
      
      Rename the ASoC driver static functions, so they will not collide with
      the upcoming fs helper function name.
      
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Mark Brown <broonie@kernel.org>
      Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      b0a821da
  12. Apr 26, 2019
  13. Apr 04, 2019
    • Kuninori Morimoto's avatar
      ASoC: simple-card: don't select DPCM via simple-audio-card · 42bf029a
      Kuninori Morimoto authored
      
      commit da215354 ("ASoC: simple-card: merge simple-scu-card")
      merged simple-scu-audio-card which can handle DPCM into
      simple-audio-card.
      
      By this patch, the judgement to select "normal sound card" or
      "DPCM sound card" is based on its CPU/Codec DAI count.
      But, because of it, existing "simple-audio-card" user who is
      assuming "normal sound card" might select DPCM unintentionally.
      
      To solve this issue, this patch allows "simple-audio-card" user
      can select "normal sound card", and "simple-scu-audio-card" user
      can select both "normal sound card" and "DPCM sound card".
      This keeps compatibility collectry.
      
      Fixes: da215354 ("ASoC: simple-card: merge simple-scu-card")
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      42bf029a
  14. Mar 21, 2019
  15. Mar 18, 2019
  16. Feb 20, 2019
  17. Feb 18, 2019
    • Kuninori Morimoto's avatar
      ASoC: simple-card: fixup refcount_t underflow · 19dd0777
      Kuninori Morimoto authored
      
      commit da215354 ("ASoC: simple-card: merge simple-scu-card")
      merged simple-card and simple-scu-card. Then it had refcount
      underflow bug. This patch fixup it.
      We will get below error without this patch.
      
      	OF: ERROR: Bad of_node_put() on /sound
      	CPU: 3 PID: 237 Comm: kworker/3:1 Not tainted 5.0.0-rc6+ #1514
      	Hardware name: Renesas H3ULCB Kingfisher board based on r8a7795 ES2.0+ (DT)
      	Workqueue: events deferred_probe_work_func
      	Call trace:
      	 dump_backtrace+0x0/0x150
      	 show_stack+0x24/0x30
      	 dump_stack+0xb0/0xec
      	 of_node_release+0xd0/0xd8
      	 kobject_put+0x74/0xe8
      	 of_node_put+0x24/0x30
      	 __of_get_next_child+0x50/0x70
      	 of_get_next_child+0x40/0x68
      	 asoc_simple_card_probe+0x604/0x730
      	 platform_drv_probe+0x58/0xa8
      	 ...
      Reported-by: default avatarVicente Bergas <vicencb@gmail.com>
      Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      19dd0777
    • Daniel Baluta's avatar
      ASoC: simple-card: Fix refcount underflow · 461d854c
      Daniel Baluta authored
      of_get_child_by_name() takes a reference we'll need to drop
      later so when we substitute in top we need to take a reference
      as well as just assigning.
      
      Without this patch we hit the following error:
      
      [    1.246852] OF: ERROR: Bad of_node_put() on /sound-wm8524
      [    1.262261] Hardware name: NXP i.MX8MQ EVK (DT)
      [    1.266807] Workqueue: events deferred_probe_work_func
      [    1.271950] Call trace:
      [    1.274406]  dump_backtrace+0x0/0x158
      [    1.278074]  show_stack+0x14/0x20
      [    1.281396]  dump_stack+0xa8/0xcc
      [    1.284717]  of_node_release+0xb0/0xc8
      [    1.288474]  kobject_put+0x74/0xf0
      [    1.291879]  of_node_put+0x14/0x28
      [    1.295286]  __of_get_next_child+0x44/0x70
      [    1.299387]  of_get_next_child+0x3c/0x60
      [    1.303315]  simple_for_each_link+0x1dc/0x230
      [    1.307676]  simple_probe+0x80/0x540
      [    1.311256]  platform_drv_probe+0x50/0xa0
      
      This patch is based on an earlier version posted by Kuninori Morimoto
      and commit message includes explanations from Mark Brown.
      
      https://patchwork.kernel.org/patch/10814255/
      
      
      
      Reported-by: default avatarVicente Bergas <vicencb@gmail.com>
      Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      461d854c
  18. Jan 21, 2019
  19. Jan 03, 2019
  20. Dec 14, 2018
Loading