diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-05-02 13:16:42 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-02 17:01:54 +0300 |
commit | b60152f750ca22ddee20954228d1bcbf45c936f7 (patch) | |
tree | 63bbac659351138217f48eb86d6f6c3e36c75c2c /sound/firewire/dice/dice.c | |
parent | b7fd3d64e763c381de7ed57217fda3c720a98aad (diff) | |
download | linux-b60152f750ca22ddee20954228d1bcbf45c936f7.tar.xz |
ALSA: dice: cache stream formats at current mode of sampling transmission frequency
In former commits, proxy structure get members for cache of stream
formats. This commit fills the cache with stream formats at current mode
of sampling transmission frequency.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/dice/dice.c')
-rw-r--r-- | sound/firewire/dice/dice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/firewire/dice/dice.c b/sound/firewire/dice/dice.c index 96bb01b6b751..002f3f3cbc6a 100644 --- a/sound/firewire/dice/dice.c +++ b/sound/firewire/dice/dice.c @@ -199,6 +199,10 @@ static void do_registration(struct work_struct *work) dice_card_strings(dice); + err = snd_dice_stream_detect_current_formats(dice); + if (err < 0) + goto error; + err = snd_dice_stream_init_duplex(dice); if (err < 0) goto error; |