Skip to content

Commit

Permalink
Following Standard ALSA Control Names convention
Browse files Browse the repository at this point in the history
See kernel documentation, e.g. v5.5:Documentation/sound/designs/control-names.rst

Fixes respeaker#247
  • Loading branch information
HinTak committed Dec 2, 2020
1 parent 31bea0c commit 140a220
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ac101.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions ac108_6mic.state
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ state.seeed8micvoicec {
}
control.20 {
iface MIXER
name 'speaker volume'
name 'Speaker Playback Volume'
value 25
comment {
access 'read write'
Expand All @@ -352,7 +352,7 @@ state.seeed8micvoicec {
}
control.21 {
iface MIXER
name 'headphone volume'
name 'Headphone Playback Volume'
value 52
comment {
access 'read write'
Expand Down

0 comments on commit 140a220

Please sign in to comment.