Commit dc3a38b9 authored by Stefan Kost's avatar Stefan Kost
Browse files

ext/alsa/gstalsasink.c: More debug to trace why my USB headset is not working with gst

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (set_hwparams), (alsasink_parse_spec):
More debug to trace why my USB headset is not working with gst
parent 1b8dd847
2006-04-08 Stefan Kost <ensonic@users.sf.net>
* ext/alsa/gstalsasink.c: (set_hwparams), (alsasink_parse_spec):
More debug to trace why my USB headset is not working with gst
2006-04-07 Jan Schmidt <thaytan@mad.scientist.com>
 
* gst/playback/gstplaybasebin.c: (group_destroy):
......
......@@ -485,8 +485,8 @@ set_hwparams (GstAlsaSink * alsa)
snd_pcm_hw_params_alloca (&params);
GST_DEBUG_OBJECT (alsa, "Negotiating to %d channels @ %d Hz", alsa->channels,
alsa->rate);
GST_DEBUG_OBJECT (alsa, "Negotiating to %d channels @ %d Hz (format = %d)",
alsa->channels, alsa->rate, alsa->format);
/* choose all parameters */
CHECK (snd_pcm_hw_params_any (alsa->handle, params), no_config);
......@@ -679,6 +679,10 @@ alsasink_parse_spec (GstAlsaSink * alsa, GstRingBufferSpec * spec)
{
switch (spec->type) {
case GST_BUFTYPE_LINEAR:
GST_DEBUG_OBJECT (alsa,
"Linear format : depth=%d, width=%d, sign=%d, bigend=%d", spec->depth,
spec->width, spec->sign, spec->bigend);
alsa->format = snd_pcm_build_linear_format (spec->depth, spec->width,
spec->sign ? 0 : 1, spec->bigend ? 1 : 0);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment