mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +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>
|
2006-04-07 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* gst/playback/gstplaybasebin.c: (group_destroy):
|
* gst/playback/gstplaybasebin.c: (group_destroy):
|
||||||
|
|
|
@ -485,8 +485,8 @@ set_hwparams (GstAlsaSink * alsa)
|
||||||
|
|
||||||
snd_pcm_hw_params_alloca (¶ms);
|
snd_pcm_hw_params_alloca (¶ms);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (alsa, "Negotiating to %d channels @ %d Hz", alsa->channels,
|
GST_DEBUG_OBJECT (alsa, "Negotiating to %d channels @ %d Hz (format = %d)",
|
||||||
alsa->rate);
|
alsa->channels, alsa->rate, alsa->format);
|
||||||
|
|
||||||
/* choose all parameters */
|
/* choose all parameters */
|
||||||
CHECK (snd_pcm_hw_params_any (alsa->handle, params), no_config);
|
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) {
|
switch (spec->type) {
|
||||||
case GST_BUFTYPE_LINEAR:
|
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,
|
alsa->format = snd_pcm_build_linear_format (spec->depth, spec->width,
|
||||||
spec->sign ? 0 : 1, spec->bigend ? 1 : 0);
|
spec->sign ? 0 : 1, spec->bigend ? 1 : 0);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue