mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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
This commit is contained in:
parent
1b8dd847b1
commit
dc3a38b9b6
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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 (¶ms);
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue