From: Victor <hisbreht@rambler.ru>
To: community@lists.altlinux.org
Subject: [Comm] bluetooth headset (btsco)
Date: Thu, 22 Jun 2006 20:52:23 +0400
Message-ID: <200606222052.23584.hisbreht@rambler.ru> (raw)
Здравствуйте.
Не разбирался ли кто с подключением bleetooth гарнитуры в линукс?
Или сформулируем иначе: в каком виде следует давать имя устройства (если
правильно понимаю, это второй параметр) в функцию
snd_hwdep_open
Проблема следующая: при попытке подключения гарнитуры выдает следующий текст:
[root@localhost root]# btsco -v 00:07:a4:c2:9e:44 1
btsco v0.42
Device is 1:0
Error: btsco open (1-0): No such device or address
Исходники взял на http://sourceforge.net/projects/bluetooth-alsa исходники,
собрал их, как описано, но получаю в итоге такую вот фигню.
Пытался копаться в исходниках, накопал следующее:
if (find_hwdep_device(&card, &dev)) {
error("Can't find device. Bail");
return 1;
}
Это проходит, устройство находит, причем вроде именно то, чтол нужно
Но далее идет следующее:
sprintf(hwdep_name, "hw:%i,%i", card, dev);
/* open hwdep on audio device */
if ((err = snd_hwdep_open(&handle, hwdep_name, O_RDWR)) < 0) {
error("btsco open (%i-%i): %s\n", card, dev,
snd_strerror(err));
return -1;
}
Вот тут то оно и валится. И тут у меня возник вопрос, а правильно ли
формируется имя, т.е. оно формируется как "hw:1,0". Может в этом собака
порылась?
--
Виктор
reply other threads:[~2006-06-22 16:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200606222052.23584.hisbreht@rambler.ru \
--to=hisbreht@rambler.ru \
--cc=community@lists.altlinux.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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git