From: Thomas Charbonnel <thomas@undata.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net, alsa-user@lists.sourceforge.net
Subject: Re: ALSA 1.0.0pre3 release
Date: Thu, 27 Nov 2003 01:46:19 +0100 [thread overview]
Message-ID: <3FC5495B.1030409@undata.org> (raw)
In-Reply-To: <s5h7k1nxdl1.wl@alsa2.suse.de>
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Takashi Iwai wrote :
>>Takashi it seems that at least for hdsploader (I didn't check the other
>>tools) you forgot the trailing / in DATAPATH in Makefile.am, so the
>>program fails to find the firmware file :
>>Unable to open file
>>'/usr/local/share/alsa/firmware/hdsploadermultiface_firmware.bin' for
>>reading
>
>
> oh yes, you're right.
> is the attached patch ok?
> i'll check it in.
>
Good for me, thanks.
Please also apply the attached patch to hdspmixer, it fixes some
problems with default presets file handling.
Thomas.
[-- Attachment #2: hdspmixer.diff --]
[-- Type: text/plain, Size: 1964 bytes --]
diff -Naur hdspmixer.orig/src/HDSPMixerWindow.cxx hdspmixer/src/HDSPMixerWindow.cxx
--- hdspmixer.orig/src/HDSPMixerWindow.cxx 2003-11-27 01:36:29.000000000 +0100
+++ hdspmixer/src/HDSPMixerWindow.cxx 2003-11-27 01:35:01.000000000 +0100
@@ -397,7 +397,13 @@
{
FILE *file;
if ((file = fopen(file_name, "r")) == NULL) {
+ int i = 0;
fl_alert("Error opening file %s for reading", file_name);
+ while (cards[i] != NULL) {
+ restoreDefaults(i++);
+ }
+ inputs->buttons->presets->preset_change(1);
+ return;
}
for (int speed = 0; speed < 3; ++speed) {
for (int card = 0; card < 3; ++card) {
@@ -533,6 +539,7 @@
h9632_an12_submix[2] = 1;
num_modes = 3;
phones = 0;
+ break;
default:
/* should never happen */
return;
@@ -624,8 +631,18 @@
cards[2] = hdsp_card3;
current_card = current_preset = 0;
prefs = new Fl_Preferences(Fl_Preferences::USER, "thomasATundata.org", "HDSPMixer");
- if (!prefs->get("default_file", file_name_buffer, NULL, FL_PATH_MAX-1)) file_name = NULL;
- else file_name = file_name_buffer;
+ if (!prefs->get("default_file", file_name_buffer, NULL, FL_PATH_MAX-1)) {
+ file_name = NULL;
+ } else {
+ struct stat buf;
+ if (!stat(file_name_buffer, &buf)) {
+ file_name = file_name_buffer;
+ } else {
+ file_name = NULL;
+ prefs->deleteEntry("default_file");
+ prefs->flush();
+ }
+ }
for (int j = 0; j < 3; ++j) {
for (int i = 0; i < 8; ++i) {
data[j][0][i] = new HDSPMixerPresetData();
diff -Naur hdspmixer.orig/src/HDSPMixerWindow.h hdspmixer/src/HDSPMixerWindow.h
--- hdspmixer.orig/src/HDSPMixerWindow.h 2003-11-27 01:36:29.000000000 +0100
+++ hdspmixer/src/HDSPMixerWindow.h 2003-11-27 01:25:03.000000000 +0100
@@ -35,6 +35,9 @@
#include <stdlib.h>
#include <math.h>
#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include <alsa/asoundlib.h>
#include <sound/hdsp.h>
#include "HDSPMixerCard.h"
next prev parent reply other threads:[~2003-11-27 0:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-25 19:04 ALSA 1.0.0pre3 release Takashi Iwai
2003-11-26 0:11 ` Ronny V. Vindenes
2003-11-26 10:44 ` [Alsa-user] " Takashi Iwai
2003-11-26 12:10 ` Ronny V. Vindenes
2003-11-26 12:32 ` Re: [Alsa-devel] " Takashi Iwai
2003-11-26 14:10 ` [Alsa-user] " Ronny V. Vindenes
2003-11-26 14:15 ` Takashi Iwai
2003-11-26 14:30 ` Ronny V. Vindenes
2003-11-26 16:38 ` [Alsa-devel] " Thomas Charbonnel
2003-11-26 17:08 ` Takashi Iwai
2003-11-27 0:46 ` Thomas Charbonnel [this message]
2003-11-27 10:43 ` [Alsa-devel] " Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FC5495B.1030409@undata.org \
--to=thomas@undata.org \
--cc=alsa-devel@lists.sourceforge.net \
--cc=alsa-user@lists.sourceforge.net \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox