Browse Source

Fix alsa_driver_check_card_type.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4346 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
b14943bb1a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/alsa/alsa_driver.c

+ 1
- 1
linux/alsa/alsa_driver.c View File

@@ -151,7 +151,7 @@ alsa_driver_check_card_type (alsa_driver_t *driver)
* should be hw:x where x is the card number */ * should be hw:x where x is the card number */


char tmp[5]; char tmp[5];
strncpy(tmp,strstr(driver->alsa_name_playback,"hw"),4);
strncpy(tmp,strcasestr(driver->alsa_name_playback,"hw"),4);
tmp[4]='\0'; tmp[4]='\0';
jack_info("control device %s",tmp); jack_info("control device %s",tmp);
ctl_name = strdup(tmp); ctl_name = strdup(tmp);


Loading…
Cancel
Save