From 140a22094669b3cf1641fff13e0038264489c129 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Mon, 28 Sep 2020 16:38:30 +0100 Subject: [PATCH] Following Standard ALSA Control Names convention See kernel documentation, e.g. v5.5:Documentation/sound/designs/control-names.rst Fixes https://github.com/respeaker/seeed-voicecard/issues/247 --- ac101.c | 4 ++-- ac108_6mic.state | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ac101.c b/ac101.c index a4bcd62..40be0b6 100644 --- a/ac101.c +++ b/ac101.c @@ -782,8 +782,8 @@ static struct snd_kcontrol_new ac101_controls[] = { SOC_DOUBLE_TLV("DAC volume", DAC_VOL_CTRL, DAC_VOL_L, DAC_VOL_R, 0xff, 0, dac_vol_tlv), SOC_DOUBLE_TLV("DAC mixer gain", DAC_MXR_GAIN, DACL_MXR_GAIN, DACR_MXR_GAIN, 0xf, 0, dac_mix_vol_tlv), SOC_SINGLE_TLV("digital volume", DAC_DBG_CTRL, DVC, 0x3f, 1, dig_vol_tlv), - SOC_SINGLE_TLV("speaker volume", SPKOUT_CTRL, SPK_VOL, 0x1f, 0, speaker_vol_tlv), - SOC_SINGLE_TLV("headphone volume", HPOUT_CTRL, HP_VOL, 0x3f, 0, headphone_vol_tlv), + SOC_SINGLE_TLV("Speaker Playback Volume", SPKOUT_CTRL, SPK_VOL, 0x1f, 0, speaker_vol_tlv), + SOC_SINGLE_TLV("Headphone Playback Volume", HPOUT_CTRL, HP_VOL, 0x3f, 0, headphone_vol_tlv), }; /* PLL divisors */ diff --git a/ac108_6mic.state b/ac108_6mic.state index bdbe64a..61e691a 100644 --- a/ac108_6mic.state +++ b/ac108_6mic.state @@ -338,7 +338,7 @@ state.seeed8micvoicec { } control.20 { iface MIXER - name 'speaker volume' + name 'Speaker Playback Volume' value 25 comment { access 'read write' @@ -352,7 +352,7 @@ state.seeed8micvoicec { } control.21 { iface MIXER - name 'headphone volume' + name 'Headphone Playback Volume' value 52 comment { access 'read write'