diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-09-20 12:09:20 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:33 +1100 |
commit | 3786b607d4dd5e738cbe491dbfb03c2283e74358 (patch) | |
tree | 83f150ee7eee8ab42d827f6a1b3c5af68ac9fcbd /dummy | |
parent | 99a09bc4fe16d275b2bf839cb8f37192b2235e24 (diff) |
Add 'uid' field to AP, store AP in PCM private data, fix helper macros
We want to use a UID when registering APs, that must start with "ap_", and acts as a unique identifier for each AP.
To move forward with the adoption of routing PCMs to differing APs, we now store the AP in the PCM private data - set at pcm_open.
A fix to the helper macros now allows additional args to be passed in for inclusion to the debug string
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'dummy')
-rw-r--r-- | dummy/dummy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dummy/dummy.c b/dummy/dummy.c index 54d4dcc..fa9dd41 100644 --- a/dummy/dummy.c +++ b/dummy/dummy.c @@ -244,6 +244,7 @@ static struct snd_pcm_hardware dummyap_hw = { }; static struct avirt_audiopath dummyap_module = { + .uid = "ap_dummy", .name = "Dummy Audio Path", .version = { 0, 0, 1 }, .hw = &dummyap_hw, |