diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2021-10-15 11:08:17 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-10-15 18:52:07 +0300 |
commit | 90b28f3bb85c39b11daf29d473ef21a935c70ec5 (patch) | |
tree | 9f9c729a02102e59a6932e5503ac76369240d8db /sound/firewire/motu/amdtp-motu.c | |
parent | bea36afa102e37d5e4d9ea519f14d1c92d512e45 (diff) | |
download | linux-90b28f3bb85c39b11daf29d473ef21a935c70ec5.tar.xz |
ALSA: firewire-motu: add message parser for meter information in command DSP model
Some of MOTU models allows software to configure their DSP parameters by
command included in asynchronous transaction. The models multiplex messages
for hardware meters into isochronous packet as well as PCM frames. For
convenience, I call them as 'command DSP' model.
This patch adds message parser for them to gather hardware meter
information.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20211015080826.34847-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu/amdtp-motu.c')
-rw-r--r-- | sound/firewire/motu/amdtp-motu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/motu/amdtp-motu.c b/sound/firewire/motu/amdtp-motu.c index 605b831492ac..3ea91e281147 100644 --- a/sound/firewire/motu/amdtp-motu.c +++ b/sound/firewire/motu/amdtp-motu.c @@ -361,6 +361,9 @@ static unsigned int process_ir_ctx_payloads(struct amdtp_stream *s, if (motu->spec->flags & SND_MOTU_SPEC_REGISTER_DSP) { snd_motu_register_dsp_message_parser_parse(motu, descs, packets, s->data_block_quadlets); + } else if (motu->spec->flags & SND_MOTU_SPEC_COMMAND_DSP) { + snd_motu_command_dsp_message_parser_parse(motu, descs, packets, + s->data_block_quadlets); } // For tracepoints. |