No driver uses these the "mpeg" encodings and no program
can play without the AUDIO_PLAY_ALL flag (I don't even know
if the !PLAY_ALL case ever worked). The plan is to drop these
from the API soon.
OK?
Index: audioctl.c
===================================================================
RCS file: /cvs/src/usr.bin/audioctl/audioctl.c,v
retrieving revision 1.25
diff -u -p -u -p -r1.25 audioctl.c
--- audioctl.c 8 Feb 2015 23:40:34 -0000 1.25
+++ audioctl.c 22 Apr 2015 06:59:46 -0000
@@ -130,12 +130,6 @@ struct {
{ AudioEslinear_be, AUDIO_ENCODING_SLINEAR_BE },
{ "linear_be", AUDIO_ENCODING_SLINEAR_BE },
{ AudioEulinear_be, AUDIO_ENCODING_ULINEAR_BE },
- { AudioEmpeg_l1_stream, AUDIO_ENCODING_MPEG_L1_STREAM },
- { AudioEmpeg_l1_packets,AUDIO_ENCODING_MPEG_L1_PACKETS },
- { AudioEmpeg_l1_system, AUDIO_ENCODING_MPEG_L1_SYSTEM },
- { AudioEmpeg_l2_stream, AUDIO_ENCODING_MPEG_L2_STREAM },
- { AudioEmpeg_l2_packets,AUDIO_ENCODING_MPEG_L2_PACKETS },
- { AudioEmpeg_l2_system, AUDIO_ENCODING_MPEG_L2_SYSTEM },
{ 0 }
};
@@ -186,10 +180,7 @@ prval(u_int format, void *valp)
v = *(u_int *)valp;
cm = "";
if (v & AUMODE_PLAY) {
- if (v & AUMODE_PLAY_ALL)
- fprintf(out, "play");
- else
- fprintf(out, "playsync");
+ fprintf(out, "play");
cm = ",";
}
if (v & AUMODE_RECORD)