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
@@ -232,6 +232,8 @@ static int snd_line6_capture_open(struct snd_pcm_substream *substream)
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
line6_pcm_acquire(line6pcm, LINE6_STREAM_CAPTURE_HELPER, false);
|
||||
|
||||
runtime->hw = line6pcm->properties->capture_hw;
|
||||
return 0;
|
||||
}
|
||||
@@ -239,6 +241,9 @@ static int snd_line6_capture_open(struct snd_pcm_substream *substream)
|
||||
/* close capture callback */
|
||||
static int snd_line6_capture_close(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
|
||||
|
||||
line6_pcm_release(line6pcm, LINE6_STREAM_CAPTURE_HELPER);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user