You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SKL+: need better split between HDA and non-HDA support #254
The current code includes too many parts and variables from the HDAC library when SND_SOC_SOF_HDA is not defined.
Good revisit. We did this in a tight schedule, it's time to refine it now.
See below compile-tested code only to check what is really needed
diff --git a/sound/soc/sof/intel/hda-bus.c b/sound/soc/sof/intel/hda-bus.c
index 759f1e61a030..50b0a55ce655 100644
--- a/sound/soc/sof/intel/hda-bus.c+++ b/sound/soc/sof/intel/hda-bus.c@@ -80,29 +80,30 @@ static const struct hdac_io_ops io_ops = {
int sof_hda_bus_init(struct hdac_bus *bus, struct device *dev,
const struct hdac_ext_bus_ops *ext_ops)
{
- static int idx;+ static int idx; // Is this function called multiple times?
I think this is for bus index, theoretically, it can be called multiple times then we have bus 0, bus 1, ...
But I never come across it yet. @mengdonglin please correct me if wrong.
just checked and found the bus->idx initialization is already supported(static and increased for each x_init() calling), the decent decreasing(freeing) of this is needed, let me do a patch for it.
Activity
keyonjie commentedon Nov 8, 2018
Good revisit. We did this in a tight schedule, it's time to refine it now.
I think this is for bus index, theoretically, it can be called multiple times then we have bus 0, bus 1, ...
But I never come across it yet. @mengdonglin please correct me if wrong.
We can even move this into HDA defined block also.
Just went though all these members, agree we can handle them only when HDA defined.
We can even move 'mutex_init(&bus->lock);' into this block also.
good catch, let's do freeing it in hda_dsp_stream_free().
@plbossart Thanks for reviewing this part. let me do a patch to fix it.
keyonjie commentedon Nov 8, 2018
@plbossart PR #257 is for this, please help review.
mengdonglin commentedon Nov 22, 2018
@plbossart @keyonjie It seems this feature can be closed since PR #257 has been merged.
plbossart commentedon Nov 25, 2018
No, I would still like to see how we remove the static variable for the initialization of bus->idx
plbossart commentedon Dec 6, 2018
@keyonjie can you look into this bus->idx initialization, this is the only part that needs to be cleaned.
wenqingfu commentedon Apr 1, 2019
@keyonjie do you agree with #300 ? Can you please follow up to finish up this one?
keyonjie commentedon Apr 2, 2019
just checked and found the bus->idx initialization is already supported(static and increased for each x_init() calling), the decent decreasing(freeing) of this is needed, let me do a patch for it.
keyonjie commentedon Apr 2, 2019
@plbossart how do you think about something like this:
plbossart commentedon Jun 10, 2019
closing, this was fixed by PR#862
usb: cdns3: should not use the same dev_id for shared interrupt handler
selftest/bpf: Add various selftests for program limits
selftests/bpf: Test bpf_mprog query API via libbpf and raw syscall
selftests/bpf: Test query on empty mprog and pass revision into attach
net/mlx5: Use mlx5_ipsec_rx_status_destroy to correctly delete status…
selftests/bpf: Add test for detachment on empty mprog entry
selftests/bpf: Add various more tcx test cases
selftests/bpf: Add uprobe_multi usdt bench test
selftests/bpf: Add additional mprog query test coverage