The NetBSD Project

CVS log for src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / bta2dpd / bta2dpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10.8.2 / (download) - annotate - [select for diffs], Mon Jul 24 17:12:49 2023 UTC (8 months, 3 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.10.8.1: +21 -1 lines
Diff to previous 1.10.8.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by nat in ticket #240):

	usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.12
	usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.13

Add thottling when playing from file.
This avoids rapid playback when playing from file with affected devices.

Playback using pad(4) is still preferred ad gives a better result.

Playback from pad(4) is unaffected by this change.

Reorder for readability.
No functional change intended.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 21 02:11:18 2023 UTC (8 months, 3 weeks ago) by nat
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

Reorder for readability.

No functional change intended.

XXX pullup-10.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 20 12:33:27 2023 UTC (8 months, 3 weeks ago) by nat
Branch: MAIN
Changes since 1.11: +22 -1 lines
Diff to previous 1.11 (colored)

Add thottling when playing from file.

This avoids rapid playback when playing from file with affected devices.

Playback using pad(4) is still preferred ad gives a better result.
Playback from pad(4) is unaffected by this change.

XXX pullup-10.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Sun May 28 10:34:59 2023 UTC (10 months, 2 weeks ago) by martin
Branch: netbsd-10
Changes since 1.10: +25 -2 lines
Diff to previous 1.10 (colored)

Pull up following revision(s) (requested by nat in ticket #184):

	usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.11

With the latest changes, pad(4) will return partial reads to allow a
more fine grained pacing of audio data. But this broke bta2dpd which
relied on full buffers returned (like reading from a file).

Replace the single read() in bta2dpd with a loop that fetches a full
buffer. This restores the old behaviour but loops in userland instead
of the kernel at the cost of a few extra system calls.

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 28 07:59:17 2023 UTC (10 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.10: +25 -2 lines
Diff to previous 1.10 (colored)

With the latest changes, pad(4) will return partial reads to allow a
more fine grained pacing of audio data. But this broke bta2dpd which
relied on full buffers returned (like reading from a file).

Replace the single read() in bta2dpd with a loop that fetches a full
buffer. This restores the old behaviour but loops in userland instead
of the kernel at the cost of a few extra system calls.

Revision 1.3.10.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:51 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.3.10.1: +20 -23 lines
Diff to previous 1.3.10.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Fri Sep 27 09:48:23 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up following revision(s) (requested by nat in ticket #1393):

	usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.10

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Sep 27 09:35:33 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up following revision(s) (requested by nat in ticket #254):

	usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.10

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.
XXX pullup -8 and -9.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 21 00:01:33 2019 UTC (4 years, 6 months ago) by nat
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-10-base, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 5 13:50:58 2019 UTC (4 years, 8 months ago) by maya
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

Consistent indentation / whitespace

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 5 13:49:10 2019 UTC (4 years, 8 months ago) by maya
Branch: MAIN
Changes since 1.7: +16 -16 lines
Diff to previous 1.7 (colored)

KNF for loops

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 5 13:45:01 2019 UTC (4 years, 8 months ago) by maya
Branch: MAIN
Changes since 1.6: +1 -4 lines
Diff to previous 1.6 (colored)

Remove duplicate check for curpkt > 13

We already guarantee this above:
        if (numpkts < 1 || numpkts > 13) {
	                return -1;

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jul 27 23:33:09 2019 UTC (4 years, 8 months ago) by maya
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Whitespace

Revision 1.3.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:28 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 31 11:44:11 2019 UTC (5 years ago) by nat
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Opps... Remove extra ')'

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 31 11:33:27 2019 UTC (5 years ago) by nat
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Remove dead code from sbc decoder.

Found by Hans Petter Selasky.

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 27 10:04:57 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, netbsd-8
Changes since 1.2: +1 -4 lines
Diff to previous 1.2 (colored)

Streaming channel is now opened in blocking mode again.
Removal of a hack in sbc_encode now that pad(4) is fixed.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:06 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.2.2.1: +1108 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun Feb 12 08:25:32 2017 UTC (7 years, 2 months ago) by nat
Branch: bouyer-socketcan
Changes since 1.2.4.1: +1108 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

1888342

Revision 1.2.4.1, Sun Feb 12 08:25:31 2017 UTC (7 years, 2 months ago) by nat
Branch: bouyer-socketcan
Changes since 1.2: +0 -1108 lines
FILE REMOVED

file sbc_encode.c was added on branch bouyer-socketcan on 2017-02-12 08:25:32 +0000

Revision 1.2.2.1, Sun Feb 12 08:25:31 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.2: +0 -1108 lines
FILE REMOVED

file sbc_encode.c was added on branch pgoyette-localcount on 2017-03-20 06:58:06 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 12 08:25:31 2017 UTC (7 years, 2 months ago) by nat
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.1: +31 -6 lines
Diff to previous 1.1 (colored)

RTP timestamp is now set correctly.  The streaming socket is set to non
block blocking and connection state machinre improvement.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 28 16:55:54 2017 UTC (7 years, 2 months ago) by nat
Branch: MAIN

bta2dpd - Bluetooth Advand Audio Distribution (A2DP) Profile Daemon.

bta2dpd allows you to stream audio to and from bluetooth devices.
It features high quality stereo audio and is intended for use with pad(4)
device.

As discussed on current-users@ and tech-userlevel@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>