diff options
| author | Takashi Iwai <tiwai@suse.de> | 2006-05-02 13:50:39 +0200 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2006-05-02 13:50:39 +0200 | 
| commit | 48e2f783f4f72c7021e858054838ff47d89951f4 (patch) | |
| tree | 8f9f9979acaac3ce4c3cbf42ecbf0c18b25e2ab1 /jack/pcm_jack.c | |
| parent | f95fc269d11687d7777cdd597e977a31a15469e7 (diff) | |
Fix port names in jack plugin
There is a flaw in alsa-jack, the channel name (out_001, etc) is
ended with a newline.
This causes problems when using jack_connect and jack_disconnect.
From: Maarten Maathuis <madman2003@gmail.com>
Diffstat (limited to 'jack/pcm_jack.c')
| -rw-r--r-- | jack/pcm_jack.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c index 4350302..c1e7a3a 100644 --- a/jack/pcm_jack.c +++ b/jack/pcm_jack.c @@ -164,12 +164,12 @@ static int snd_pcm_jack_prepare(snd_pcm_ioplug_t *io)  		char port_name[32];  		if (io->stream == SND_PCM_STREAM_PLAYBACK) { -			sprintf(port_name, "out_%03d\n", i); +			sprintf(port_name, "out_%03d", i);  			jack->ports[i] = jack_port_register(jack->client, port_name,  							    JACK_DEFAULT_AUDIO_TYPE,  							    JackPortIsOutput, 0);  		} else { -			sprintf(port_name, "in_%03d\n", i); +			sprintf(port_name, "in_%03d", i);  			jack->ports[i] = jack_port_register(jack->client, port_name,  							    JACK_DEFAULT_AUDIO_TYPE,  							    JackPortIsInput, 0);  | 
