]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: firewire-lib: rename 'amdtp' to 'amdtp-stream' to prepare for functional separation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 19 Sep 2015 02:21:54 +0000 (11:21 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Sep 2015 10:47:11 +0000 (12:47 +0200)
In later commit, data block processing layer will be newly added. This
layer will be named as 'amdtp-am824'.

This commit renames current amdtp file to amdtp-stream, to distinguish it
from the new layer.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/Makefile
sound/firewire/amdtp-stream.c [moved from sound/firewire/amdtp.c with 99% similarity]
sound/firewire/amdtp-stream.h [moved from sound/firewire/amdtp.h with 100% similarity]
sound/firewire/bebob/bebob.h
sound/firewire/dice/dice.h
sound/firewire/fcp.c
sound/firewire/fireworks/fireworks.h
sound/firewire/oxfw/oxfw.h

index 8b37f084b2aba800fb4c82a34089b4957609b2d2..102e342ddc38e82149482c253adc6dc829618e19 100644 (file)
@@ -1,5 +1,5 @@
 snd-firewire-lib-objs := lib.o iso-resources.o packets-buffer.o \
-                        fcp.o cmp.o amdtp.o
+                        fcp.o cmp.o amdtp-stream.o
 snd-oxfw-objs := oxfw.o
 snd-isight-objs := isight.o
 snd-scs1x-objs := scs1x.o
similarity index 99%
rename from sound/firewire/amdtp.c
rename to sound/firewire/amdtp-stream.c
index b251f4b2b51c425bf5656d2ae869193a80b5fb41..ec65ebf8f04a3ab6fce76ff0e208c0e5142f9131 100644 (file)
@@ -15,7 +15,7 @@
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/rawmidi.h>
-#include "amdtp.h"
+#include "amdtp-stream.h"
 
 #define TICKS_PER_CYCLE                3072
 #define CYCLES_PER_SECOND      8000
@@ -210,8 +210,8 @@ int amdtp_stream_set_parameters(struct amdtp_stream *s,
 
        midi_channels = DIV_ROUND_UP(midi_ports, 8);
 
-       if (WARN_ON(amdtp_stream_running(s)) |
-           WARN_ON(pcm_channels > AMDTP_MAX_CHANNELS_FOR_PCM) |
+       if (WARN_ON(amdtp_stream_running(s)) ||
+           WARN_ON(pcm_channels > AMDTP_MAX_CHANNELS_FOR_PCM) ||
            WARN_ON(midi_channels > AMDTP_MAX_CHANNELS_FOR_MIDI))
                return -EINVAL;
 
index d23caca7f369076fe5f9bd7c76c01f5c76e259ab..72a1c5e404fd821d34245e13dae41436c96744d8 100644 (file)
@@ -31,7 +31,7 @@
 #include "../fcp.h"
 #include "../packets-buffer.h"
 #include "../iso-resources.h"
-#include "../amdtp.h"
+#include "../amdtp-stream.h"
 #include "../cmp.h"
 
 /* basic register addresses on DM1000/DM1100/DM1500 */
index ecf5dc86223544ed848fcfa9918630e74f17e7f9..29578c19e9778d6dce9f58736086696cf0f7bbf6 100644 (file)
@@ -34,7 +34,7 @@
 #include <sound/pcm_params.h>
 #include <sound/rawmidi.h>
 
-#include "../amdtp.h"
+#include "../amdtp-stream.h"
 #include "../iso-resources.h"
 #include "../lib.h"
 #include "dice-interface.h"
index 0619597e3a3f250b5e5b40d07d6c0e68de1a8ccb..cce19768f43d0a3f32c9d3c0187c1077f5bbfeab 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/delay.h>
 #include "fcp.h"
 #include "lib.h"
-#include "amdtp.h"
+#include "amdtp-stream.h"
 
 #define CTS_AVC 0x00
 
index 084d414b228cf425dc99440cc081d65459bbe175..d54f17134495ced5ce41bfa5a858c965c5c98295 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "../packets-buffer.h"
 #include "../iso-resources.h"
-#include "../amdtp.h"
+#include "../amdtp-stream.h"
 #include "../cmp.h"
 #include "../lib.h"
 
index cace5ad4fe76134a0fb4ece9a27f2c321021d998..2c3d20b61cbe00748bf780b1bf7dc714719eb656 100644 (file)
@@ -28,7 +28,7 @@
 #include "../fcp.h"
 #include "../packets-buffer.h"
 #include "../iso-resources.h"
-#include "../amdtp.h"
+#include "../amdtp-stream.h"
 #include "../cmp.h"
 
 struct device_info {