Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1548154 > unrolled thread

Re: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list"

Started bySylwester Nawrocki <s.nawrocki@samsung.com>
First post2016-12-29 17:20 +0100
Last post2016-12-29 18:10 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [alsa-devel] [PATCH] Revert  "ASoC: core: replace aux_comp_list to component_dev_list" Sylwester Nawrocki <s.nawrocki@samsung.com> - 2016-12-29 17:20 +0100
    Re: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to  component_dev_list" Nikita Yushchenko <nikita.yoush@cogentembedded.com> - 2016-12-29 17:30 +0100
      Re: [alsa-devel] [PATCH] Revert  "ASoC: core: replace aux_comp_list to component_dev_list" Sylwester Nawrocki <s.nawrocki@samsung.com> - 2016-12-29 18:10 +0100

#1548154 — Re: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list"

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2016-12-29 17:20 +0100
SubjectRe: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list"
Message-ID<sTLAS-pI-35@gated-at.bofh.it>
On 12/29/2016 03:49 PM, Nikita Yushchenko wrote:
> This reverts commit 1a653aa44725668590b36bbe2d7fe4736a69f055 ("ASoC:
> core: replace aux_comp_list to component_dev_list").
> 
> That commit tries to remove card->aux_comp_list, using flagged entries
> in card->component_dev_list instead.
> 
> However, components are added to card->component_dev_list in
> soc_probe_component(), which is called for aux devices by
> soc_probe_aux_devices(). Before that commit, it traversed
> card->aux_comp_list and found aux devices added by soc_bind_aux_dev().
> After that commit, it traverses card->component_dev_list and finds no
> aux devices, because soc_probe_component() was not yet called for them.
> 
> Thus all aux devices are lost and any setup that needs them no longer
> works.

I think we can't simply revert that commit now, after commit

9178feb ASoC: add Component level suspend/resume
component_dev_list is also used for the component level suspend/resume,
if auxiliary devices would have been on a separate list they would be
missed in the suspend/resume sequences.

I run into same issue and posted a patch:

"ASoC: Fix binding and probing of auxiliary components".

--
Thanks,
Sylwester

[toc] | [next] | [standalone]


#1548176 — Re: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list"

FromNikita Yushchenko <nikita.yoush@cogentembedded.com>
Date2016-12-29 17:30 +0100
SubjectRe: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list"
Message-ID<sTLKy-tS-25@gated-at.bofh.it>
In reply to#1548154
>> This reverts commit 1a653aa44725668590b36bbe2d7fe4736a69f055 ("ASoC:
>> core: replace aux_comp_list to component_dev_list").
>>
>> That commit tries to remove card->aux_comp_list, using flagged entries
>> in card->component_dev_list instead.
>>
>> However, components are added to card->component_dev_list in
>> soc_probe_component(), which is called for aux devices by
>> soc_probe_aux_devices(). Before that commit, it traversed
>> card->aux_comp_list and found aux devices added by soc_bind_aux_dev().
>> After that commit, it traverses card->component_dev_list and finds no
>> aux devices, because soc_probe_component() was not yet called for them.
>>
>> Thus all aux devices are lost and any setup that needs them no longer
>> works.
> 
> I think we can't simply revert that commit now, after commit
> 
> 9178feb ASoC: add Component level suspend/resume
> component_dev_list is also used for the component level suspend/resume,
> if auxiliary devices would have been on a separate list they would be
> missed in the suspend/resume sequences.

I believe aux devices are on both lists.

[toc] | [prev] | [next] | [standalone]


#1548258

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2016-12-29 18:10 +0100
Message-ID<sTMnf-X2-11@gated-at.bofh.it>
In reply to#1548176
On 12/29/2016 05:20 PM, Nikita Yushchenko wrote:
> I believe aux devices are on both lists.

Indeed, you are right, they are on both lists.
So there should be no issues after reverting.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web