Skip to content

Commit f65dc3b

Browse files
royvegardtiwai
authored andcommitted
ALSA: usb-audio: don't hardcode gain for output channel of Presonus Studio
On the 1824c output channel 4 left/right is the S/PDIF output, so this needs to be able to be set. I'm guessing that for the 1810c since it has no output channel 4, it does not matter what the gain value of this channel is set to. Signed-off-by: Roy Vegard Ovesen <roy.vegard.ovesen@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 0ca2901 commit f65dc3b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sound/usb/mixer_s1810c.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,7 @@ snd_s1810c_send_ctl_packet(struct usb_device *dev, u32 a,
147147
pkt.b = b;
148148
pkt.c = c;
149149
pkt.d = d;
150-
/*
151-
* Value for settings 0/1 for this
152-
* output channel is always 0 (probably because
153-
* there is no ADAT output on 1810c)
154-
*/
155-
pkt.e = (c == 4) ? 0 : e;
150+
pkt.e = e;
156151

157152
ret = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0),
158153
SC1810C_CMD_REQ,

0 commit comments

Comments
 (0)