commit | 6fddc797878181c9bb16dff1034ad9de2b25902d | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Sun May 27 13:59:03 2018 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Mon May 28 11:53:04 2018 +0200 |
tree | ecdf3e2ecdf8afc0712148baf9b24239c7baa733 | |
parent | 9f88058e7830d5943091e044e7b2d58773e31bca [diff] |
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>