return 1;
}
+static bool catpt_loopback_mute;
static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(catpt_volume_tlv, -9000, 300, 1);
#define CATPT_VOLUME_CTL(kname, pname) { \
}
static const struct snd_kcontrol_new component_kcontrols[] = {
-/* Master volume (mixer stream) */
-CATPT_VOLUME_CTL("Master Playback Volume", MIXER),
-/* Individual volume controls for offload and capture */
-CATPT_VOLUME_CTL("Media0 Playback Volume", OFFLOAD1),
-CATPT_VOLUME_CTL("Media1 Playback Volume", OFFLOAD2),
-CATPT_VOLUME_CTL("Mic Capture Volume", CAPTURE1),
-SOC_SINGLE_BOOL_EXT("Loopback Mute", (unsigned long)&(bool[1]) {0},
- catpt_loopback_mute_get, catpt_loopback_mute_put),
+ CATPT_VOLUME_CTL("Master Playback Volume", MIXER),
+ CATPT_VOLUME_CTL("Media0 Playback Volume", OFFLOAD1),
+ CATPT_VOLUME_CTL("Media1 Playback Volume", OFFLOAD2),
+ CATPT_VOLUME_CTL("Mic Capture Volume", CAPTURE1),
+ SOC_SINGLE_BOOL_EXT("Loopback Mute", (unsigned long)&catpt_loopback_mute,
+ catpt_loopback_mute_get, catpt_loopback_mute_put),
};
static const struct snd_soc_dapm_widget component_widgets[] = {