FreeBSD Bugzilla – Attachment 184414 Details for
Bug 220785
audio/jack: Add and enable COOKEDMODE option, Use GitHub
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
jack.patch (text/plain), 9.75 KB, created by
Yuri Victorovich
on 2017-07-17 04:23:14 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2017-07-17 04:23:14 UTC
Size:
9.75 KB
patch
obsolete
>Index: audio/jack/Makefile >=================================================================== >--- audio/jack/Makefile (revision 446051) >+++ audio/jack/Makefile (working copy) >@@ -3,10 +3,8 @@ > > PORTNAME= jackit > PORTVERSION= 0.125.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= audio >-MASTER_SITES= http://jackaudio.org/downloads/ >-DISTNAME= jack-audio-connection-kit-${PORTVERSION} > > MAINTAINER= multimedia@FreeBSD.org > COMMENT= Low latency audio server >@@ -19,9 +17,16 @@ > libcelt0.so:audio/celt \ > libuuid.so:misc/e2fsprogs-libuuid > >+USES= autoreconf gmake pathfix pkgconfig libtool localbase bdb >+USE_GITHUB= yes >+GH_ACCOUNT= jackaudio >+GH_PROJECT= jack1 >+GH_TAGNAME= 90f9dd3 >+GH_TUPLE= jackaudio:headers:07f1ecf:h >+GH_TUPLE+= jackaudio:tools:8d13c31:t >+GH_TUPLE+= jackaudio:example-clients:7fa0890:e >+USE_LDCONFIG= yes > GNU_CONFIGURE= yes >-USE_LDCONFIG= yes >-USES= gmake pathfix pkgconfig libtool localbase bdb > USE_RC_SUBR= jackd > > CONFIGURE_ARGS= --disable-portaudio \ >@@ -29,12 +34,14 @@ > --with-default-tmpdir=/tmp > > CFLAGS+= -I${BDB_INCLUDE_DIR} >+COOKEDMODE_CFLAGS+= -DOPTION_COOKEDMODE=1 > LIBS+= -L${BDB_LIB_DIR} > INSTALL_TARGET= install-strip > >-OPTIONS_DEFINE= ALSA DOXYGEN READLINE SNDIO >-OPTIONS_DEFAULT=READLINE >+OPTIONS_DEFINE= ALSA DOXYGEN READLINE SNDIO COOKEDMODE >+OPTIONS_DEFAULT=READLINE COOKEDMODE > OPTIONS_SUB= yes >+COOKEDMODE_DESC=Use OSS COOKEDMODE (OSS driver is broken without it) > > ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib > ALSA_CONFIGURE_ENABLE= alsa >@@ -51,20 +58,9 @@ > SNDIO_CONFIGURE_ENABLE= sndio > > post-patch: >- @${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \ >- -e 's|alloca.h||' \ >- ${WRKSRC}/configure >- @${REINPLACE_CMD} -e "s,-lpthread,-pthread," \ >- ${WRKSRC}/configure ${WRKSRC}/libjack/Makefile.in \ >- ${WRKSRC}/jackd/Makefile.in \ >- ${WRKSRC}/example-clients/Makefile.in ${WRKSRC}/jack.pc.in >- @${REINPLACE_CMD} -e "s,-lrt,," ${WRKSRC}/libjack/Makefile.in \ >- ${WRKSRC}/jackd/Makefile.in \ >- ${WRKSRC}/example-clients/Makefile.in >- @${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/jackd/Makefile.in \ >- ${WRKSRC}/example-clients/Makefile.in >- @${REINPLACE_CMD} -e 's|md5sum|md5 -q|g' \ >- ${WRKSRC}/jackd/Makefile.in >+ @${MV} ${WRKDIR}/headers-*/* ${WRKSRC}/jack/ >+ @${MV} ${WRKDIR}/tools-*/* ${WRKSRC}/tools/ >+ @${MV} ${WRKDIR}/example-clients-*/* ${WRKSRC}/example-clients/ > @${RM} ${WRKSRC}/doc/reference/html/* > > post-build: >Index: audio/jack/distinfo >=================================================================== >--- audio/jack/distinfo (revision 446051) >+++ audio/jack/distinfo (working copy) >@@ -1,3 +1,9 @@ >-TIMESTAMP = 1491234945 >-SHA256 (jack-audio-connection-kit-0.125.0.tar.gz) = 3517b5bff82139a76b2b66fe2fd9a3b34b6e594c184f95a988524c575b11d444 >-SIZE (jack-audio-connection-kit-0.125.0.tar.gz) = 1217977 >+TIMESTAMP = 1500250305 >+SHA256 (jackaudio-jack1-0.125.0-90f9dd3_GH0.tar.gz) = e0ba7dcf58fa934af51329cd329f466fe8d2bc180d07e4ab8be21ed80c60aa8a >+SIZE (jackaudio-jack1-0.125.0-90f9dd3_GH0.tar.gz) = 392822 >+SHA256 (jackaudio-headers-07f1ecf_GH0.tar.gz) = 04a3bb87d278923985ba44045b7a27439c90776cc5d4a6016d062fc7a6aa5023 >+SIZE (jackaudio-headers-07f1ecf_GH0.tar.gz) = 36704 >+SHA256 (jackaudio-tools-8d13c31_GH0.tar.gz) = 23e6bc60c8cef4283677206f2687a408367203a725c091c923f48554ae6e8cc8 >+SIZE (jackaudio-tools-8d13c31_GH0.tar.gz) = 45544 >+SHA256 (jackaudio-example-clients-7fa0890_GH0.tar.gz) = 79e2ac1d38d7d77b1afb71aa97414c339e8c00613a5d9b725861232b5c995223 >+SIZE (jackaudio-example-clients-7fa0890_GH0.tar.gz) = 16174 >Index: audio/jack/files/patch-drivers_oss_oss__driver.c >=================================================================== >--- audio/jack/files/patch-drivers_oss_oss__driver.c (revision 446051) >+++ audio/jack/files/patch-drivers_oss_oss__driver.c (working copy) >@@ -1,4 +1,4 @@ >---- drivers/oss/oss_driver.c.orig 2016-02-23 15:13:53 UTC >+--- drivers/oss/oss_driver.c.orig 2017-01-10 10:20:51 UTC > +++ drivers/oss/oss_driver.c > @@ -23,6 +23,7 @@ > >@@ -8,7 +8,18 @@ > #ifdef USE_BARRIER > /* > * POSIX conformance level should be globally defined somewhere, possibly >-@@ -172,7 +173,9 @@ static void set_period_size (oss_driver_ >+@@ -77,6 +78,10 @@ >+ #endif /* _SIOWR */ >+ #endif /* SNDCTL_DSP_COOKEDMODE */ >+ >++#if !defined(OPTION_COOKEDMODE) >++#define OPTION_COOKEDMODE 0 >++#endif >++ >+ #define OSS_DRIVER_N_PARAMS 11 >+ const static jack_driver_param_desc_t oss_params[OSS_DRIVER_N_PARAMS] = { >+ { "rate", >+@@ -172,7 +177,9 @@ static void set_period_size (oss_driver_ > ((double)driver->period_size / > (double)driver->sample_rate) * 1e6; > driver->last_wait_ust = 0; >@@ -19,7 +30,7 @@ > driver->next_periodtime = 0; > driver->iodelay = 0.0F; > } >-@@ -180,7 +183,9 @@ static void set_period_size (oss_driver_ >+@@ -180,7 +187,9 @@ static void set_period_size (oss_driver_ > > static inline void update_times (oss_driver_t *driver) > { >@@ -30,7 +41,7 @@ > if (driver->next_periodtime > 0) { > driver->iodelay = (float) > ((long double)driver->last_periodtime - >-@@ -211,6 +216,7 @@ static void copy_and_convert_in (jack_sa >+@@ -211,6 +220,7 @@ static void copy_and_convert_in (jack_sa > int dstidx; > signed short *s16src = (signed short*)src; > signed int *s32src = (signed int*)src; >@@ -38,7 +49,7 @@ > double *f64src = (double*)src; > jack_sample_t scale; > >-@@ -225,10 +231,13 @@ static void copy_and_convert_in (jack_sa >+@@ -225,10 +235,13 @@ static void copy_and_convert_in (jack_sa > } > break; > case 24: >@@ -54,7 +65,7 @@ > srcidx += chcount; > } > break; >-@@ -256,6 +265,7 @@ static void copy_and_convert_out (void * >+@@ -256,6 +269,7 @@ static void copy_and_convert_out (void * > int srcidx; > int dstidx; > signed short *s16dst = (signed short*)dst; >@@ -62,7 +73,7 @@ > signed int *s32dst = (signed int*)dst; > double *f64dst = (double*)dst; > jack_sample_t scale; >-@@ -273,12 +283,15 @@ static void copy_and_convert_out (void * >+@@ -273,12 +287,15 @@ static void copy_and_convert_out (void * > } > break; > case 24: >@@ -83,7 +94,16 @@ > dstidx += chcount; > } > break; >-@@ -441,19 +454,7 @@ static int oss_driver_start (oss_driver_ >+@@ -429,7 +446,7 @@ static int oss_driver_detach (oss_driver >+ >+ static int oss_driver_start (oss_driver_t *driver) >+ { >+- int flags = 0; >++ int cookedmode = OPTION_COOKEDMODE; >+ int format; >+ int channels; >+ int samplerate; >+@@ -441,19 +458,7 @@ static int oss_driver_start (oss_driver_ > const char *indev = driver->indev; > const char *outdev = driver->outdev; > >@@ -104,7 +124,52 @@ > driver->trigger = 0; > if (strcmp (indev, outdev) != 0) { > if (driver->capture_channels > 0) { >-@@ -705,7 +706,9 @@ static int oss_driver_start (oss_driver_ >+@@ -464,7 +469,7 @@ static int oss_driver_start (oss_driver_ >+ indev, __FILE__, __LINE__, errno); >+ } >+ #ifndef OSS_NO_COOKED_MODE >+- ioctl (infd, SNDCTL_DSP_COOKEDMODE, &flags); >++ ioctl (infd, SNDCTL_DSP_COOKEDMODE, &cookedmode); >+ #endif >+ fragsize = driver->period_size * >+ driver->capture_channels * samplesize; >+@@ -479,7 +484,7 @@ static int oss_driver_start (oss_driver_ >+ outdev, __FILE__, __LINE__, errno); >+ } >+ #ifndef OSS_NO_COOKED_MODE >+- ioctl (outfd, SNDCTL_DSP_COOKEDMODE, &flags); >++ ioctl (outfd, SNDCTL_DSP_COOKEDMODE, &cookedmode); >+ #endif >+ fragsize = driver->period_size * >+ driver->playback_channels * samplesize; >+@@ -497,7 +502,7 @@ static int oss_driver_start (oss_driver_ >+ return -1; >+ } >+ #ifndef OSS_NO_COOKED_MODE >+- ioctl (infd, SNDCTL_DSP_COOKEDMODE, &flags); >++ ioctl (infd, SNDCTL_DSP_COOKEDMODE, &cookedmode); >+ #endif >+ } else if (driver->capture_channels == 0 && >+ driver->playback_channels != 0) { >+@@ -510,7 +515,7 @@ static int oss_driver_start (oss_driver_ >+ return -1; >+ } >+ #ifndef OSS_NO_COOKED_MODE >+- ioctl (outfd, SNDCTL_DSP_COOKEDMODE, &flags); >++ ioctl (outfd, SNDCTL_DSP_COOKEDMODE, &cookedmode); >+ #endif >+ } else { >+ infd = outfd = open (indev, O_RDWR | O_EXCL); >+@@ -521,7 +526,7 @@ static int oss_driver_start (oss_driver_ >+ return -1; >+ } >+ #ifndef OSS_NO_COOKED_MODE >+- ioctl (infd, SNDCTL_DSP_COOKEDMODE, &flags); >++ ioctl (infd, SNDCTL_DSP_COOKEDMODE, &cookedmode); >+ #endif >+ } >+ if (infd >= 0 && outfd >= 0) { >+@@ -705,7 +710,9 @@ static int oss_driver_start (oss_driver_ > sem_post (&driver->sem_start); > } > >@@ -115,7 +180,7 @@ > driver->next_periodtime = 0; > driver->iodelay = 0.0F; > >-@@ -1143,6 +1146,23 @@ jack_driver_t * driver_initialize (jack_ >+@@ -1143,6 +1150,23 @@ jack_driver_t * driver_initialize (jack_ > pnode = jack_slist_next (pnode); > } > >@@ -139,7 +204,7 @@ > driver->sample_rate = sample_rate; > driver->period_size = period_size; > driver->nperiods = nperiods; >-@@ -1163,58 +1183,6 @@ jack_driver_t * driver_initialize (jack_ >+@@ -1163,58 +1187,6 @@ jack_driver_t * driver_initialize (jack_ > } > driver->infd = -1; > driver->outfd = -1; >Index: audio/jack/pkg-plist >=================================================================== >--- audio/jack/pkg-plist (revision 446051) >+++ audio/jack/pkg-plist (working copy) >@@ -61,7 +61,28 @@ > lib/libjackserver.so.0 > lib/libjackserver.so.0.0.28 > libdata/pkgconfig/jack.pc >+man/man1/alsa_in.1.gz >+man/man1/alsa_out.1.gz >+man/man1/jack_bufsize.1.gz >+man/man1/jack_connect.1.gz >+man/man1/jack_disconnect.1.gz >+man/man1/jack_freewheel.1.gz >+man/man1/jack_impulse_grabber.1.gz >+man/man1/jack_iodelay.1.gz >+man/man1/jack_load.1.gz >+man/man1/jack_load_test.1.gz >+man/man1/jack_lsp.1.gz >+man/man1/jack_metro.1.gz >+man/man1/jack_monitor_client.1.gz >+man/man1/jack_netsource.1.gz >+man/man1/jack_property.1.gz >+man/man1/jack_samplerate.1.gz >+man/man1/jack_showtime.1.gz >+man/man1/jack_transport.1.gz >+man/man1/jack_unload.1.gz >+man/man1/jack_wait.1.gz > man/man1/jackd.1.gz >+man/man1/jackrec.1.gz > man/man1/jackstart.1.gz > %%DOXYGEN%%share/jack-audio-connection-kit/reference/html/annotated.html > %%DOXYGEN%%share/jack-audio-connection-kit/reference/html/classes.html
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220785
:
184414
|
184418
|
184425
|
184426
|
184446
|
184447
|
184450
|
184452
|
184460