From: Andi <andi@fischlustig.de>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] [PATCH] harmony audio driver
Date: Thu, 06 Sep 2001 01:21:04 +0200 [thread overview]
Message-ID: <3B96B360.33152CC7@fischlustig.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
hi,
I implemented SNDCTL_DSP_CHANNELS in harmony.c, which is used to query
or set the number of sound channels. This allows some sound apps to run
that used to quit with an error.
I also added SNDCTL_DSP_SYNC that only returns 0 at the moment. This is
needed since neary all sound apps call this during initialization.
The sound driver however is still broken, the only program I know that
works 100% correctly is xmms. Maybe I will do some bug fixing later if
anyone is interested.
PS: is there a working patch to get keyboard running again on 712, it is
broken for months (since kernels after 2.4.0-paXX)
bye
andi
[-- Attachment #2: harmony.patch --]
[-- Type: text/plain, Size: 863 bytes --]
--- harmony.c 2001/08/19 15:21:11 1.13
+++ harmony.c 2001/09/05 23:07:13
@@ -680,6 +680,24 @@
harmony_set_rate(harmony_detect_rate(ival));
return put_user(ival, (int*) arg);
+ case SNDCTL_DSP_CHANNELS:
+ if (get_user(ival, (int *) arg))
+ return -EFAULT;
+
+ if (ival > 0) {
+ if (ival == 1)
+ harmony_set_stereo(HARMONY_SS_MONO);
+ else
+ harmony_set_stereo(HARMONY_SS_STEREO);
+ }
+
+ if (harmony.stereo_select == HARMONY_SS_STEREO)
+ ival = 2;
+ else
+ ival = 1;
+
+ return put_user(ival, (int *) arg);
+
case SNDCTL_DSP_STEREO: /* _SIOWR('P', 3, int) */
if (get_user(ival, (int *) arg))
return -EFAULT;
@@ -693,6 +711,9 @@
return put_user(ival, (int *) arg);
case SNDCTL_DSP_RESET:
+ return 0;
+
+ case SNDCTL_DSP_SYNC:
return 0;
case SNDCTL_DSP_SETFMT: /* _SIOWR('P',5, int) */
next reply other threads:[~2001-09-05 23:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-05 23:21 Andi [this message]
2001-09-06 1:25 ` [parisc-linux] [PATCH] harmony audio driver Andi
2001-09-06 9:29 ` Helge Deller
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=3B96B360.33152CC7@fischlustig.de \
--to=andi@fischlustig.de \
--cc=parisc-linux@lists.parisc-linux.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.