the float format is not supposed to be selected yet, as we don't support the float format in multi_audio.
dump more audio formats in hda. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32971 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c7a206e9b1
commit
bd7b0937db
|
@ -1,10 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
* Copyright 2007-2009, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* Ithamar Adema, ithamar AT unet DOT nl
|
* Ithamar Adema, ithamar AT unet DOT nl
|
||||||
* Axel Dörfler, axeld@pinc-software.de
|
* Axel Dörfler, axeld@pinc-software.de
|
||||||
|
* Jérôme Duval, korli@users.berlios.de
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,12 +154,15 @@ dump_widget_pm_support(hda_widget& widget)
|
||||||
static void
|
static void
|
||||||
dump_widget_stream_support(hda_widget& widget)
|
dump_widget_stream_support(hda_widget& widget)
|
||||||
{
|
{
|
||||||
dprintf("\tSupported formats: %s%s%s%s%s\n",
|
dprintf("\tSupported formats: %s%s%s%s%s%s%s%s\n",
|
||||||
widget.d.io.formats & B_FMT_8BIT_S ? "8bits " : "",
|
widget.d.io.formats & B_FMT_8BIT_S ? "8bits " : "",
|
||||||
widget.d.io.formats & B_FMT_16BIT ? "16bits " : "",
|
widget.d.io.formats & B_FMT_16BIT ? "16bits " : "",
|
||||||
widget.d.io.formats & B_FMT_20BIT ? "20bits " : "",
|
widget.d.io.formats & B_FMT_20BIT ? "20bits " : "",
|
||||||
widget.d.io.formats & B_FMT_24BIT ? "24bits " : "",
|
widget.d.io.formats & B_FMT_24BIT ? "24bits " : "",
|
||||||
widget.d.io.formats & B_FMT_32BIT ? "32bits " : "");
|
widget.d.io.formats & B_FMT_32BIT ? "32bits " : "",
|
||||||
|
widget.d.io.formats & B_FMT_FLOAT ? "float " : "",
|
||||||
|
widget.d.io.formats & B_FMT_DOUBLE ? "double " : "",
|
||||||
|
widget.d.io.formats & B_FMT_EXTENDED ? "extended " : "");
|
||||||
dprintf("\tSupported rates: %s%s%s%s%s%s%s%s%s%s%s%s\n",
|
dprintf("\tSupported rates: %s%s%s%s%s%s%s%s%s%s%s%s\n",
|
||||||
widget.d.io.rates & B_SR_8000 ? "8khz " : "",
|
widget.d.io.rates & B_SR_8000 ? "8khz " : "",
|
||||||
widget.d.io.rates & B_SR_11025 ? "11khz " : "",
|
widget.d.io.rates & B_SR_11025 ? "11khz " : "",
|
||||||
|
|
|
@ -141,8 +141,9 @@ uint32
|
||||||
select_format(uint32 format)
|
select_format(uint32 format)
|
||||||
{
|
{
|
||||||
// best format
|
// best format
|
||||||
if (format & B_FMT_FLOAT)
|
// TODO ensure we support this format
|
||||||
return B_FMT_FLOAT;
|
/*if (format & B_FMT_FLOAT)
|
||||||
|
return B_FMT_FLOAT;*/
|
||||||
if (format & B_FMT_32BIT)
|
if (format & B_FMT_32BIT)
|
||||||
return B_FMT_32BIT;
|
return B_FMT_32BIT;
|
||||||
if (format & B_FMT_24BIT)
|
if (format & B_FMT_24BIT)
|
||||||
|
|
Loading…
Reference in New Issue