ALSA: line6: Add LINE6_CAP_IN_NEEDS_OUT, a void playback stream during capture
E.g. POD X3 seems to require playback data to be sent to it to generate capture data. Otherwise the device stalls and doesn't send any more capture data until it's reset. Signed-off-by: Andrej Krutak <dev@andree.sk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

کامیت شده توسط
Takashi Iwai

والد
97d78acfb8
کامیت
f56742cc41
@@ -177,7 +177,7 @@ static int snd_toneport_monitor_put(struct snd_kcontrol *kcontrol,
|
||||
line6pcm->volume_monitor = ucontrol->value.integer.value[0];
|
||||
|
||||
if (line6pcm->volume_monitor > 0) {
|
||||
err = line6_pcm_acquire(line6pcm, LINE6_STREAM_MONITOR);
|
||||
err = line6_pcm_acquire(line6pcm, LINE6_STREAM_MONITOR, true);
|
||||
if (err < 0) {
|
||||
line6pcm->volume_monitor = 0;
|
||||
line6_pcm_release(line6pcm, LINE6_STREAM_MONITOR);
|
||||
@@ -246,7 +246,7 @@ static void toneport_start_pcm(unsigned long arg)
|
||||
struct usb_line6_toneport *toneport = (struct usb_line6_toneport *)arg;
|
||||
struct usb_line6 *line6 = &toneport->line6;
|
||||
|
||||
line6_pcm_acquire(line6->line6pcm, LINE6_STREAM_MONITOR);
|
||||
line6_pcm_acquire(line6->line6pcm, LINE6_STREAM_MONITOR, true);
|
||||
}
|
||||
|
||||
/* control definition */
|
||||
|
مرجع در شماره جدید
Block a user