Newsgroup: it.comp.os.linux.debian
Titolo: debian testing e btsco!

Ciao a tutti, ho da poco fatto la migrazione da etch a testing e devo 
rimettere a posto la connessione dell auricolare bluetooth.
Ho scaricato btsco-0.5, scompattato ed ho dato ./configure make e make 
install (questo da root)
Poi la guida che ho seguito mi diceva di entrare nella sottodir kernel e 
dare make, ecco cosa mi restituisce il comando:
# make
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-2-686'
   CC [M]  /home/checco/btsco-0.5/kernel/btsco.o
/home/checco/btsco-0.5/kernel/btsco.c:127: error: expected 
specifier-qualifier-list before 'snd_card_t'
/home/checco/btsco-0.5/kernel/btsco.c:171: error: expected 
specifier-qualifier-list before 'snd_pcm_substream_t'
/home/checco/btsco-0.5/kernel/btsco.c:174: error: expected '=', ',', 
';', 'asm' or '__attribute__' before '*' token
/home/checco/btsco-0.5/kernel/btsco.c:176: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:197: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:218: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:239: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:244: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c: In function 
'snd_card_bt_sco_pcm_receive':
/home/checco/btsco-0.5/kernel/btsco.c:265: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:265: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:266: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:266: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:269: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:269: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:276: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c: In function 
'snd_card_bt_sco_pcm_send':
/home/checco/btsco-0.5/kernel/btsco.c:297: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:297: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:298: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:298: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:301: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:301: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c:308: error: 
'snd_card_bt_sco_pcm_t' has no member named 'substream'
/home/checco/btsco-0.5/kernel/btsco.c: At top level:
/home/checco/btsco-0.5/kernel/btsco.c:314: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:323: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:331: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'snd_card_bt_sco_playback'
/home/checco/btsco-0.5/kernel/btsco.c:348: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'snd_card_bt_sco_capture'
/home/checco/btsco-0.5/kernel/btsco.c:365: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:371: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:404: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:438: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:460: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:483: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'snd_card_bt_sco_playback_ops'
/home/checco/btsco-0.5/kernel/btsco.c:492: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'snd_card_bt_sco_capture_ops'
/home/checco/btsco-0.5/kernel/btsco.c: In function 'snd_card_bt_sco_pcm':
/home/checco/btsco-0.5/kernel/btsco.c:503: error: 'snd_pcm_t' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:503: error: (Each undeclared 
identifier is reported only once
/home/checco/btsco-0.5/kernel/btsco.c:503: error: for each function it 
appears in.)
/home/checco/btsco-0.5/kernel/btsco.c:503: error: 'pcm' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:504: warning: ISO C90 forbids 
mixed declarations and code
/home/checco/btsco-0.5/kernel/btsco.c:507: error: 'snd_card_bt_sco_t' 
has no member named 'card'
/home/checco/btsco-0.5/kernel/btsco.c:510: error: 
'snd_card_bt_sco_playback_ops' undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:512: error: 
'snd_card_bt_sco_capture_ops' undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c: At top level:
/home/checco/btsco-0.5/kernel/btsco.c:525: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:535: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:548: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:574: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:584: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:596: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:614: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:626: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:646: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'snd_bt_sco_controls'
/home/checco/btsco-0.5/kernel/btsco.c: In function 
'snd_card_bt_sco_new_mixer':
/home/checco/btsco-0.5/kernel/btsco.c:670: error: 'snd_card_t' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:670: error: 'card' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:670: error: 'snd_card_bt_sco_t' 
has no member named 'card'
/home/checco/btsco-0.5/kernel/btsco.c:672: warning: ISO C90 forbids 
mixed declarations and code
/home/checco/btsco-0.5/kernel/btsco.c:676: error: 'snd_card_bt_sco_t' 
has no member named 'mixer_lock'
/home/checco/btsco-0.5/kernel/btsco.c:679: error: 'snd_bt_sco_controls' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:679: error: 'snd_kcontrol_new_t' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:680: error: 'snd_card_bt_sco_t' 
has no member named 'mixer_controls'
/home/checco/btsco-0.5/kernel/btsco.c:683: error: 'snd_card_bt_sco_t' 
has no member named 'mixer_controls'
/home/checco/btsco-0.5/kernel/btsco.c: At top level:
/home/checco/btsco-0.5/kernel/btsco.c:689: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:694: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:699: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:753: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:788: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c:842: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c: In function 'snd_card_bt_sco_thread':
/home/checco/btsco-0.5/kernel/btsco.c:866: error: 'snd_card_t' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:866: error: 'card' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:866: error: expected expression 
before ')' token
/home/checco/btsco-0.5/kernel/btsco.c:867: warning: ISO C90 forbids 
mixed declarations and code
/home/checco/btsco-0.5/kernel/btsco.c:900: error: 'snd_card_bt_sco_t' 
has no member named 'thread_sem'
/home/checco/btsco-0.5/kernel/btsco.c:905: warning: implicit declaration 
of function 'try_to_freeze'
/home/checco/btsco-0.5/kernel/btsco.c:920: error: 'snd_card_bt_sco_t' 
has no member named 'sco_sock'
/home/checco/btsco-0.5/kernel/btsco.c:920: error: 'snd_card_bt_sco_t' 
has no member named 'wait'
/home/checco/btsco-0.5/kernel/btsco.c:920: error: 'snd_card_bt_sco_t' 
has no member named 'sco_sock'
/home/checco/btsco-0.5/kernel/btsco.c:920: error: 'snd_card_bt_sco_t' 
has no member named 'wait'
/home/checco/btsco-0.5/kernel/btsco.c:921: error: 'snd_card_bt_sco_t' 
has no member named 'thread_exit'
/home/checco/btsco-0.5/kernel/btsco.c:924: error: 'snd_card_bt_sco_t' 
has no member named 'sock_sem'
/home/checco/btsco-0.5/kernel/btsco.c:925: error: 'snd_card_bt_sco_t' 
has no member named 'sco_sock'
/home/checco/btsco-0.5/kernel/btsco.c:928: error: 'snd_card_bt_sco_t' 
has no member named 'sock_sem'
/home/checco/btsco-0.5/kernel/btsco.c:986: error: 'snd_card_bt_sco_t' 
has no member named 'agc'
/home/checco/btsco-0.5/kernel/btsco.c:989: error: 'snd_card_bt_sco_t' 
has no member named 'agc'
/home/checco/btsco-0.5/kernel/btsco.c:1011: error: 'snd_card_bt_sco_t' 
has no member named 'agc'
/home/checco/btsco-0.5/kernel/btsco.c:1023: error: 'snd_card_bt_sco_t' 
has no member named 'capture_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1024: error: 'snd_card_bt_sco_t' 
has no member named 'capture'
/home/checco/btsco-0.5/kernel/btsco.c:1026: error: 'snd_card_bt_sco_t' 
has no member named 'capture'
/home/checco/btsco-0.5/kernel/btsco.c:1028: error: 'snd_card_bt_sco_t' 
has no member named 'capture_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1030: error: 'snd_card_bt_sco_t' 
has no member named 'playback_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1032: error: 'snd_card_bt_sco_t' 
has no member named 'playback'
/home/checco/btsco-0.5/kernel/btsco.c:1032: error: 'snd_card_bt_sco_t' 
has no member named 'loopback'
/home/checco/btsco-0.5/kernel/btsco.c:1046: error: 'snd_card_bt_sco_t' 
has no member named 'playback'
/home/checco/btsco-0.5/kernel/btsco.c:1050: error: 'snd_card_bt_sco_t' 
has no member named 'playback'
/home/checco/btsco-0.5/kernel/btsco.c:1067: error: 'snd_card_bt_sco_t' 
has no member named 'playback_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1112: error: 'snd_card_bt_sco_t' 
has no member named 'thread_exit'
/home/checco/btsco-0.5/kernel/btsco.c:1117: error: 'snd_card_bt_sco_t' 
has no member named 'thread_done'
/home/checco/btsco-0.5/kernel/btsco.c: At top level:
/home/checco/btsco-0.5/kernel/btsco.c:1120: error: expected ')' before 
'*' token
/home/checco/btsco-0.5/kernel/btsco.c: In function 'snd_card_bt_sco_probe':
/home/checco/btsco-0.5/kernel/btsco.c:1142: error: 'snd_card_t' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1142: error: 'card' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1143: warning: ISO C90 forbids 
mixed declarations and code
/home/checco/btsco-0.5/kernel/btsco.c:1145: error: 'snd_hwdep_t' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1145: error: 'hw' undeclared 
(first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1158: error: 
'snd_card_bt_private_free' undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1160: error: 'snd_card_bt_sco_t' 
has no member named 'card'
/home/checco/btsco-0.5/kernel/btsco.c:1162: error: 'snd_card_bt_sco_t' 
has no member named 'thread_done'
/home/checco/btsco-0.5/kernel/btsco.c:1163: error: 'snd_card_bt_sco_t' 
has no member named 'thread_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1164: error: 'snd_card_bt_sco_t' 
has no member named 'thread_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1165: error: 'snd_card_bt_sco_t' 
has no member named 'sock_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1166: error: 'snd_card_bt_sco_t' 
has no member named 'capture_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1167: error: 'snd_card_bt_sco_t' 
has no member named 'playback_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1168: error: 'snd_card_bt_sco_t' 
has no member named 'wait'
/home/checco/btsco-0.5/kernel/btsco.c:1169: error: 'snd_card_bt_sco_t' 
has no member named 'hwdep_wait'
/home/checco/btsco-0.5/kernel/btsco.c:1170: error: 'snd_card_bt_sco_t' 
has no member named 'mixer_changed_lock'
/home/checco/btsco-0.5/kernel/btsco.c:1171: error: 'snd_card_bt_sco_t' 
has no member named 'count_changed_lock'
/home/checco/btsco-0.5/kernel/btsco.c:1175: error: 'snd_card_bt_sco_t' 
has no member named 'thread_pid'
/home/checco/btsco-0.5/kernel/btsco.c:1177: error: 'snd_card_bt_sco_t' 
has no member named 'thread_pid'
/home/checco/btsco-0.5/kernel/btsco.c:1178: error: 'snd_card_bt_sco_t' 
has no member named 'thread_pid'
/home/checco/btsco-0.5/kernel/btsco.c:1182: error: 'snd_card_bt_sco_t' 
has no member named 'thread_sem'
/home/checco/btsco-0.5/kernel/btsco.c:1198: error: 'snd_card_bt_open' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1199: error: 'snd_card_bt_ioctl' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1200: error: 'snd_card_bt_release' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1201: error: 'snd_card_bt_read' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1202: error: 'snd_card_bt_write' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1203: error: 'snd_card_bt_poll' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c:1206: error: 'snd_bt_sco_cards' 
undeclared (first use in this function)
/home/checco/btsco-0.5/kernel/btsco.c: In function 'alsa_card_bt_sco_exit':
/home/checco/btsco-0.5/kernel/btsco.c:1233: error: 'snd_bt_sco_cards' 
undeclared (first use in this function)
make[2]: *** [/home/checco/btsco-0.5/kernel/btsco.o] Error 1
make[1]: *** [_module_/home/checco/btsco-0.5/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-2-686'
make: *** [default] Error 2
A cosa è dovuto questo problema e cosa devo fare per risolverlo?
Grazie a chiunque vorrà aiutarmi!
Francesco
-- 
Per rispondermi in privato togliere i numeri!

 install (questo da root)
Perche'?
Perche' complicarsi la vita?
apt-get install bluetooth-alsa
Ovviamente, se l'hai provato, e hai trovato dei problemi, spiegati.
-- 
           |Save our planet!
    Ciao   |Save wildlife!
   roberto |For your E-MAIL use ONLY recycled Bytes  !!
           |roberto poggi   
rpo...@softhome.net

 apt-get install bluetooth-alsa
Io per collegare il bluetooth davo btsco -v indirizzo con bluetooth-alsa 
come si fa?


 come si fa?
/usr/share/doc/bluetooth-alsa/README.Debian

Braindead ha scritto:

Mi sa che rocado in questa categoria:
4. SCO devices (most mono headsets) may need kernel patch.
    If it does not work for you try applying to your kernel
    patches found in /usr/share/doc/bluetooth-alsa/patches/.
Come si applica una patch al kernel?
Grazie per la disponibilità!


 Mi sa che rocado in questa categoria:
Hai provato?
Li' dice: _SE_ non funziona, allora si deve ...


 
Ho provato con skype, vado in opzioni sound devices ed ho impostato in 
sound in/out a2dpd, ma il test di chiamata non funziona!
Cosa devo/posso fare?


 
Audacity mi risponde: Error while opening sound device


>> /usr/share/doc/bluetooth-alsa/README.Debian
Ho seguito le istruzione del README, ma quando provo ad applicare le 
patch ottengo questo:
/usr/src# zcat sco-flowcontrol-v2.0.diff ! patch -p1
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN linux-2.6.18-mh7/include/net/bluetooth/hci_core.h 
linux-2.6.18-mh7-sco/include/net/bluetooth/hci_core.h
|--- linux-2.6.18-mh7/include/net/bluetooth/hci_core.h  2006-11-02 
07:45:31.000000000 -0700
|+++ linux-2.6.18-mh7-sco/include/net/bluetooth/hci_core.h 
2006-11-02 07:53:44.000000000 -0700
--------------------------
File to patch:
A questo punto cosa devo fare?


 patch -p1 -i [file.diff] --dry-run
/usr/src# patch -p1 -i pwlib.1.10.1.diff --dry-run
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- sound_alsa.cxx     2006-05-17 20:41:36.000000000 +0200
|+++ sound_alsa.cxx     2006-06-13 19:17:37.000000000 +0200
--------------------------
File to patch:
