ALSA: dice: register the size of PCM period to AMDTP domain
This commit is a preparation to share the size of PCM period between PCM substreams on AMDTP streams in the same domain. At this time, the size of PCM period in PCM substream which starts AMDTP streams in the same domain is recorded. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20191007110532.30270-6-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
1d6a722c4a
commit
94c8101a27
@@ -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);
|
||||
err = snd_dice_stream_reserve_duplex(dice, 0, 0);
|
||||
if (err >= 0) {
|
||||
++dice->substreams_counter;
|
||||
err = snd_dice_stream_start_duplex(dice);
|
||||
|
Reference in New Issue
Block a user