Skip to content

Commit 41cc233

Browse files
takaswietiwai
authored andcommitted
ALSA: firewire-motu: parse messages for line input parameters in register DSP model
This commit parses message and cache current parameters of line input function, available for MOTU 828 mk2 and Traveler. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20211015080826.34847-8-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 6ca81d2 commit 41cc233

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎include/uapi/sound/firewire.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ struct snd_firewire_motu_register_dsp_meter {
164164
* @output.hp_paired_volume: The volume of paired hp output.
165165
* @output.hp_paired_assignment: The source assigned to paired hp output.
166166
* @output.reserved: Padding for 32 bit alignment for future extension.
167+
* @line_input.boost_flag: The flags of boost for line inputs, only for 828mk2 and Traveler.
168+
* @line_input.nominal_level_flag: The flags of nominal level for line inputs, only for 828mk2 and
169+
* Traveler.
170+
* @line_input.reserved: Padding for 32 bit alignment for future extension.
167171
*
168172
* The structure expresses the set of parameters for DSP controlled by register access.
169173
*/
@@ -187,6 +191,11 @@ struct snd_firewire_motu_register_dsp_parameter {
187191
__u8 hp_paired_assignment;
188192
__u8 reserved[5];
189193
} output;
194+
struct {
195+
__u8 boost_flag;
196+
__u8 nominal_level_flag;
197+
__u8 reserved[6];
198+
} line_input;
190199
};
191200

192201
// In below MOTU models, software is allowed to control their DSP by command in frame of

‎sound/firewire/motu/motu-register-dsp-message-parser.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ void snd_motu_register_dsp_message_parser_parse(struct snd_motu *motu, const str
219219
case HP_OUTPUT_PAIRED_ASSIGNMENT:
220220
parser->param.output.hp_paired_assignment = val;
221221
break;
222+
case LINE_INPUT_BOOST:
223+
parser->param.line_input.boost_flag = val;
224+
break;
225+
case LINE_INPUT_NOMINAL_LEVEL:
226+
parser->param.line_input.nominal_level_flag = val;
227+
break;
222228
case METER:
223229
{
224230
u8 pos;

0 commit comments

Comments
 (0)