Age | Commit message (Collapse) | Author | Files | Lines |
|
After discussion at AGL F2F, it was suggested to have simpler readmes
that summarise the system/architecture/build process/etc.
Starting to dotpoint out that process with these readmes.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Reworked the original aloop implementation to have the PCM devices loop on themselves, and subscribe the the AVIRT system.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
We don't want to return inside the macro call necessarily. Some PCM cbs require differing return values.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
These should be done in the Audio Path
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Remove hardcoded test Audio Path UID, and use dynamic Audio Path UID
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
When creating the PCMs we need information regarding the stream's mapping. For the loopback, we need to add both playback and capture substreams.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
The loopback audio path might need to add it's own controls.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
The trailing \n was improperly being stored to the 'map' variable
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
This is no longer needed in AVIRT, since it is only actually used for the ADSP Audio Path.
Clean up white space, add function documentation, remove out of place debug prints
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Sanity guard the sound card string buffers with strncpy
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Sound card was not being free'd properly on module exit.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Add initial bash script for configuring AVIRT via the configfs Linux filesystem
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Add additional callbacks for audio path configuring, after card has been sealed.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Add missing static declaration to pcm_ack callback function
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Since playback and capture streams are not always assigned, we do not want to
error when one or the other is not present for free'ing.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
This makes for a more organized function/variable naming convention
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Remove unnecessary extra memory allocation with the old config structures. We can store the snd_pcm pointer, which contains lots of info already.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
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>
|
|
The memory originally being allocated was not for a *, but for a **, hence
the kernel crashes due to memory not being adequately allocated.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
No longer any need for the configure_pcm function in it's current form.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Remove leftover debug prints that are no longer needed.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Remove the avirt_alsa_driver
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Remove remnant of earlier implementation
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
buffersize is only needed by the ADSP Audio Path driver, so this has been
migrated there.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Substreams are actually allocated by the PCM middle layer, so we do not need to do this here
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
This is not required any longer
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Check for NULL pointers before free'ing memory on cleanup of AVIRT
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
This wasn't being initialised properly, and NULL audiopaths were not being detected.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Loopback currently reads from dma_area but the initial copy from playback to capture has not been implemented.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Committing debug changes and loopback changes
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Added more detailed printing to loopback, alsa-pcm. Updated load and unload functions
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Added initial implementation with callback operating on timer.
NOTE: Copying from PB to C is not yet implemented
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Add required changes to Makefile and KConfig to implement building of
loopback audio path as part of standard make execution.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Added a skeleton for the loopback audiopath.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
This has been removed as of Linux kernel 4.18
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
This will work for both AGL builds and non-AGL builds
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Mention the Linux fork on Fiberdyne GitHub for building in-tree
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
|
|
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Follow readme for building in/out of tree for Ubuntu/AGL/etc.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
|
|
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
|
|
|