summaryrefslogtreecommitdiff
path: root/net/kphone/patches/patch-ak
blob: 3b2b2954167284208417bf4d830078fd0ca6b693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ak,v 1.1 2004/07/21 21:49:02 scw Exp $

--- kphone/kcallwidget.cpp.orig	2004-06-23 10:21:38.000000000 +0100
+++ kphone/kcallwidget.cpp	2004-07-21 12:51:54.000000000 +0100
@@ -443,7 +443,7 @@
 		return;
 	}
 	if( !audio->isAudioOn() ) {
-		audio_fd = ::open( "/dev/dsp", O_WRONLY | O_NONBLOCK );
+		audio_fd = ::open( DEVOSSAUDIO, O_WRONLY | O_NONBLOCK );
 		if( audio_fd == -1 ) {
 			QMessageBox::information( this, "Dial",
 				"Close any program which might be using soundcard \nand then retry dial." );
@@ -815,7 +815,7 @@
 	if( isRingingTone ) {
 		if( ringCount < 5 ) {
 			ringCount++;
-			audio_fd = ::open( "/dev/dsp", O_WRONLY | O_NONBLOCK );
+			audio_fd = ::open( DEVOSSAUDIO, O_WRONLY | O_NONBLOCK );
 			if( audio_fd == -1 ) {
 				printf( "ERROR: %s\n", "Open Failed" );
 				return;
@@ -881,7 +881,7 @@
 	if( !audio->isAudioOn() ) {
 		if( isRingingTone ) {
 		}
-		audio_fd = ::open( "/dev/dsp", O_WRONLY | O_NONBLOCK );
+		audio_fd = ::open( DEVOSSAUDIO, O_WRONLY | O_NONBLOCK );
 		if( audio_fd == -1 ) {
 			QMessageBox::information( this, "Accept Call",
 				"Close any program which might be using soundcard \nand then retry accepting call." );