ALSA: firewire-lib: add data block processing layer for AM824 format
[firefly-linux-kernel-4.4.55.git] / sound / firewire / amdtp-am824.c
1 /*
2  * AM824 format in Audio and Music Data Transmission Protocol (IEC 61883-6)
3  *
4  * Copyright (c) 2015 Takashi Sakamoto <o-takashi@sakamocchi.jp>
5  *
6  * Licensed under the terms of the GNU General Public License, version 2.
7  */
8
9 #include "amdtp-am824.h"
10
11 #define CIP_FMT_AM              0x10
12
13 /**
14  * amdtp_am824_init - initialize an AMDTP stream structure to handle AM824
15  *                    data block
16  * @s: the AMDTP stream to initialize
17  * @unit: the target of the stream
18  * @dir: the direction of stream
19  * @flags: the packet transmission method to use
20  */
21 int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
22                      enum amdtp_stream_direction dir, enum cip_flags flags)
23 {
24         return amdtp_stream_init(s, unit, dir, flags, CIP_FMT_AM);
25 }
26 EXPORT_SYMBOL_GPL(amdtp_am824_init);