|
@@ -301,7 +301,12 @@ struct fsi_master {
|
|
|
spinlock_t lock;
|
|
|
};
|
|
|
|
|
|
-static int fsi_stream_is_play(struct fsi_priv *fsi, struct fsi_stream *io);
|
|
|
+static inline int fsi_stream_is_play(struct fsi_priv *fsi,
|
|
|
+ struct fsi_stream *io)
|
|
|
+{
|
|
|
+ return &fsi->playback == io;
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* basic read write function
|
|
@@ -489,12 +494,6 @@ static void fsi_count_fifo_err(struct fsi_priv *fsi)
|
|
|
/*
|
|
|
* fsi_stream_xx() function
|
|
|
*/
|
|
|
-static inline int fsi_stream_is_play(struct fsi_priv *fsi,
|
|
|
- struct fsi_stream *io)
|
|
|
-{
|
|
|
- return &fsi->playback == io;
|
|
|
-}
|
|
|
-
|
|
|
static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi,
|
|
|
struct snd_pcm_substream *substream)
|
|
|
{
|