summaryrefslogtreecommitdiffstats
path: root/sound/firewire/oxfw/oxfw-stream.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2020-01-13 08:34:17 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-13 10:42:14 +0100
commit06a42a74a0e704458754bdc5f29cf62cc1ce4b53 (patch)
tree7d1a1e0670d2ac9ec5fb5db4da53fd02db676acd /sound/firewire/oxfw/oxfw-stream.c
parentALSA: oxfw: use ENXIO for not-supported cases (diff)
downloadlinux-06a42a74a0e704458754bdc5f29cf62cc1ce4b53.tar.xz
linux-06a42a74a0e704458754bdc5f29cf62cc1ce4b53.zip
ALSA: oxfw: don't add MIDI/PCM interface when packet streaming is unavailable
Stanton SCS.1d doesn't support packet streaming even if it has plugs for isochronous communication. This commit is a preparation for this case. The 'has_input' member is added to specific structure, and MIDI/PCM interfaces are not added when the member is false. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20200113073418.24622-3-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/oxfw/oxfw-stream.c')
-rw-r--r--sound/firewire/oxfw/oxfw-stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/oxfw/oxfw-stream.c b/sound/firewire/oxfw/oxfw-stream.c
index 692324670c78..36c3dd84d189 100644
--- a/sound/firewire/oxfw/oxfw-stream.c
+++ b/sound/firewire/oxfw/oxfw-stream.c
@@ -772,6 +772,8 @@ int snd_oxfw_stream_discover(struct snd_oxfw *oxfw)
if (formation.midi > 0)
oxfw->midi_output_ports = 1;
}
+
+ oxfw->has_input = true;
}
end:
return err;