About bt87x
Hello:
I have a bt878 audio device. It can work only at digital
sample rate 8000HZ from TV tuner source. For this bt878 audio device, we have modified some source of the kernel module btaudio. The only difference between the original module and the modified one is the value of GPIO_DMA_CTL register. And this new btaudio module works for me.
Now, I have tried to modify alsa bt87x to work for me.
I add another pci_device_id to represent 8000HZ sample rate. I changed three fields of snd_bt87x_digital_hw
to represent mono 8000HZ. But still don't work. And then
I changed the value of GPIO_DMA_CTL register as I did
in the btaudio module. Well, it worked in slow motion
when I played the captured pcm data. Can somebody
give me some hints? Thanks
--
The sun is shinny but the ice is slippery.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines · Joe Hsu
I have a bt878 audio device. It can work only at digital
sample rate 8000HZ from TV tuner source. For this bt878 audio device, we have modified some source of the kernel module btaudio. The only difference between the original module and the modified one is the value ofGPIO_DMA_CTLregister.
Which field has to be changed? Is it the physical format of samples on the serial bus?
Quoted 4 lines
Now, I have tried to modify alsa bt87x to work for me. I add
anotherpci_device_idto represent 8000HZ sample rate. I changed three fields ofsnd_bt87x_digital_hwto represent mono 8000HZ. But still don't work.
Those changes wouldn't affect the control register.
Quoted 3 lines
And then I changed the value of
GPIO_DMA_CTLregister as I did in the btaudio module. Well, it worked in slow motion when I played the captured pcm data.
This indicates that the actual sample rate is higher than 8 kHz. Or probably some stereo/mono mismatch.
Could you please post your changes to btaudio.c?
Regards,
Clemens
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 4 lines · Clemens Ladisch
Quoted 3 lines
And then I changed the value of
GPIO_DMA_CTLregister as I did in the btaudio module. Well, it worked in slow motion when I played the captured pcm data.
Quoted 9 lines
This indicates that the actual sample rate is higher than 8 kHz. Or probably some stereo/mono mismatch.
Could you please post your changes to
btaudio.c?Regards,
Clemens
btaudio.c is version 0.6 for linux kernel 2.4.x btaudio2.c is the modified version
btaudio.diff is the difference of btaudio.c and btaudio2.c
When I use btaudio2.c as the btaudio.o module, I load it with "insmod btaudio.o analog=0 digital=1 rate=8000".
http://bill-goldberg.myweb.hinet.net/btaudio.c
http://bill-goldberg.myweb.hinet.net/btaudio2.c
http://bill-goldberg.myweb.hinet.net/btaudio.diff
Signature · 8 lines
The sun is shinny but the ice is slippery. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click