Skip to content

Commit

Permalink
v7.1
Browse files Browse the repository at this point in the history
+ DietPi-Software | soundcard: Remove setting controls on Sparky SBC generic USB DAC selection. Those with "playback" in their name are not necessarily volume controls and do not necessarily accept percentage values. Also multiple outputs might be available which shall not necessarily have 100% volume. Since that feature was falsely implemented before, but no user did complain, effectively nothing changes, but obsolete failing command calls are removed.
  • Loading branch information
MichaIng authored Apr 6, 2021
1 parent 744bd8e commit 87aa2ad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -1835,16 +1835,9 @@ Do you want to continue and DISABLE Bluetooth now?' || return 1
# Sparky SBC
if (( $G_HW_MODEL == 70 )); then

# USB 1.1 compat mode (Sparky currently)
# USB 1.1 compat mode
[[ $INPUT_DEVICE_VALUE == *'1.1' ]] && G_EXEC sed -i 's/aotg\.aotg1_speed=0/aotg.aotg1_speed=1/' $FP_UENV

# Unmute all (re: @sudeep)
while read -r line
do
G_EXEC amixer -c "$SOUNDCARD_TARGET_CARD" cset "$line" 100%

done < <(amixer -c "$SOUNDCARD_TARGET_CARD" controls | mawk -F, '/layback/{print $1}')

# Odroid C2: https://github.com/MichaIng/DietPi/issues/2101
elif (( $G_HW_MODEL == 12 )); then

Expand Down

0 comments on commit 87aa2ad

Please sign in to comment.