Use names instead of integer indexes for mux inputs
During codec drivers development in mainline there were some
updates which changed meaning of ASoC mux control indexes
of arizona class codecs, e.g. of the wm5110 codec which is
used on Draco board.
Since in the alsaucm files, found in /usr/share/alsa/ucm/wm511/
directory, hard coded indexes are used these files required
an update after moving to a more recent kernel version.
For example, in 'HPOUT2L Input 1' control the input indexes
and the corresponding names look like this:
root@localhost:~# amixer cget iface=MIXER,name='HPOUT2L Input 1'
numid=591,iface=MIXER,name='HPOUT2L Input 1'
; type=ENUMERATED,access=rw------,values=1,items=104
; Item #0 'None'
; Item #1 'Tone Generator 1'
; Item #2 'Tone Generator 2'
; Item #3 'Haptics'
; Item #4 'AEC'
; Item #5 'AEC2'
; Item #6 'Mic Mute Mixer'
; Item #7 'Noise Generator'
; Item #8 'IN1L'
; Item #9 'IN1R'
; Item #10 'IN2L'
; Item #11 'IN2R'
; Item #12 'IN3L'
; Item #13 'IN3R'
; Item #14 'IN4L'
; Item #15 'IN4R'
; Item #16 'AIF1RX1'
; Item #17 'AIF1RX2'
; Item #18 'AIF1RX3'
; Item #19 'AIF1RX4'
...
In commit
6ebbce0a6e15fd52 "ASoC: wm8998: Initial WM8998 codec
driver" "AEC2" entry was added, which caused shift of indexes
for all subsequent inputs starting from 'Mic Mute Mixer'. And
this made alsaucm configuration files for Draco board invalid.
In order to make common configuration files independent of the
kernel version use names instead of indices for the mux inputs.
Change-Id: Ib85e8e0619d99e227358433d1eb81bf5de8a3322
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Revert "HiFi: Speaker: Set HPOUT2R Input 1 source to AIF1RX2 to support right channel"
This reverts commit
a718a26495247fef9b1a2e4f544393e6c010328e. It is because of no sound in paplay.
Change-Id: I291d3e8b6d2a246d4f263fbd70eb874519ccdf78