ALSA: dice: Change the way to start stream

Streaming functionality can start streams when rate is given but currently
some codes are in PCM functionality.

This commit changes the way to start stream and add some arrangement
to make it easy to understand the way.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Sakamoto
2014-12-09 00:10:35 +09:00
committed by Takashi Iwai
parent bf35df66f1
commit 288a8d0cb0
4 changed files with 152 additions and 140 deletions

View File

@@ -304,12 +304,8 @@ static void dice_remove(struct fw_unit *unit)
snd_card_disconnect(dice->card);
mutex_lock(&dice->mutex);
snd_dice_stream_destroy(dice);
mutex_unlock(&dice->mutex);
snd_card_free_when_closed(dice->card);
}