summaryrefslogtreecommitdiffstats
path: root/core.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-07 22:00:10 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:38 +1100
commit0acef1799beace4dd38d41bda9df77e84a5fe398 (patch)
treea7d85c3b49db82b2cd1789b49c8860a562a4805b /core.h
parentf834eb7b0799a4678639d2a9f71c1dc4352469ce (diff)
Remove blocksize from audiopath
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>
Diffstat (limited to 'core.h')
-rw-r--r--core.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/core.h b/core.h
index 493fc2b..d9b1382 100644
--- a/core.h
+++ b/core.h
@@ -28,12 +28,11 @@ typedef int (*avirt_audiopath_configure)(struct config_group *stream_group,
* AVIRT Audio Path info
*/
struct avirt_audiopath {
- const char *uid; /* Unique identifier */
- const char *name; /* Pretty name */
- unsigned int version[3]; /* Version - Major.Minor.Ext */
- struct snd_pcm_hardware *hw; /* ALSA PCM HW conf */
- struct snd_pcm_ops *pcm_ops; /* ALSA PCM op table */
- unsigned int blocksize; /* Audio frame size accepted */
+ const char *uid; /* Unique identifier */
+ const char *name; /* Pretty name */
+ unsigned int version[3]; /* Version - Major.Minor.Ext */
+ const struct snd_pcm_hardware *hw; /* ALSA PCM HW conf */
+ const struct snd_pcm_ops *pcm_ops; /* ALSA PCM op table */
avirt_audiopath_configure configure; /* Configure callback function */
void *context;
@@ -44,10 +43,10 @@ struct avirt_audiopath {
*/
struct avirt_stream {
char name[MAX_NAME_LEN]; /* Stream name */
- char map[MAX_NAME_LEN]; /* Stream Audio Path mapping */
- unsigned int channels; /* Stream channel count */
- unsigned int device; /* Stream PCM device no. */
- unsigned int direction; /* Stream direction */
+ char map[MAX_NAME_LEN]; /* Stream Audio Path mapping */
+ unsigned int channels; /* Stream channel count */
+ unsigned int device; /* Stream PCM device no. */
+ unsigned int direction; /* Stream direction */
struct config_item item; /* configfs item reference */
};
@@ -94,7 +93,7 @@ int avirt_stream_count(unsigned int direction);
* @return: The item's avirt_stream if successful, NULL otherwise
*/
static inline struct avirt_stream *
-avirt_stream_from_config_item(struct config_item *item)
+ avirt_stream_from_config_item(struct config_item *item)
{
return item ? container_of(item, struct avirt_stream, item) : NULL;
}