ALSA: firewire-motu: fix detection for S/PDIF source on optical interface in v2 protocol
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 23 Jun 2021 07:59:33 +0000 (16:59 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Jun 2021 08:17:23 +0000 (10:17 +0200)
commitfa4db23233eb912234bdfb0b26a38be079c6b5ea
treebfd7323e1e0c782d81c7696eca73a188cb3d4d11
parent91bc92d783fecb77b8bfa80787c8cfca6513a928
ALSA: firewire-motu: fix detection for S/PDIF source on optical interface in v2 protocol

The devices in protocol version 2 has a register with flag for IEC 60958
signal detection as source of sampling clock without discrimination
between coaxial and optical interfaces. On the other hand, current
implementation of driver manage to interpret type of signal on optical
interface instead.

This commit fixes the detection of optical/coaxial interface for S/PDIF
signal.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210623075941.72562-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-protocol-v2.c