aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/dice/dice-stream.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-11-29 00:59:15 +0900
committerTakashi Iwai <tiwai@suse.de>2014-11-29 20:07:47 +0100
commitc50fb91f53626e3bdae3ffebfee586786f970f7c (patch)
treeb22892f33dca379202cdffad945c8fb7fb1c8203 /sound/firewire/dice/dice-stream.c
parentALSA: dice: Split stream functionality into a file (diff)
downloadlinux-dev-c50fb91f53626e3bdae3ffebfee586786f970f7c.tar.xz
linux-dev-c50fb91f53626e3bdae3ffebfee586786f970f7c.zip
ALSA: dice: Split PCM functionality into a file
This commit adds a file and move some codes related to PCM functionality. Currently PCM playback is supported. PCM capture will be supported in followed commits. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/dice/dice-stream.c')
-rw-r--r--sound/firewire/dice/dice-stream.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/firewire/dice/dice-stream.c b/sound/firewire/dice/dice-stream.c
index c25b9fb39d1f..4c4c4fff6272 100644
--- a/sound/firewire/dice/dice-stream.c
+++ b/sound/firewire/dice/dice-stream.c
@@ -96,10 +96,11 @@ error:
void snd_dice_stream_stop_packets(struct snd_dice *dice)
{
- if (amdtp_stream_running(&dice->rx_stream)) {
- snd_dice_transaction_clear_enable(dice);
- amdtp_stream_stop(&dice->rx_stream);
- }
+ if (!amdtp_stream_running(&dice->rx_stream))
+ return;
+
+ snd_dice_transaction_clear_enable(dice);
+ amdtp_stream_stop(&dice->rx_stream);
}
void snd_dice_stream_stop(struct snd_dice *dice)