File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1112,13 +1112,13 @@ static void setupAudio() {
1112
1112
break ;
1113
1113
}
1114
1114
PutFileContents (" /root/.asoundrc" , asoundrc);
1115
- std::string mixers = execAndReturn (" /usr/bin/amixer -c " + std::to_string (card) + " scontrols | head -1 | cut -f2 -d\" '\" " );
1115
+ std::string mixers = execAndReturn (" /usr/bin/amixer -c " + std::to_string (card) + " scontrols | cut -f2 -d\" '\" " );
1116
1116
if (mixers.empty ()) {
1117
1117
// for some sound cards, the mixer devices won't show up
1118
1118
// until something is played. Play one second of silence
1119
1119
exec (" /usr/bin/aplay -d 1 /opt/fpp/media/silence_5sec.wav >> /dev/null 2>&1 &" );
1120
1120
std::this_thread::sleep_for (std::chrono::milliseconds (200 ));
1121
- mixers = execAndReturn (" /usr/bin/amixer -c " + std::to_string (card) + " scontrols | head -1 | cut -f2 -d\" '\" " );
1121
+ mixers = execAndReturn (" /usr/bin/amixer -c " + std::to_string (card) + " scontrols | cut -f2 -d\" '\" " );
1122
1122
}
1123
1123
TrimWhiteSpace (mixers);
1124
1124
std::string mixer;
You can’t perform that action at this time.
0 commit comments