ALSA: firewire-tascam: fix an LED bug
Subsystems (3)
PATCH 1/2 ALSA: firewire-tascam: fix an LED bug
We recently tried to add some new code to support turning the LED on and off but the code in snd_tscm_transaction_reregister() is unreachable.
Fixes e65e2cb99e44 ('ALSA: firewire-tascam: Turn on/off FireWire LED')
Signed-off-by Dan Carpenter <[email protected]>
sound/firewire/tascam/tascam-transaction.c +1 -1
@@ -249,7 +249,7 @@ int snd_tscm_transaction_reregister(struct snd_tscm *tscm)/* Turn on messaging. */ reg =cpu_to_be32 (0x00000001 ); -return snd_fw_transaction (tscm->unit,TCODE_WRITE_QUADLET_REQUEST , + err =snd_fw_transaction (tscm->unit,TCODE_WRITE_QUADLET_REQUEST ,TSCM_ADDR_BASE +TSCM_OFFSET_MIDI_TX_ON , ®,sizeof (reg),0 );if (err <0 )
Takashi Iwai
AppliedQuoted 6 lines · Dan Carpenter
We recently tried to add some new code to support turning the LED on and off but the code in
snd_tscm_transaction_reregister()is unreachable.Fixes e65e2cb99e44 ('ALSA: firewire-tascam: Turn on/off FireWire LED')Signed-off-by Dan Carpenter <[email protected]>
Applied, thanks.
Takashi
Quoted 15 lines
sound/firewire/tascam/tascam-transaction.c +1
-1@@ -249,7 +249,7 @@ int snd_tscm_transaction_reregister(struct snd_tscm *tscm)/* Turn on messaging. */ reg =cpu_to_be32 (0x00000001 ); -return snd_fw_transaction (tscm->unit,TCODE_WRITE_QUADLET_REQUEST , + err =snd_fw_transaction (tscm->unit,TCODE_WRITE_QUADLET_REQUEST ,TSCM_ADDR_BASE +TSCM_OFFSET_MIDI_TX_ON , ®,sizeof (reg),0 );if (err <0 )