Skip to content

Commit

Permalink
2023-11-21 Fred Gleason <[email protected]>
Browse files Browse the repository at this point in the history
	* Fixed a regression in the build system that caused configuration
	to halt if JACK support was not detected.
	* Fixed a regression in build system that caused configuration
	to halt if ALSA support was not detected.
	* Fixed a regression in caed(8) that caused the build to fail
	if HPI support was not enabled.
	* Fixed a regression in caed(8) that caused the build to fail
	if ALSA support was not enabled.

Signed-off-by: Fred Gleason <[email protected]>
  • Loading branch information
ElvishArtisan committed Nov 21, 2023
1 parent 6065d11 commit e6f6aaa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -24484,3 +24484,12 @@
harness.
2023-11-20 Fred Gleason <[email protected]>
* Incremented the package version to 4.1.1.
2023-11-21 Fred Gleason <[email protected]>
* Fixed a regression in the build system that caused configuration
to halt if JACK support was not detected.
* Fixed a regression in build system that caused configuration
to halt if ALSA support was not detected.
* Fixed a regression in caed(8) that caused the build to fail
if HPI support was not enabled.
* Fixed a regression in caed(8) that caused the build to fail
if ALSA support was not enabled.
8 changes: 8 additions & 0 deletions cae/driver_alsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,13 +735,21 @@ bool DriverAlsa::initialize(unsigned *next_cardnum)

int DriverAlsa::inputPortQuantity(int card) const
{
#ifdef ALSA
return alsa_input_port_quantities.value(card);
#else
return 0;
#endif // ALSA
}


int DriverAlsa::outputPortQuantity(int card) const
{
#ifdef ALSA
return alsa_output_port_quantities.value(card);
#else
return 0;
#endif // ALSA
}


Expand Down
8 changes: 8 additions & 0 deletions cae/driver_hpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,21 @@ bool DriverHpi::initialize(unsigned *next_cardnum)

int DriverHpi::inputPortQuantity(int card) const
{
#ifdef HPI
return d_sound_card->getCardInputPorts(card);
#else
return 0;
#endif // HPI
}


int DriverHpi::outputPortQuantity(int card) const
{
#ifdef HPI
return d_sound_card->getCardOutputPorts(card);
#else
return 0;
#endif // HPI
}


Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ fi
# Setup Sound API Dependencies
#
AC_CHECK_HEADER(asihpi/hpi.h,[HPI_FOUND=yes],[])
PKG_CHECK_MODULES(LIBJACK,jack,[JACK_FOUND=yes],[])
PKG_CHECK_MODULES(ASOUNDLIB,alsa,[ALSA_FOUND=yes],[])
PKG_CHECK_MODULES(LIBJACK,jack,[JACK_FOUND=yes],[JACK_NOT_FOUND=yes])
PKG_CHECK_MODULES(ASOUNDLIB,alsa,[ALSA_FOUND=yes],[ALSA_NOT_FOUND=yes])
if test $HPI_FOUND ; then
if test -z $HPI_DISABLED ; then
USING_HPI=yes
Expand Down

0 comments on commit e6f6aaa

Please sign in to comment.