aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 09:44:46 -0400
committerTakashi Iwai <tiwai@suse.de>2014-05-26 08:12:35 -0400
commit2b3fc456febf540cd9bbf4c8cb4fba0dd0648df3 (patch)
treef70678f56050fc89d3cbdad573d3770ab63f239e /sound/firewire/amdtp.h
parent4b7da117e5e1cdef2cb5bf4d11c1898ca8ad743a (diff)
ALSA: firewire-lib: Add support for AMDTP in-stream and PCM capture
For capturing PCM, this commit adds the functionality to handle in-stream. This is also applied for dual-wire mode. Currently, capturing 32bit samples are supported. When the sequence of in-packet has discontinuity of dbc, in-stream isn't handled and amdtp_streaming_error() returns true. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp.h')
-rw-r--r--sound/firewire/amdtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h
index 019134edb9f7..c831aaa2a811 100644
--- a/sound/firewire/amdtp.h
+++ b/sound/firewire/amdtp.h
@@ -41,6 +41,8 @@ enum cip_sfc {
41 CIP_SFC_COUNT 41 CIP_SFC_COUNT
42}; 42};
43 43
44#define AMDTP_IN_PCM_FORMAT_BITS SNDRV_PCM_FMTBIT_S32
45
44#define AMDTP_OUT_PCM_FORMAT_BITS (SNDRV_PCM_FMTBIT_S16 | \ 46#define AMDTP_OUT_PCM_FORMAT_BITS (SNDRV_PCM_FMTBIT_S16 | \
45 SNDRV_PCM_FMTBIT_S32) 47 SNDRV_PCM_FMTBIT_S32)
46 48