summaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 15:44:46 +0200
committerTakashi Iwai <tiwai@suse.de>2014-05-26 14:12:35 +0200
commit2b3fc456febf540cd9bbf4c8cb4fba0dd0648df3 (patch)
treef70678f56050fc89d3cbdad573d3770ab63f239e /sound/firewire/amdtp.h
parentALSA: firewire-lib: Split some codes into functions to reuse for both streams (diff)
downloadlinux-2b3fc456febf540cd9bbf4c8cb4fba0dd0648df3.tar.xz
linux-2b3fc456febf540cd9bbf4c8cb4fba0dd0648df3.zip
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 {
CIP_SFC_COUNT
};
+#define AMDTP_IN_PCM_FORMAT_BITS SNDRV_PCM_FMTBIT_S32
+
#define AMDTP_OUT_PCM_FORMAT_BITS (SNDRV_PCM_FMTBIT_S16 | \
SNDRV_PCM_FMTBIT_S32)