diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-10-17 18:54:17 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-10-18 05:35:47 +0300 |
commit | ecb40fd2c8afdb66da7e309b43c6dc90e419c2dc (patch) | |
tree | 7078e1abf238e3eef343e82b431b1144a718aac9 /sound/firewire/dice/dice-midi.c | |
parent | 3299d2a0f74c0774da0672d0bc54741da4bbda6e (diff) | |
download | linux-ecb40fd2c8afdb66da7e309b43c6dc90e419c2dc.tar.xz |
ALSA: dice: share PCM buffer size for both direction
This commit allows ALSA dice driver to share PCM buffer size for both
capture and playback PCM substream. When AMDTP domain starts for one
of the PCM substream, buffer size of the PCM substream is stores to
AMDTP domain structure. Some AMDTP streams have already run with the
buffer size when another PCM substream starts, therefore the PCM
substream has a constraint to its buffer size.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191017155424.885-6-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/dice/dice-midi.c')
-rw-r--r-- | sound/firewire/dice/dice-midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/dice/dice-midi.c b/sound/firewire/dice/dice-midi.c index 69c3c06bd7aa..4c2998034313 100644 --- a/sound/firewire/dice/dice-midi.c +++ b/sound/firewire/dice/dice-midi.c @@ -17,7 +17,7 @@ static int midi_open(struct snd_rawmidi_substream *substream) mutex_lock(&dice->mutex); - err = snd_dice_stream_reserve_duplex(dice, 0, 0); + err = snd_dice_stream_reserve_duplex(dice, 0, 0, 0); if (err >= 0) { ++dice->substreams_counter; err = snd_dice_stream_start_duplex(dice); |