aboutsummaryrefslogtreecommitdiff
path: root/audio/alsaaudio.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-08-11 20:48:02 +0400
committermalc <av1474@comtv.ru>2009-08-11 20:51:24 +0400
commit98f9f48ccb1276d2fc3bcf4592cc1febea796e4b (patch)
tree5fffa93acfc46285ef92a8d30293a53c7d35cdd0 /audio/alsaaudio.c
parent1a40d5e23577b955265fe12a2b7b5222ec2df0f2 (diff)
downloadqemu-98f9f48ccb1276d2fc3bcf4592cc1febea796e4b.zip
qemu-98f9f48ccb1276d2fc3bcf4592cc1febea796e4b.tar.gz
qemu-98f9f48ccb1276d2fc3bcf4592cc1febea796e4b.tar.bz2
Aesthetics
Reformat to make item borders more visible Fix cases of stray tabs and vertical misalignments Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/alsaaudio.c')
-rw-r--r--audio/alsaaudio.c115
1 files changed, 67 insertions, 48 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 862579a..5ea49a6 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -786,10 +786,8 @@ static int alsa_run_in (HWVoiceIn *hw)
int add;
int len;
} bufs[2] = {
- {.add = hw->wpos,
- .len = 0},
- {.add = 0,
- .len = 0}
+ { .add = hw->wpos, .len = 0 },
+ { .add = 0, .len = 0 }
};
snd_pcm_sframes_t avail;
snd_pcm_uframes_t read_samples = 0;
@@ -937,50 +935,71 @@ static void alsa_audio_fini (void *opaque)
}
static struct audio_option alsa_options[] = {
- {.name = "DAC_SIZE_IN_USEC",
- .tag = AUD_OPT_BOOL,
- .valp = &conf.size_in_usec_out,
- .descr = "DAC period/buffer size in microseconds (otherwise in frames)"},
- {.name = "DAC_PERIOD_SIZE",
- .tag = AUD_OPT_INT,
- .valp = &conf.period_size_out,
- .descr = "DAC period size (0 to go with system default)",
- .overriddenp = &conf.period_size_out_overridden},
- {.name = "DAC_BUFFER_SIZE",
- .tag = AUD_OPT_INT,
- .valp = &conf.buffer_size_out,
- .descr = "DAC buffer size (0 to go with system default)",
- .overriddenp = &conf.buffer_size_out_overridden},
- {.name = "ADC_SIZE_IN_USEC",
- .tag = AUD_OPT_BOOL,
- .valp = &conf.size_in_usec_in,
- .descr = "ADC period/buffer size in microseconds (otherwise in frames)"},
- {.name = "ADC_PERIOD_SIZE",
- .tag = AUD_OPT_INT,
- .valp = &conf.period_size_in,
- .descr = "ADC period size (0 to go with system default)",
- .overriddenp = &conf.period_size_in_overridden},
- {.name = "ADC_BUFFER_SIZE",
- .tag = AUD_OPT_INT,
- .valp = &conf.buffer_size_in,
- .descr = "ADC buffer size (0 to go with system default)",
- .overriddenp = &conf.buffer_size_in_overridden},
- {.name = "THRESHOLD",
- .tag = AUD_OPT_INT,
- .valp = &conf.threshold,
- .descr = "(undocumented)"},
- {.name = "DAC_DEV",
- .tag = AUD_OPT_STR,
- .valp = &conf.pcm_name_out,
- .descr = "DAC device name (for instance dmix)"},
- {.name = "ADC_DEV",
- .tag = AUD_OPT_STR,
- .valp = &conf.pcm_name_in,
- .descr = "ADC device name"},
- {.name = "VERBOSE",
- .tag = AUD_OPT_BOOL,
- .valp = &conf.verbose,
- .descr = "Behave in a more verbose way"},
+ {
+ .name = "DAC_SIZE_IN_USEC",
+ .tag = AUD_OPT_BOOL,
+ .valp = &conf.size_in_usec_out,
+ .descr = "DAC period/buffer size in microseconds (otherwise in frames)"
+ },
+ {
+ .name = "DAC_PERIOD_SIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.period_size_out,
+ .descr = "DAC period size (0 to go with system default)",
+ .overriddenp = &conf.period_size_out_overridden
+ },
+ {
+ .name = "DAC_BUFFER_SIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.buffer_size_out,
+ .descr = "DAC buffer size (0 to go with system default)",
+ .overriddenp = &conf.buffer_size_out_overridden
+ },
+ {
+ .name = "ADC_SIZE_IN_USEC",
+ .tag = AUD_OPT_BOOL,
+ .valp = &conf.size_in_usec_in,
+ .descr =
+ "ADC period/buffer size in microseconds (otherwise in frames)"
+ },
+ {
+ .name = "ADC_PERIOD_SIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.period_size_in,
+ .descr = "ADC period size (0 to go with system default)",
+ .overriddenp = &conf.period_size_in_overridden
+ },
+ {
+ .name = "ADC_BUFFER_SIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.buffer_size_in,
+ .descr = "ADC buffer size (0 to go with system default)",
+ .overriddenp = &conf.buffer_size_in_overridden
+ },
+ {
+ .name = "THRESHOLD",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.threshold,
+ .descr = "(undocumented)"
+ },
+ {
+ .name = "DAC_DEV",
+ .tag = AUD_OPT_STR,
+ .valp = &conf.pcm_name_out,
+ .descr = "DAC device name (for instance dmix)"
+ },
+ {
+ .name = "ADC_DEV",
+ .tag = AUD_OPT_STR,
+ .valp = &conf.pcm_name_in,
+ .descr = "ADC device name"
+ },
+ {
+ .name = "VERBOSE",
+ .tag = AUD_OPT_BOOL,
+ .valp = &conf.verbose,
+ .descr = "Behave in a more verbose way"
+ },
{ /* End of list */ }
};