diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-11-29 00:59:15 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-29 20:07:47 +0100 |
commit | c50fb91f53626e3bdae3ffebfee586786f970f7c (patch) | |
tree | b22892f33dca379202cdffad945c8fb7fb1c8203 /sound/firewire/dice/dice-stream.c | |
parent | 6eb6c81eee2a6270b39ca02a446f3ccece24b6f8 (diff) |
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.c | 9 |
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) |