case MA_OPT_SOUND_QUALITY:
if (strcasecmp(var, "Sound Quality") != 0) return 0;
PicoIn.sndRate = strtoul(val, &tmp, 10);
- if (PicoIn.sndRate < 8000 || PicoIn.sndRate > 53267)
- PicoIn.sndRate = 22050;
+ if (PicoIn.sndRate < 8000 || PicoIn.sndRate > 53267) {
+ if (strncasecmp(tmp, "native", 6) == 0) {
+ tmp += 6;
+ PicoIn.sndRate = 53000;
+ } else
+ PicoIn.sndRate = 22050;
+ }
if (*tmp == 'H' || *tmp == 'h') tmp++;
if (*tmp == 'Z' || *tmp == 'z') tmp++;
while (*tmp == ' ') tmp++;
*offs = -8;
str2 = (PicoIn.opt & POPT_EN_STEREO) ? "stereo" : "mono";
if (PicoIn.sndRate > 52000)
- sprintf(static_buff, "native %s\n", str2);
+ sprintf(static_buff, "native %s", str2);
else sprintf(static_buff, "%5iHz %s", PicoIn.sndRate, str2);
return static_buff;
}