Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

[RFC] generic effect type with fir and iir eq#68

Merged
lgirdwood merged 2 commits intothesofproject:masterfrom
juimonen:eq_test
Sep 25, 2018
Merged

[RFC] generic effect type with fir and iir eq#68
lgirdwood merged 2 commits intothesofproject:masterfrom
juimonen:eq_test

Conversation

@juimonen
Copy link
Copy Markdown

This PR has also seppo's patch which is not merged yet... So this PR concerns only the top most commit

Comment thread topology/m4/eq.m4 Outdated
@@ -1,43 +0,0 @@
divert(-1)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these patches should be squashed ?

Comment thread topology/m4/eq_fir.m4 Outdated
` tuples "'N_EQ_FIR($1)`_tuples_str_type"'
`}'
`SectionData."'N_EQ_FIR($1)`_data_bytes" {'
` bytes "0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x01,0x00,0x01,0x00,'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC SectionData can also use files as input (i.e. it can read binary coefficients), this way we could specify the filename to the N_EQ_FIR as an argument.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we discussed with Seppo this would be better/nicer than copying octave script output here. I tested it but for some reason could not get the env var working in my shell, so alsatplg was looking the file from some /usr/foo/bar/etc. But yeah, that was the idea.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, we need to patch alsatplg, sounds like a bug - we should be able to use an ENV variable or cmd line to specify "include" folders for files. This will need upstreamed to alsa dev mailing list and will need commit ID updated on our Dockerfile once merged.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, this was just my stupidity, now got the file working with with ALSA_CONFIG_TPLG=.
I still have to test this, but will probably update this method

@juimonen juimonen force-pushed the eq_test branch 4 times, most recently from a749bda to f88d72d Compare September 19, 2018 10:32
@ranj063
Copy link
Copy Markdown
Collaborator

ranj063 commented Sep 25, 2018

@juimonen what is the status on this one? I believe this one is needed for thekernel patches that were merged.

singalsu and others added 2 commits September 25, 2018 08:26
This patch adds EQ, bytecontrol, and EQ+volume pipeline m4 macros and an
enhanced topology with EQ for UP2 + HiFiberry. There is not yet FIR/IIR
type select. The EQ type is currently hardcoded into kernel.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Adding type string to widget data allows the driver to identify
different effects. As an example use this in the equalizer.

Also modify equalizer to pass default parameters in control's
private data.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
@juimonen
Copy link
Copy Markdown
Author

@ranj063 I've rebased to master. should be fine now. I can't see anymore Liam's comment, but I guess it was about merging the commits. I kept them separately because the first one was mostly Ranjani's and Seppo's work.

@lgirdwood lgirdwood merged commit 57b5212 into thesofproject:master Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants