ALSA: usb-audio: Simplify PCM open/close callbacks
authorTakashi Iwai <tiwai@suse.de>
Sun, 27 May 2018 11:59:03 +0000 (13:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 May 2018 09:53:04 +0000 (11:53 +0200)
commit6fddc797878181c9bb16dff1034ad9de2b25902d
treeecdf3e2ecdf8afc0712148baf9b24239c7baa733
parent9f88058e7830d5943091e044e7b2d58773e31bca
ALSA: usb-audio: Simplify PCM open/close callbacks

The stream direction in open and close callbacks can be retrieved from
substream->direction, hence we don't have to stick with the unique PCM
ops hard-coded for each direction.  Rewrite the common open/close
callback functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c