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:

committed by
Takashi Iwai

parent
bf35df66f1
commit
288a8d0cb0
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user