]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit553a9a21501e8b24ce35f05052133f1aaa7156dc
treeecdf3e2ecdf8afc0712148baf9b24239c7baa733
parent474661ae43cabd789d2bd4be4c5e64b2ecd8597e
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