Commit 76cb6806 authored by Geoffrey D. Bennett's avatar Geoffrey D. Bennett Committed by Takashi Iwai
Browse files

ALSA: usb-audio: scarlett2: Reformat scarlett2_config_items[]



Use designated initializers and merge lines in preparation for more
configuration items coming soon.

Signed-off-by: default avatarGeoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/512d14eeb3571a266810c954d0f83140a3af7afc.1624294591.git.g@b4.vu


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 077e104e
Loading
Loading
Loading
Loading
+10 −30
Original line number Original line Diff line number Diff line
@@ -523,40 +523,20 @@ struct scarlett2_config {


static const struct scarlett2_config
static const struct scarlett2_config
		scarlett2_config_items[SCARLETT2_CONFIG_COUNT] = {
		scarlett2_config_items[SCARLETT2_CONFIG_COUNT] = {
	/* Dim/Mute Buttons */
	[SCARLETT2_CONFIG_DIM_MUTE] = {
	{
		.offset = 0x31, .size = 1, .activate = 2 },
		.offset = 0x31,
		.size = 1,
		.activate = 2
	},


	/* Line Out Volume */
	[SCARLETT2_CONFIG_LINE_OUT_VOLUME] = {
	{
		.offset = 0x34, .size = 2, .activate = 1 },
		.offset = 0x34,
		.size = 2,
		.activate = 1
	},


	/* SW/HW Volume Switch */
	[SCARLETT2_CONFIG_SW_HW_SWITCH] = {
	{
		.offset = 0x66, .size = 1, .activate = 3 },
		.offset = 0x66,
		.size = 1,
		.activate = 3
	},


	/* Level Switch */
	[SCARLETT2_CONFIG_LEVEL_SWITCH] = {
	{
		.offset = 0x7c, .size = 1, .activate = 7 },
		.offset = 0x7c,
		.size = 1,
		.activate = 7
	},


	/* Pad Switch */
	[SCARLETT2_CONFIG_PAD_SWITCH] = {
	{
		.offset = 0x84, .size = 1, .activate = 8 },
		.offset = 0x84,
		.size = 1,
		.activate = 8
	}
};
};


/* proprietary request/response format */
/* proprietary request/response format */