diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-04-25 15:44:55 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-26 14:22:14 +0200 |
commit | c68a1c6584d066d0f2b7aa2117d2eddce2d01def (patch) | |
tree | 2493f740847f17778ccf1a41430bb5d6291d84ec /sound/firewire/cmp.h | |
parent | ALSA: firewire-lib: Rename macros, variables and functions for CMP (diff) | |
download | linux-c68a1c6584d066d0f2b7aa2117d2eddce2d01def.tar.xz linux-c68a1c6584d066d0f2b7aa2117d2eddce2d01def.zip |
ALSA: firewire-lib: Add 'direction' member to 'cmp_connection' structure
This patch adds 'direction' member to 'cmp_connection' structure to indicate
the direction of connection. This patch also adds 'direction' argument to
cmp_connection_init() function to determine the direction.
The cmp_connection_init() function is exported and used in snd-firewire-speakers
so this patch also affect it.
This patch just add them. Actual implementation will be done by followed
patches.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/cmp.h')
-rw-r--r-- | sound/firewire/cmp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/firewire/cmp.h b/sound/firewire/cmp.h index 2320cd44d499..9b58448d5791 100644 --- a/sound/firewire/cmp.h +++ b/sound/firewire/cmp.h @@ -7,6 +7,11 @@ struct fw_unit; +enum cmp_direction { + CMP_INPUT = 0, + CMP_OUTPUT, +}; + /** * struct cmp_connection - manages an isochronous connection to a device * @speed: the connection's actual speed @@ -26,10 +31,12 @@ struct cmp_connection { __be32 last_pcr_value; unsigned int pcr_index; unsigned int max_speed; + enum cmp_direction direction; }; int cmp_connection_init(struct cmp_connection *connection, struct fw_unit *unit, + enum cmp_direction direction, unsigned int pcr_index); void cmp_connection_destroy(struct cmp_connection *connection); |